Pausing rosbag recording using topic/service [closed]

asked 2020-03-05 01:48:20 -0600

mjsobrep gravatar image

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...

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2020-03-05 02:29:09.529309

Comments

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.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-05 02:02:01 -0600 )edit

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?

mjsobrep gravatar image mjsobrep  ( 2020-03-05 02:09:49 -0600 )edit

Is there documentation on nodelet_rosbag somewhere?

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.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-05 02:30:11 -0600 )edit