ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to decompress compressed image topic?

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

Ifx13 gravatar image

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

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 http://ros.org/wiki/image_transport 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
1

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

JackB gravatar image

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

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

Comments

Thank you for your solution.

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

Question Tools

2 followers

Stats

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

Seen: 2,995 times

Last updated: Jan 16 '23