How to read message from ros::MessageEvent object
I am trying to extract content of the message from ros::MessageEvent object.
The parameter ros::MessageEvent<topic_tools::shapeshifter const=""> msg_event is passed to subscription callback function. We know the message type and definition. How can we extract the content of message from ShapeShifter object?
I am trying to do this. But I am stuck about how extract the information further. boost::shared_ptr<topic_tools::shapeshifter const=""> pose = msg_event.getMessage();
Thanks
Unfortunately, you failed to provide some information which makes it hard to be helpful. Please provide real code and the actual error messages you get. Additionally, always provide your Ubuntu version and the ROS version you are using. Read http://ros.org/wiki/Support