Ask Your Question
0

rosbuild_genmsg() fails under Hydro [closed]

asked 2013-12-21 15:47:25 -0500

Pi Robot gravatar image

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 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-12-25 19:58:15

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-22 11:19:19 -0500

Chengarda gravatar image

Have you got

generate_messages(
  DEPENDENCIES
  std_msgs
  geometry_msgs
)

in CMakeLists?

edit flag offensive delete link more

Comments

1

Thanks for the suggestion but it turns out that after uninstalling and reinstalling Hydro the problem went away.

Pi Robot gravatar image Pi Robot  ( 2013-12-22 13:43:53 -0500 )edit

Great to hear, good luck with it.

Chengarda gravatar image Chengarda  ( 2013-12-22 14:45:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-12-21 15:47:25 -0500

Seen: 394 times

Last updated: Dec 22 '13