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

Rviz image status "ok" but no image

asked 2016-02-18 12:57:11 -0600

dinosaur gravatar image

updated 2016-02-18 16:58:45 -0600

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:

  1. Click Add, select Image
  2. 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 of Image. 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!

edit retag flag offensive close merge delete

Comments

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)

William gravatar image William  ( 2016-02-18 13:19:36 -0600 )edit

Camera does not work either. All white pixels, no image. Video card (from lspci): NVIDIA Corporation GK106 [GeForce GTX 645 OEM] (rev a1)

dinosaur gravatar image dinosaur  ( 2016-02-18 13:50:24 -0600 )edit

Is this Kinect v1 (aka Kinect for Xbox 360) or Kinect v2 (Kinect for Xbox One)? Also which library are you using?

Akif gravatar image Akif  ( 2016-02-18 13:51:20 -0600 )edit

It's Kinect v1 and openni_launch

dinosaur gravatar image dinosaur  ( 2016-02-18 14:08:12 -0600 )edit

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.

donald gravatar image donald  ( 2016-02-19 12:34:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-21 19:23:27 -0600

dinosaur gravatar image

Found a solution -- It was to restart my computer!

I think the graphics card was acting up. I noticed an error in the console that was running rviz:

NVIDIA: API mismatch: the NVIDIA kernel module has version 304.125, but this NVIDIA driver component has version 304.131. Please make sure that the kernel module and all NVIDIA driver components have the same version.

I reinstalled the graphics card driver with

$ sudo apt-get install nvidia-304

Then restarted.

I'm not sure which action solved my problem, but rviz is working now.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-18 12:57:11 -0600

Seen: 1,999 times

Last updated: Feb 21 '16