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

Revision history [back]

click to hide/show revision 1
initial version

No, you don't need points_size . You need to set the size of the points vector within the marker object. Since points is a std::vector, I would start with the std::vector documentation.

click to hide/show revision 2
No.2 Revision

No, you don't need points_size . You need to set the size of the points vector within the marker object. Since points is a std::vector, I would start with the std::vector documentation.

From the std::vector documentation, you should look for a method that sets the size of the vector, and you should find the resize method. Now you know that the proper way to set the size of marker.points is marker.points.resize(2)