Utility to Record Sensor Data after Safety Event
During robot operations there may be a safety event that interrupts the process and should be documented. The prior 10-20 seconds of sensor data (lidar, odom, vision) would be good documentation about the event and we would like to have this data saved to the disk after the safety event is triggered.
Is there any pre-existing utility (particularly related to bag files) that can be used to produce this behavior (i.e. save the last 20 seconds of sensor data to disk after a boolean condition is triggered)?
Thanks so much!