ROS1 (Robot Operating System) message serialization, for reading and writing bags and network messages