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

If I remember correctly, the bag.write() takes the topic name, the message and the timestamp as arguments, but you're passing the frame id as the third argument.

Instead of:

output.write(topic, msg, msg.header.frame_id)

Try using the timestamp from the original bag file:

output.write(topic, msg, t)

P.S. - Your IMU messages should probably all have the same frame ID