ROS message serialization/deserialization code for OpenCL