Ask Your Question

Revision history [back]

Is this all of the code?

If so, you definitely run into problems with accessing the vector the way you do. I suggest you familiarize yourself with the std::vector class of C++. You have an empty vector (i.e. without ANY elements) and try to access some element i and k.

This has nothing to do with ROS but is a general C++ issue.