ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Please provide me this package: beginner_tutorials_generate_messages_cpp. this package is used as a dependency in the publisher and subscriber ROS tutorials.

asked 2017-01-05 23:51:29 -0500

Waleed_Shahzaib gravatar image

In publisher and subscriber ROS tutorials this package(beginner_tutorials_generate_messages_cpp) is used as a dependency but I couldn't find it. Please help

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-01-06 02:14:40 -0500

ahendrix gravatar image

The dependency on beginner_tutorials_generate_messages_cpp referred to in the Writing a Simple Publisher and Subscriber (C++) is a cmake target; not a complete package.

That target is created by the generate_messages command in the CMakeLists.txt, and the target name is based on the package name (declared with the package() command at the top of the CMakeLists.txt).

You should check that your package name matches the package name in the tutorial, and that the message generation code is present in your CMakeLists.txt.

If you're still have trouble after that, please edit your question to include your full CMakeLists.txt and the full error message.

edit flag offensive delete link more

answered 2017-10-08 08:05:46 -0500

kevinssh gravatar image

Replace it by add_dependencies(target ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}), It works well , too. It could be more easy to understand :D

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-01-05 23:51:29 -0500

Seen: 1,657 times

Last updated: Oct 08 '17