Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 348

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

$
0
0
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!

Viewing all articles
Browse latest Browse all 348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>