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

The for() loop can be replaced by:

output_image.data.resize(width*height); // Allocate memory
memcpy(output_image.data.data(), uint8_pointer, width*height); // Efficient copy

Instead of running individual nodes, running several nodelets in a single process can also speed up message transmission. http://wiki.ros.org/nodelet