Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What happens if you run

rossrv show uuv_control_msgs/Hold

?

If you're getting a complaint that ROS can't find it or something along those lines then you may need to source your setup.bash.

Also, it looks like your CMakeLists.txt is missing uuv_control_msgs from the find_package command. Try adding it there and removing it from generate_messages and see what happens.

What happens if you run

rossrv show uuv_control_msgs/Hold

?

If you're getting a complaint that ROS can't find it or something along those lines then you may need to source your setup.bash.

Also, it looks like your CMakeLists.txt is missing uuv_control_msgs from the find_package command. Try adding it there and removing it from generate_messages and see what happens.


Edit:

As @gvdhoorn explained in the comments:

The missing uuv_control_msgs declaration (in the find_package(catkin ..)) is the problem. [...] uuv_control_msgs is only a DEPENDENCIES of your generate_messages(..) if you are actually building any msgs yourself (ie: in your own pkg). Afaict, you're not. You only depend on someone else's messages. In that case, you need to find that dependency when building, which is what the find_package(catkin REQUIRED COMPONENTS .. uuv_control_msgs ..) will do.

What happens if you run

rossrv show uuv_control_msgs/Hold

?

If you're getting a complaint that ROS can't find it or something along those lines then you may need to source your setup.bash.

Also, it looks like your CMakeLists.txt is missing uuv_control_msgs from the find_package command. Try adding it there and removing it from generate_messages and see what happens.


Edit:

As @gvdhoorn explained in the comments:

The missing uuv_control_msgs declaration (in the find_package(catkin ..)) is the problem. [...] uuv_control_msgs is only a DEPENDENCIES of your generate_messages(..) if you are actually building any msgs yourself (ie: in your own pkg). Afaict, you're not. You only depend on someone else's messages. In that case, you need to find that dependency when building, which is what the find_package(catkin REQUIRED COMPONENTS .. uuv_control_msgs ..) will do.


Edit 2:

Now, in your package.xml you need to add a dependency on uuv_control_msgs so add the following lines

<build_depend>uuv_control_msgs</build_depend> <run_depend>uuv_control_msgs</run_depend>

Also, give the tutorials another go as a refresher for you. I still refer to them.

What happens if you run

rossrv show uuv_control_msgs/Hold

?

If you're getting a complaint that ROS can't find it or something along those lines then you may need to source your setup.bash.

Also, it looks like your CMakeLists.txt is missing uuv_control_msgs from the find_package command. Try adding it there and removing it from generate_messages and see what happens.


Edit:

As @gvdhoorn explained in the comments:

The missing uuv_control_msgs declaration (in the find_package(catkin ..)) is the problem. [...] uuv_control_msgs is only a DEPENDENCIES of your generate_messages(..) if you are actually building any msgs yourself (ie: in your own pkg). Afaict, you're not. You only depend on someone else's messages. In that case, you need to find that dependency when building, which is what the find_package(catkin REQUIRED COMPONENTS .. uuv_control_msgs ..) will do.


Edit 2:

Now, in your package.xml you need to add a dependency on uuv_control_msgs so add the following lines

<build_depend>uuv_control_msgs</build_depend>
<run_depend>uuv_control_msgs</run_depend>

<run_depend>uuv_control_msgs</run_depend>

Also, give the tutorials another go as a refresher for you. I still refer to them.