How to start node and record a rosbag from shell batch file?

asked 2022-11-21 09:18:04 -0500

Juzt345 gravatar image

Hi,

I want to start a ROS node and record all topics which are being published by the node. I want to do this via a batch script.

The problem is when I first start the node and record a batch file, after the processing the bag file is generated but it is empty which means it tells me:

No messages to play on specified topics. Exciting.

I think this is because when I start to record directly after starting the node there are no topics there. I also thought of the other way round to first start the recording and then the node but this also does not work.

Maybe soneone has an idea how to do this in a batch file. Any help would be much appreciated.

edit retag flag offensive close merge delete