Convert legacy logs to ROS bag
Is there a way to convert legacy logs to ROS bags?
I have a set of sensors logs that were recorded before my project started using ROS. I am now converting everything to use ROS, but I still want to use my old logs for replay purposes. I have already written code that converts those old logs to ROS messages (which conveniently also serves as the direct interface to the sensor). Now I'm trying to replay the old logs, using simulated time. There are several sensor-logs that need to by synchronized. From what I've read, if these were originally created as ROS bags, this would not be an issue.
The solution as I see it is to either convert the existing logs to ROS bags, or find a way to control the simulation time of the roscore without ROS bags or gazebo.