Pausing rosbag recording using topic/service [closed]
Is there a good way to pause and resume recording rosbags? As best I can tell, there is nothing in the rosbag code or docs to allow that. If that is the case, is the best thing to have a simple node that launches the rosbag command line tool (ex. using subprocess run in python) and provides a play/pause function that sends a sigint to the external process on stop? That seems pretty messy...
Please see whether osrf/nodelet_rosbag covers your use-case.
It uses actions instead of services, but those would be better anyway.
Edit: there are a few related/duplicate questions about this already. See #q316520 for a comment with some links.
Is there documentation on nodelet_rosbag somewhere?
Oh, yup, sorry I hadn't found that one myself. That is exactly what I am asking. Should I just close this then?
osrf/nodelet_rosbag#2.
But it's a nodelet, so if you know how those work, you should not have too much difficulty getting this one to work. Just load it into a manager and it should work.