Rviz display of webcam image topic

1,299 views
Skip to first unread message

Mark Johnston

unread,
Jan 31, 2017, 5:17:09 AM1/31/17
to HomeBrew Robotics Club

I have normally used a pc and from there run  image_view to view a raw format image from my bots with webcams.

I 'thought' I saw Camp display an image right in Rviz so gave it a try using  'camera'  panel and same topic that image_view likes and set type to raw.

The extra Rviz screen is just black.   This is on a  VM that nicely shows neato_laser so it is talking fine to ros master on the bot.
The rviz is on ubuntu 14.04 and this is indigo on the rviz machine.    (The bot itself is ubuntu 16.04  and Ros kinetic although I'm thinking that is not the issue for this)

Rviz says OK for camera and for the topic and image_view can see this topic fine so I'm thinking some sort of rviz config issue.

Camera zoom is set to 1.  Maybe the image is so large and cannot fit in that smallish camera box I have to set zoom to some fractional number?  (I'll try that next time)
OR maybe the image is way off to the side and I just cannot see it as it misses the window rviz puts up?

So I have tried several things on rviz in the Camera section like different   overlay and background settings and have messed with the overlay transparency or alpha setting.

Is there some interesting and non-obvious thing for raw image viewing in rviz?

PS:  I don't  really need this but it sort of bugs me that it is not working as it would be cool.    

Ralph Gnauck

unread,
Jan 31, 2017, 1:02:30 PM1/31/17
to hbrob...@googlegroups.com
Mark,

Have you tried the 'Image' view plugin rather than the Camera view

It should show image topics in a side panel next to the 3D view, I think the Camera view tries to simulate a camera in the 3d view.

Also check the transport hint, try Raw or Theora


Ralph




From: Mark Johnston <mjst...@gmail.com>
To: HomeBrew Robotics Club <hbrob...@googlegroups.com>
Sent: Tuesday, January 31, 2017 2:17 AM
Subject: [HBRobotics] Rviz display of webcam image topic

--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To post to this group, send email to hbrob...@googlegroups.com.
Visit this group at https://groups.google.com/group/hbrobotics.
For more options, visit https://groups.google.com/d/optout.


Mark Johnston

unread,
Jan 31, 2017, 1:19:39 PM1/31/17
to HomeBrew Robotics Club
RESOLVED.   Thanks Ralph.    'camera' was a poor choice it seems.
    

Austin Hendrix

unread,
Jan 31, 2017, 1:39:18 PM1/31/17
to hbrob...@googlegroups.com
For reference, the Camera view shows the image from a camera overlaid
with the other 3D items in rviz, so that you can see how things like
laser scans and your URDF line up with your camera.

Unfortunately it also means that you need to have a TF frame properly
defined for your camera, so that rviz can transform between your other
data and your images.


And yes, for basic use the Image type is better.


-Austin


On 01/31/2017 10:19 AM, Mark Johnston wrote:
> RESOLVED. Thanks Ralph. 'camera' was a poor choice it seems.
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics+...@googlegroups.com>.
> To post to this group, send email to hbrob...@googlegroups.com
> <mailto:hbrob...@googlegroups.com>.

Camp Peavy

unread,
Jan 31, 2017, 4:13:29 PM1/31/17
to hbrob...@googlegroups.com
I'm running the "rosrun usb_cam usb_cam_node" node and select "image" display type in rviz (Create visualization "By topic" is handy) and then choose the "/usb_cam/image_raw" topic.

- Camp


--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To post to this group, send email to hbrob...@googlegroups.com.

Alan Federman

unread,
Jan 31, 2017, 6:31:26 PM1/31/17
to hbrob...@googlegroups.com
There is  Ubiquity raspicam node for the Pi camera.

Alan Federman, from my phone.

Reply all
Reply to author
Forward
0 new messages