ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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 thefind_package(catkin ..)
) is the problem. [...]uuv_control_msgs
is only a DEPENDENCIES of yourgenerate_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 thefind_package(catkin REQUIRED COMPONENTS .. uuv_control_msgs ..)
will do.
3 | No.3 Revision |
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 thefind_package(catkin ..)
) is the problem. [...]uuv_control_msgs
is only a DEPENDENCIES of yourgenerate_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 thefind_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.
4 | No.4 Revision |
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 thefind_package(catkin ..)
) is the problem. [...]uuv_control_msgs
is only a DEPENDENCIES of yourgenerate_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 thefind_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>
Also, give the tutorials another go as a refresher for you. I still refer to them.