ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Follow this tutorial, the Subscriber part, exchange std_msgs/String
with geometry_msgs/PolygonStamped
and then access with msg->polygon.points[i].x
etc. Note that points
is actually an std::vector
so make sure to access this correctly.