How to serialize C++ objects containing ROS messages
Hello I have the following class I'd like to serialize:
class Foo
{ int x;
std::vector<double> bars;
moveit_msgs::RobotState _startState;
}
in the absence of any ROS/MoveIt components, I am able to serialize out/in using the Boost serialization library. I resume that if all I had was the moveit message type then I could use the move_it serialization described on MessagesSerializationAndAdaptingTypes (assuming moveit_msgs are serializable by ROS?). But when I have a class containing both then I am not sure what to do. How do I go about serializing it now? I am using ROS Groovy
thanks