what does add_dependence() do?
Hi, I am a new learner of ROS.
Recently, I created a package called beginner.
Then I did the test called WritingPublisherSubscriber.
When I added context into CMakeLists.txt, I copied directly
add_dependencies(listener beginner_turorials_generate_message_cpp)
add_dependencies(talker beginner_turorials_generate_message_cpp)
rather than
add_dependencies(listener beginner_generate_message_cpp)
add_dependencies(talker beginner_generate_message_cpp)
After I compiled it, the program ran nornally.
I was very confused about it.
Please tell me what happened inside
Welcome. I edited your question for you, but in the future please use the
101010
button to format your text to make it more readable. You may find that you get more attention with well-formatted questions.thanks a lot