Image_transport as nodelet

asked 2022-02-16 10:09:23 -0500

sietschie gravatar image

Hi, We have a setup where we start an image_transport node like this to convert decompress images:

< node pkg=“Image_transport” type=“republish” args=“compressed in:=topic/name”/>

To avoid copying the image around in memory we wanted to convert this node and the consumers of the image into nodlets. But according to the documentation there is no nodelet version of the image_transport node. After some googling and reading through this answer and this documentation I think what we are supposed to do instead is replace our subscribers in the consumer nodes with image_transports so that they can directly subscribe to the compressed image.

My questions are now:

  • Is my unterstanding of this correct?
  • If not, what would be the correct solution in this case?
  • If yes, does that mean that the image gets decompressed several time, once for each node that receives it? That seems like it might negate the performance improvement from avoiding the copying?
edit retag flag offensive close merge delete