ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'll give it a try. Before answering your problem, I'll focus on your questions:
std_msgs/String
; there, std_msgs
is the package). You will then not be able to use the Client and Server together.#include
(C++) them. In Python, you import
them.Your main problem is most probably that you haven't properly declared the dependencies in the package where you use the Messages.
Assuming you have the Messages in pkg A and want to use them in pkg B as well, besides obviously having the respective <build_depend>
on pkg A and find_package
ing pkg A, you should add an add_dependencies(<ACTION_SERVER_NODE> ${catkin_EXPORTED_TARGETS})
in the CMakeLists.txt
of pkg B, after your call to add_executable(<ACTION_SERVER_NODE> ...)
. See also the very bottom of this page.
2 | No.2 Revision |
I'll give it a try. Before answering your problem, I'll focus on your questions:
std_msgs/String
; there, std_msgs
is the package). You will then not be able to use the Client and Server together.#include
(C++) them. In Python, you import
them.Your main problem is most probably that you haven't properly declared the dependencies in the package where you use the Messages.
Assuming you have the Messages in pkg A and want to use them in pkg B as well, besides obviously having the respective <build_depend>
on pkg A and find_package
ing pkg A, you should add an add_dependencies(<ACTION_SERVER_NODE> ${catkin_EXPORTED_TARGETS})
in the CMakeLists.txt
of pkg B, after your call to add_executable(<ACTION_SERVER_NODE> ...)
. See also the very bottom of this page.. This tells catkin to first build all dependencies before building the respective target.