How do I know when rosbag finished? (by code - without looking at the terminal)
Hello,
I'm writing a node to convert from a rosbag to a .mat file using matlab's api for this. I am subscribing to the topics contained in the rosbag and via a callback function I can read the respective topic only when there is new data. The issue might be that I need to know when the rosbag ended so I can close the .mat file. Is there any way to know when the rosbag finished? I was not able to find any topic for example that might tell me the status of the rosbag.
Thanks for the help.