Robotics StackExchange | Archived questions

Use rqt_bag recorder in python script

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.

Asked by timesquarian on 2016-01-26 23:06:12 UTC

Comments

Answers