I have been using the ROS 2 rosbag2_recorder package to record message data for analysis and testing purposes. Recently, I've been exploring the possibility of capturing only error messages in my bag files.
I noticed that the /rosbag2_recorder/snapshot service provided by the package allows me to take a snapshot of the ROS 2 system's message data at a particular moment. However, I would like to know if it is possible to configure this service call in a way that it captures only error messages.
I am aware that the rosbag2_interfaces/Snapshot service request message has parameters like topics and max_cache_size, but I couldn't find any specific option or flag related to capturing only error messages.
Could someone please guide me on how I can modify the rosbag2_recorder service call to capture only error messages? Are there any additional parameters or configurations that can be used for this purpose? Or is there an alternative approach to achieve this goal?
details about snapshot: here
Any suggestions, insights, or examples would be greatly appreciated.
Thank you in advance for your help!