ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Ananda's profile - activity

2022-05-19 21:40:38 -0500 received badge  Student (source)
2019-12-27 01:22:42 -0500 received badge  Famous Question (source)
2019-12-27 01:22:42 -0500 received badge  Notable Question (source)
2019-08-03 13:37:47 -0500 marked best answer add_dependencies(listener beginner_tutorials_generate_messages_cpp) explanation

I am currently doing the ROS tutorial on Writing a Simple Publisher and Subscriber (C++). I do not understand the explanation for including this line add_dependencies(talker beginner_tutorials_generate_messages_cpp) in the package CMakeLists.txt file. Here is the accompanying explanation of the line:

Note that you have to add dependencies for the executable targets to message generation targets:

add_dependencies(talker beginner_tutorials_generate_messages_cpp)

This makes sure message headers of this package are generated before being used. If you use messages from other packages inside your catkin workspace, you need to add dependencies to their respective generation targets as well, because catkin builds all projects in parallel.

What is headers of the package used by? What is beginner_tutorials_generate_messages_cpp? Is it the message generation target? What is a message generation target?

2019-07-16 02:42:16 -0500 received badge  Popular Question (source)
2019-07-15 02:13:43 -0500 edited question add_dependencies(listener beginner_tutorials_generate_messages_cpp) explanation

add_dependencies(listener beginner_tutorials_generate_messages_cpp) explanation I am currently doing the ROS tutorial on

2019-07-14 04:29:58 -0500 asked a question add_dependencies(talker beginner_tutorials_generate_messages_cpp) explanation

add_dependencies(talker beginner_tutorials_generate_messages_cpp) explanation I am currently doing on ROS the tutorial W

2019-07-14 04:29:57 -0500 asked a question add_dependencies(listener beginner_tutorials_generate_messages_cpp) explanation

add_dependencies(listener beginner_tutorials_generate_messages_cpp) explanation I am currently doing on ROS the tutorial