How to use sensor_msgs/Image shared pointer in nodelets?

asked 2014-01-17 02:45:16 -0600

trianta2 gravatar image

updated 2014-01-28 17:07:31 -0600

ngrennan gravatar image

Hi,

I have a nodelet that uses a custom service, called PushImage, of type:

sensor_msgs/Image image
---

Basically, the nodelet will receive the image and store the data within itself.

I understand that nodelets offer the advantage of zero-cost transport of data, IF they use shared pointers. Will my nodelet benefit from this zero-cost transport with a message of this type? Is there something special I have to do to make sure my nodelet is using a shared pointer? Here is my current callback to the PushImage service:

pushImageCB(custom_messages::PushImage::Request& req, custom_messages::PushImage::Response& resp)
edit retag flag offensive close merge delete