Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I assume you're using boost::serialization

ROS message don't implement boost::serialization::Serializable, so you'll need to implement a serialize() function as described here: http://www.boost.org/doc/libs/1_56_0/libs/serialization/doc/serialization.html

ROS already has serializers for messages, so you may be able to use those to implement the boost serialization. I'm not aware of much documentation about how to call the ROS serializers in C++. the best place to start is probably the source: https://github.com/ros/roscpp_core/blob/indigo-devel/roscpp_serialization/include/ros/serialization.h