Possible to record a specific time window (from T1 to T2) of a rosbag?
Hello, I am trying to understand if it is possible to record only a specific time window (from Time T1 to time T2) in a rosbag
.
The reason for this is that I need to print the result of specific topics into 2 different .csv
files.
According to the rosbag
official documentation is possible to start recording from a specific point in time in the bag, and in fact that is what I am doing, but don't know how to set an end time:
<node pkg="rosbag" type="play" name="player" output="screen" args="--clock -q -s 2340 /home/toMyBag/test.bag"/>
<node pkg="rosbag" type="record" name="record" output="screen" args="-O filter_second_order_bis /estimate "/>
<node pkg="rosbag" type="record" name="record" output="screen" args="-O filter_second_order_bis /particle_cloud "/>
But is it possible to set a limit in the time recording?
From the example below, I need to record from approximately minute 39 to minute 224 (4h 4' 0" )approximately so:
Beginning of the recording : 39*60 = 2340 seconds
End of the recording: 224*60 = 13440 second
Thank for pointing in the right direction on this matter.