rosbuild_genmsg() fails under Hydro [closed]
Hello,
I am trying to update my package pi_tracker to Hydro without switching to catkin (I know, I know). Everything builds fine with my Groovy-compatible manifest and CMakeList.txt file except when trying to generate a new message type.
My message type is called Skeleton.msg in my msg directory and it is defined as follows:
Header header
int32 user_id
string[] name
float32[] confidence
geometry_msgs/Vector3[] position
geometry_msgs/Quaternion[] orientation
The error I get when running rosmake is:
roslib.msgs.MsgSpecException: Cannot load type 'geometry_msgs/Vector3'. Perhaps the package is missing a dependency.
However I do have the following line in manifest.xml:
<depend package="geometry_msgs"/>
And I can run:
$ rosmsg show geometry_msgs/Vector3
float64 x
float64 y
float64 z
So what am I missing?
Thanks!
patrick
P.S. The full error message is shown below:
make[3]: Leaving directory `/home/patrick/Dropbox/Robotics/ros/pi-robot-ros-git/pi_tracker/build'
Scanning dependencies of target ROSBUILD_genmsg_cpp
make[3]: Leaving directory `/home/patrick/Dropbox/Robotics/ros/pi-robot-ros-git/pi_tracker/build'
make[3]: Entering directory `/home/patrick/Dropbox/Robotics/ros/pi-robot-ros-git/pi_tracker/build'
make[3]: Entering directory `/home/patrick/Dropbox/Robotics/ros/pi-robot-ros-git/pi_tracker/build'
[ 9%] [ 18%] Generating ../msg_gen/lisp/Skeleton.lisp, ../msg_gen/lisp/_package.lisp, ../msg_gen/lisp/_package_Skeleton.lisp
Generating ../msg_gen/cpp/include/pi_tracker/Skeleton.h
Traceback (most recent call last):
File "/opt/ros/hydro/share/roscpp/rosbuild/scripts/genmsg_cpp.py", line 44, in <module>
msg_gen.generate_messages(sys.argv)
File "/opt/ros/hydro/share/roscpp/rosbuild/scripts/msg_gen.py", line 740, in generate_messages
generate(arg)
File "/opt/ros/hydro/share/roscpp/rosbuild/scripts/msg_gen.py", line 710, in generate
write_traits(s, spec, cpp_prefix, rospack=rospack)
File "/opt/ros/hydro/share/roscpp/rosbuild/scripts/msg_gen.py", line 588, in write_traits
gendeps_dict = roslib.gentools.get_dependencies(spec, spec.package, compute_files=False, rospack=rospack)
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/gentools.py", line 325, in get_dependencies
raise MsgSpecException("Cannot load type %s. Perhaps the package is missing a dependency."%(str(e)))
roslib.msgs.MsgSpecException: Cannot load type 'geometry_msgs/Vector3'. Perhaps the package is missing a dependency.
Traceback (most recent call last):
File "/opt/ros/hydro/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 871, in <module>
generate_msg(sys.argv[1])
File "/opt/ros/hydro/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 743, in generate_msg
write_md5sum(s, spec)
File "/opt/ros/hydro/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 596, in write_md5sum
compute_files=False)
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/gentools.py", line 325, in get_dependencies
raise MsgSpecException("Cannot load type %s. Perhaps the package is missing a dependency."%(str(e)))
roslib.msgs.MsgSpecException: Cannot load type 'geometry_msgs/Vector3'. Perhaps the package is missing a dependency.
make[3]: *** [../msg_gen/cpp/include/pi_tracker/Skeleton.h] Error 1
make[3]: Leaving directory `/home/patrick/Dropbox/Robotics/ros/pi-robot-ros-git/pi_tracker/build'
make[2]: *** [CMakeFiles/ROSBUILD_genmsg_cpp.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [../msg_gen/lisp/Skeleton.lisp] Error 1
make[3]: Leaving directory `/home/patrick/Dropbox/Robotics/ros/pi-robot-ros-git/pi_tracker/build'
make[2]: *** [CMakeFiles ...