Record rosbag without continuous connection

asked 2021-07-23 09:43:01 -0500

holunder gravatar image


I want to connect by means of SSH to a system with ros, start rosbag and disconnect. After some time, I'd like to reconnect and safely stop rosbag.

I'm aware of running like

rosbag record ... &



But I'm not sure how to safely close the record (without keeping an or breaking the record.

What's a safe and reliable approach for that task?


edit retag flag offensive close merge delete


This seems to work.

rosbag record -a -j -O mylog.bag &

disconnect from server

reconnection after some time

rosnode kill

select /record_<arbitrary number="">

Any concerns from expert side?

holunder gravatar image holunder  ( 2021-07-24 04:40:28 -0500 )edit