Robotics StackExchange | Archived questions

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

Hello!

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?

Thanks!

Asked by tanasis on 2017-02-13 10:36:20 UTC

Comments

Answers