Robotics StackExchange | Archived questions

Message Serialization for Rosbags

Hi Everyone,

My ultimate goal, is to read read a rosbag it into MATLAB, create a new topic based on the messages in the bag then write all of the messages out (including those from the old bag file) to a new bag file. After some searching I am unable to find any support for writing to a rosbag in the MATLAB Toolkit.

I'm considering writing my own ros bag writer and I've found the following that I believe will help.

  1. Rosbag format documentation
  2. Java library for rosbags (jrosbag) that seems to handle all of the details of indexes and chunks etc.

Using jrosbag I think I can write out the bag messages as long as I am able to convert the MATLAB version of the messages into properly serialized binary.

My questions are as follows...

Thanks,

~ John

Asked by kabla002 on 2016-06-22 17:51:47 UTC

Comments

Answers