Copy data pointer to sensor_msgs::ImagePtr (uint8_t* to ImagePtr) No memory copy!

asked 2017-02-13 09:36:20 -0500

tanasis gravatar image


So from my camera driver I receive the pointer to the block of memory where the frame is currently saved. Lets asume this is uint8_t *frame_data.

Now I want to create a ImagePtr in ROS but I don't want any memory copies whatsoever! How can I create the ImagePtr that can point to my frame_data? Is there a way?


edit retag flag offensive close merge delete