ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

receive rosbag play topics

asked 2013-03-29 20:53:10 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

hi, i want to receive rosbag play topics and use them in may source is there any help?

i use

ros::Subscriber sub = n.subscribe("/worldmodel/objects", 1000, chatterCallback);

but when i run rosbag play *.bag --clock i received this error :

ERROR] [1364626445.198828503]: Client [/listener] wants topic /worldmodel/objects to have datatype/md5sum [std_msgs/String/992ce8a1687cec8c8bd883ec73ca41d1], but our version has [worldmodel_msgs/ObjectModel/f9cae8b2109e6f4fe92735ca9596083c]. Dropping connection.

what shuold i do now?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-03-30 12:54:27 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The error message is telling you that your subscriber is expecting a std_msgs/String, but the message is actually a worldmodel_msgs/ObjectModel. You should modify your subscriber to subscribe to the correct message type which is worldmodel_msgs/ObjectModel

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-29 20:53:10 -0500

Seen: 430 times

Last updated: Mar 30 '13