ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

sned's profile - activity

2014-07-15 10:59:31 -0500 received badge  Famous Question (source)
2014-06-24 08:29:46 -0500 received badge  Notable Question (source)
2014-06-19 22:49:33 -0500 received badge  Popular Question (source)
2014-06-18 19:44:54 -0500 asked a question 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