Ask Your Question
2

Issue with message setup, People package [closed]

asked 2014-07-02 22:11:41 -0500

jc2016 gravatar image

updated 2014-07-03 10:43:00 -0500

I am attempting to use David Lu's people branch and am running into an error when I run:

   $rostopic echo people_tracker_measurement //or leg_tracker_measurement
   Cannot load message class for [people_msgs/PositionMeasurement]. Are your messages built?

I know that this question has been asked before, but I believe that I am having a separate issue. I believe that my class paths are set up right, but I am still unable to use the messages. For example:

  rosmsg show PositionMeasurement

Yields the details of the message. Using the script suggested in another link, I get:

  <class 'people_msgs.msg._PositionMeasurement.PositionMeasurement'>

I am kind of stumped as to where to go.

EDIT:: As I say below (and forgot to say in the original post) I am able to roscd to both the people package and the people_msgs package.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by jc2016
close date 2014-07-21 23:28:47.201640

Comments

Could it be a problem with sourcing the "devel/setup.bash"?

McMurdo gravatar imageMcMurdo ( 2014-07-03 04:55:07 -0500 )edit

I don't think so. All of the signs of checking that (i.e. roscd, etc.) seem to show that the package is mapped to right. I did build it with rosbuild however, I'm not sure if that would be an issue.

jc2016 gravatar imagejc2016 ( 2014-07-03 08:42:24 -0500 )edit
1

rostopic is a catkin tool; it's possible that it can't find the messages because catkin tools can't depend on rosbuild packages. This is probably a bug in rostopic.

ahendrix gravatar imageahendrix ( 2014-07-03 11:30:25 -0500 )edit

Oh, that makes sense, is there a rostopic-like tool for rosbuild applications? I'm going to try to build it in catkin and see if that changes the issue at all.

jc2016 gravatar imagejc2016 ( 2014-07-03 12:22:59 -0500 )edit

Which branch are you using?

David Lu gravatar imageDavid Lu ( 2014-07-03 12:23:00 -0500 )edit

The master branch with some changes to the leg_detector/src/leg_detector.cpp file to make it work with the people_tracking_filter. I was going to switch over to the hydro_devel branch to catkinize it though.

jc2016 gravatar imagejc2016 ( 2014-07-03 12:31:18 -0500 )edit
1

You may have better luck with the hydro_devel branch, since it is already catkinized. Although rostopic works fine for me in the non-catkinized version, so I would double check how you built your workspaces/package paths.

David Lu gravatar imageDavid Lu ( 2014-07-03 13:46:11 -0500 )edit

Alright, thanks for all of the responses. I'll probably try rebuilding my workspaces and return with any updates.

jc2016 gravatar imagejc2016 ( 2014-07-03 14:54:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-07 08:52:51 -0500

jc2016 gravatar image

Update: I was able to get the hydro_devel branch working with the tracker; however, was unable to get a rebuilt rosbuild version working. I'm not sure exactly why this is the case, but I will keep working on it to see where I have messed up the build.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-02 22:11:41 -0500

Seen: 135 times

Last updated: Jul 07 '14