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

[rosbag] Synchronisation between camera_info and image

asked 2014-09-23 04:33:52 -0500

Rabe gravatar image

Hello guys,

Quick question: My setup is Kinect => Depth Image => MoveIt =>Octomap

I want to record what's happening in the real world and to be able to replay it later on, so that the same octomap appears again. My idea was to record the depth image via rosbag and replay it later. Therefore I recorded /camera/depth/image_raw and /camera/depth/camera_info.

Now when I replay these topics to MoveIt, it complains like this:

[ WARN] [1411464286.696762717]: [image_transport] Topics '/camera_top/depth/image_raw' and '/camera_top/depth/camera_info' do not appear to be synchronized. In the last 10s:
    Image messages received:      69
    CameraInfo messages received: 237
    Synchronized pairs:           0

How would I achieve such synchronisation?

Thanks in advance,


edit retag flag offensive close merge delete



It sounds like you problem might be different, but are you using use_sim_time and --clock with rosbag play? I think even if you aren't because CameraInfo and Image both have embedded timestamps they should still appear synchronized. Do the messages look good in rqt_bag?

lucasw gravatar image lucasw  ( 2014-09-23 05:01:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-23 07:29:19 -0500

Rabe gravatar image

The problem was, that I recorded the messages over a distributed system. Thanks to lucasw I opened the bag file in rqt_bags and saw that they indeed where not synchronised...

After rerecording them in one place, everything worked fine (or at least the next error appeared, but this one is unrelated :D MoveIt seems to have some issues with simulated time...)

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-09-23 04:33:52 -0500

Seen: 1,639 times

Last updated: Sep 23 '14