ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here's one way to do it:
debMap.data.assign(vi, vi + height * width);
Cribbed from this answer on StackOverflow.