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

Bear in mind that array->data is a std:vector, not a c++ array, so you can't assign it to a int*.

And to access the elements in the vector inside the loop you need to do:

array->data[i]