ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to decompress compressed image topic?

asked 2021-06-05 12:43:39 -0600

Ifx13 gravatar image

updated 2023-01-16 09:13:29 -0600

lucasw gravatar image

Hello people,

I have a question on how to decompress image topics. I have a /D435/color/image_raw/compressed image and I am interested in decompressing it and get a new /D435/color/image_raw topic. My search led me to the image_transport package but probably I am not using it correctly. I am interested in using the nodes it has because I have 0 knowledge of cpp and I can not use the api. So far I've tried this and I got the following warning.

rosrun image_transport republish compressed in:=/D435/color/image_raw/compressed  raw out:=/D435/color/image_raw

[ WARN] [1622914313.899141980]: [image_transport] It looks like you are trying to subscribe directly to a transport-specific image topic '/D435/color/image_raw/compressed', in which case you will likely get a connection error. Try subscribing to the base topic '/D435/color/image_raw' instead with parameter ~image_transport set to 'compressed' (on the command line, _image_transport:=compressed). See for details.

Any idea how to cope with this or any other way to do it?? Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-07 10:01:54 -0600

JackB gravatar image

updated 2021-06-07 10:02:06 -0600

Listen to what the error says and instead try:

 rosrun image_transport republish compressed in:=/D435/color/image_raw  raw out:=/D435/color/image_raw
edit flag offensive delete link more


Thank you for your solution.

Ifx13 gravatar image Ifx13  ( 2021-06-08 01:02:16 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-06-05 12:43:39 -0600

Seen: 1,253 times

Last updated: Jan 16