Generating a fake rosbag from another rosbag

asked 2019-09-05 08:22:01 -0500

emy gravatar image

updated 2019-09-05 09:27:51 -0500

I recently started to work with ROS kinetic i wanna know how can I generate a fake rosbag from a rosbag that I have.

I have enregistre a rosbag and i want to create an another one fake from the first one how can I do ?

edit retag flag offensive close merge delete

Comments

A little more information about what you mean by "fake" rosbag would help people point you in the right direction. Do you want to copy a subset of topics? Modify data on a topic? What modifications should the "fake" rosbag have?

jarvisschultz gravatar image jarvisschultz  ( 2019-09-05 09:28:57 -0500 )edit
1

Regardless of what you want to do, there are rosbag APIs in both Python and C++ that allow you to read, modify, and write to rosbags. Given a little effort, you should be able to arbitrarily modify the data in the original bag file to create the "fake" bag file.

jarvisschultz gravatar image jarvisschultz  ( 2019-09-05 09:31:07 -0500 )edit