Use rqt_bag recorder in python script

asked 2016-01-26 22:06:12 -0600

timesquarian gravatar image

Hello, I'm trying to record a rosbag within python 2.7 and ros indigo. The rosbag seems to be empty. No errors. It's just not recording anything.

from rqt_bag import recorder
rec = recorder.Recorder("test.bag",False,False, ['/data'], False, -1,0.5)
rec.start()
...
rec.stop()

This is the output of rosbag info:

path:    test.bag
version: 2.0
size:    4.0 KB

Thanks for any help. Any other suggestions to record .bag files within python are very welcome, too.

edit retag flag offensive close merge delete