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

Revision history [back]

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.