how to set image_transport parameter for /../compressed and /../compressedDepth topics

asked 2017-09-25 10:13:38 -0500

Vendra gravatar image

I am running Ros Kinetic on Ubuntu 16.04. I recorded a bag from a kinect 2 that only has ir and depth compressed, i.e.



I am able to subscribe using image transport to one of them by setting _image_transport:=compressed or compressedDepth but I am not able to subscribe to both of them at the same time.

I tried to subscribe directly without using it but it does not work. I also tried to rename the topic but could not manage to make it work anyway.

edit retag flag offensive close merge delete


if you open two terminals and echo each topic in each terminal, are the messages shown?

For example, on terminal 1 you run:

rostopic echo /k2/ir/image/compressed

And on terminal 2 you run:

rostopic echo /k2/depth/image/compressedDepth

Both terminals prints the messages?

Ruben Alves gravatar image Ruben Alves  ( 2017-09-29 15:12:32 -0500 )edit

Yes I can, I think the bag is fine. The problem is I can't set the _image_transport parameter to both "compressed" and "compressedDepth" at the same time when launching my node, i.e. $ rosrun my_package my_node _image_transport:=compressed I can subscribe to the IR but not the depth.

Vendra gravatar image Vendra  ( 2017-10-02 02:42:38 -0500 )edit