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

Instead of obj_coords.points[i] = pt, use obj_coords.push_back(pt).

obj_coords.points is a vector, and is initialized with size 0, so you are trying to access an element off the end.