Ask Your Question
1

How to subscribe to image_transport topic in RViz?

asked 2017-06-15 14:47:23 -0500

Is it not possible for RViz to subscribe to compressed image topics? I'm using the raspicam_node to publish a compressed image stream from a camera on a raspberry pi:

https://github.com/fpasteau/raspicam_...

I can display in RViz fine if I republish the topic locally on my desktop, but it would be nice to have RViz subscribe directly. Is that possible?

edit retag flag offensive close merge delete

Comments

You may be able to make rviz subscribe to the compressed image by changing the Transport Hint property of the Image View or Camera View.

ahendrix gravatar image ahendrix  ( 2017-06-16 00:29:18 -0500 )edit

I also thought that, but the only hint listed is 'raw'; I can't change it to something else.

Jeffrey Kane Johnson gravatar image Jeffrey Kane Johnson  ( 2017-06-16 19:28:00 -0500 )edit

Typing compressed in the Transport Hint might work.

ahendrix gravatar image ahendrix  ( 2017-06-16 23:59:45 -0500 )edit

Would be nice, but it's only a dropdown box; can't type anything in it.

Jeffrey Kane Johnson gravatar image Jeffrey Kane Johnson  ( 2017-06-18 00:59:47 -0500 )edit

Can someone please complete the solution. How can we add compressed to the transport hint?

Kansai gravatar image Kansai  ( 2021-03-23 19:26:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-07-10 12:51:21 -0500

bsaund gravatar image

1) Published the compressed image on /your_topic_here/compressed

2) Add an Image in rviz. Under Image Topic fill in /your_topic_here (without the compressed)

3) Select compressed from the dropdown.

image description

I believe compressed does not appear in the dropdown unless the compressed sub-topic is available.

edit flag offensive delete link more

Comments

How do we make the compressed sub-topic available?

Kansai gravatar image Kansai  ( 2021-03-23 19:24:32 -0500 )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

3 followers

Stats

Asked: 2017-06-15 14:47:23 -0500

Seen: 1,747 times

Last updated: Jul 10 '20