Skip to content

error compiling groot ROS Melodic #198

@ariccspstk

Description

@ariccspstk

This is what i get. I am using the debian pacakge of BehaviorTree

/home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.cpp: In member function ‘void SidepanelMonitor::on_timer()’:
/home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.cpp:61:41: error: no matching function for call to ‘zmq::socket_t::recv(zmq::message_t&)’
61 | while( zmq_subscriber.recv(msg) )
| ^
In file included from /home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.h:5,
from /home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.cpp:1:
/usr/include/zmq.hpp:625:23: note: candidate: ‘size_t zmq::socket_t::recv(void*, size_t, int)’
625 | inline size_t recv (void *buf
, size_t len_, int flags_ = 0)
| ^~~~
/usr/include/zmq.hpp:625:23: note: candidate expects 3 arguments, 1 provided
/usr/include/zmq.hpp:635:21: note: candidate: ‘bool zmq::socket_t::recv(zmq::message_t*, int)’
635 | inline bool recv (message_t msg_, int flags_ = 0)
| ^~~~
/usr/include/zmq.hpp:635:38: note: no known conversion for argument 1 from ‘zmq::message_t’ to ‘zmq::message_t

635 | inline bool recv (message_t *msg_, int flags_ = 0)
| ~~~~~~~~~~~^~~~
/home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.cpp: In member function ‘bool SidepanelMonitor::getTreeFromServer()’:
/home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.cpp:149:39: error: ‘zmq::send_flags’ has not been declared
149 | zmq_client.send(request, zmq::send_flags::none);
| ^~~~~~~~~~
/home/ubuntu/behave/src/Groot/bt_editor/sidepanel_monitor.cpp:151:60: error: ‘zmq::recv_flags’ has not been declared
151 | auto bytes_received = zmq_client.recv(reply, zmq::recv_flags::none);
| ^~~~~~~~~~
Groot/CMakeFiles/behavior_tree_editor.dir/build.make:289: recipe for target 'Groot/CMakeFiles/behavior_tree_editor.dir/bt_editor/sidepanel_monitor.cpp.o' failed
make[2]: *** [Groot/CMakeFiles/behavior_tree_editor.dir/bt_editor/sidepanel_monitor.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:492: recipe for target 'Groot/CMakeFiles/behavior_tree_editor.dir/all' failed
make[1]: *** [Groot/CMakeFiles/behavior_tree_editor.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions