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

Create a bag with multiples topics

asked 2017-08-21 02:43:56 -0500

trinamntn08 gravatar image

I'am newbie in ROS. In fact, I have a folder containing images, a file containing IMU data with its timestamps correspondence. How can i put all of them into a bag with multiples topics.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-21 02:49:47 -0500

gvdhoorn gravatar image

Take a look at the rosbag Python API example.

That writes two msg types to two different topics (chatter and numbers).

Just make sure to use the correct message types (from sensor_msgs: sensor_msgs/Imu and sensor_msgs/Image), and that, depending on whether the nodes that will be receiving these messages need it, to embed a CameraInfo topic with the intrinsics of the camera that was used as well.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-08-21 02:43:56 -0500

Seen: 95 times

Last updated: Aug 21 '17