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

Revision history [back]

You have two options:

  • Add the following line to package.xml:

<depend>roscpp</depend>

  • According to your CMakeLists.txt you are not building a library or executable, only messages. Therefore, you could remove roscpp from your CMakeLists.txt file. You could also remove the include_directories() line from CMakeLists.txt for now.

If you were to add code into the repo_name_hw2 package, you would need to go with Option 1. If you are only going to have messages/services/actions defined in the repo_name_hw2 package you would probably want to go with Option 2.