ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It would help if you'd post the error and and give short code snippet. However, I think you are trying to reinvent the wheel and I am pretty sure that the vast majority of people used the commandline tool to save data for gemapping. rosbag does exactly what you want to do when you start it from the command line and is well tested even thought it might have its flaws. If you want to start recording bag files from a python script, have a look at the subprocess package in python. This allows you to run rosbag record from the python script instead of the command line and you do not have to reimplementing its functionality.