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

What actually happens with the command rosbag play "-i" test.bag ?

asked 2022-09-19 07:01:48 -0500

ros_user_ak gravatar image

updated 2022-09-19 07:03:53 -0500

In rosbag play command; there is an option to for -i or --immediate argument.

The command goes like this: rosbag play -i test.bag

How is it different from rosbag play test.bag ?

A detailed explanation would be helpful.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-09-19 15:54:19 -0500

ruffsl gravatar image

updated 2022-09-19 15:56:55 -0500

Reading from the help dialogue, it states: "play back all messages without waiting"

https://github.com/strawlab/ros_comm/...

In other words, rosbag will play back the entire bag file without waiting the recorded duration of time between messages, or simply ignoring realtime playback and instead playing back the messages over the ros network as fast as it can read them off the disk.

Again, from the source code, we can see this option sets the at_once boolean, bypassing the normal wait mechanics for regular linear time playback.

https://github.com/strawlab/ros_comm/...

This option is useful if you arr performing any offline processing or filtering and would like to save time. Just be confident that your pipeline can keep place with disk read speeds, as to not drop any messages.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-09-19 07:01:48 -0500

Seen: 87 times

Last updated: Sep 19 '22