Robotics StackExchange | Archived questions

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

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

Asked by vocdex on 2022-12-01 04:17:28 UTC

Comments

Answers

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.

Asked by vocdex on 2022-12-01 05:24:35 UTC

Comments