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

Can't play rosbag with rosbag play, only with rqt_bag

asked 2022-12-01 03:17:28 -0500

vocdex gravatar image

updated 2022-12-01 03:25:55 -0500

I have multiple rosbags recorded from zed2i and intel d435 cameras.

When I try to publish rosbag topics with $ rosbag play recorded1.bag recorded2.bag it shows it is playing the rosbags:

[ INFO] [1669886119.539113920]: Opening 2022-11-10-11-27-31_23.bag Waiting 0.2 seconds after advertising topics... done. Hit space to toggle paused, or 's' to step. [RUNNING] Bag Time: 1668047252.545102 Duration: 0.936190 / 9.974145

However, when I try to publish the topics, I get this:

subscribed to [/camera/color/image_raw] no new messages no new messages no new messages

It is not publishing anything. However, if I open up rqt_bag and play the rosbag from there, it publishes without any problem. What could be the problem here? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-12-01 04:24:35 -0500

vocdex gravatar image

Somehow fixed the problem. I had to activate system ntp service time :

timedatectl set-ntp true

For some reason, I did not notice NTP time service was inactive. Probably, the rosbag and ROS time was not in sync. Then, change my .bashrc ROS master and IP back to default. I would still appreciate if someone could give a better explanation.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-12-01 03:17:28 -0500

Seen: 73 times

Last updated: Dec 01 '22