What actually happens with the command rosbag play "-i" test.bag ?
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.
Asked by ros_user_ak on 2022-09-19 07:01:48 UTC
Answers
Reading from the help dialogue, it states: "play back all messages without waiting"
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.
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.
Asked by ruffsl on 2022-09-19 15:54:19 UTC
Comments