ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here is my solution :
boost::shared_ptr<nav_msgs::Path const> sharedEdge;
nav_msgs::Path edge;
sharedEdge = ros::topic::waitForMessage<nav_msgs::Path>("/path_planned/edge",create_path);
if(sharedEdge != NULL){
edge = *sharedEdge;
}