Rviz image status "ok" but no image
I'm having trouble viewing a kinect image in RViz. Today, the same rviz config file that has worked in the past did not work. I thought there may be a problem with rviz, so I uninstalled and reinstalled it. That may be part of the problem.
System:
- ros hydro on ubuntu 12.04
- rviz version 1.10.20 compiled against OGRE version 1.7.4 (Cthugha)
- Video card (from
lspci
):NVIDIA Corporation GK106 [GeForce GTX 645 OEM] (rev a1)
- using kinect v1 with
openni_launch
driver
Steps taken:
- Click Add, select Image
- Set topic to
/yellow_kinect/rgb/image_color
Result:
- Image status is "Ok"
- Number of frames is incrementing normally
- No image shown -- just black pixels in the image panel
Other things tried:
- Tried using the
Camera
display type in my RViz, instead ofImage
. This does not work either (it's an all-white image).
Sanity checks:
rosrun image_view image_view image:=/yellow_kinect/rgb/image_color
-- When I do this, I see the live image, not black.- I confirmed that RViz and the kinect are both talking to ros master on the same machine (my robot)
- When I try the same thing from another computer in my lab, the image shows up correctly in RViz.
I think it's an issue with the state of ROS or RViz on my desktop. I was using RViz constantly with the same system setup for weeks. Then I wasn't using it for a few weeks, and now it's broken.
Any suggestions on how to make RViz display the camera images would be greatly appreciated!
Can you try using a
Camera
display type? I would expect the image to work. What video card are you using? (note: Hydro is no longer supported so if it is a bug we'll probably not release it into binaries)Camera
does not work either. All white pixels, no image. Video card (fromlspci
):NVIDIA Corporation GK106 [GeForce GTX 645 OEM] (rev a1)
Is this Kinect v1 (aka Kinect for Xbox 360) or Kinect v2 (Kinect for Xbox One)? Also which library are you using?
It's Kinect v1 and
openni_launch
Maybe you can have a look at the header of the received images. Is everything "normal" there? (incrementing sequence number, time stamps etc.) I remember having troubles with Rviz due to corrupt header information.