ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You could have used the fillImage method: http://docs.ros.org/diamondback/api/sensor_msgs/html/namespacesensor__msgs.html#a0cb3db155a8ed026ad6a11a4753a0385
Related question: http://answers.ros.org/question/196167/filling-sensor_msgsimage-with-uint8_t-buffer-array/