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

Image_view displays empty gray window

asked 2013-07-12 06:01:03 -0600

brein gravatar image

I have not been able to make image_view work. Currently, when I run it a gray screen displays rather than an image.

My first thought is that that I don't have the topic correctly entered. I have tried rosrun image_view image_view image:=/camera/image and rosrun image_view image_view image:=/gscam/image_raw. Both lead to the same result. All of the packages needed are downloaded and compiled.

edit retag flag offensive close merge delete

Comments

you can try running rostopic list which will give you a list of current topics. You may be able to tell which topic you want from the list. It might be /camera/image_raw.

Brendan Andrade gravatar image Brendan Andrade  ( 2013-07-12 10:37:35 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-07-12 08:42:38 -0600

lindzey gravatar image

updated 2013-07-15 08:26:56 -0600

Have you checked that the topic is being published (rostopic hz)?

Edit: What nodes other than image_view are you running? From your response, I'd guess that you either forgot to start whatever node you're using to publish camera images, or it's failing. rqt_graph may help you here.

edit flag offensive delete link more

Comments

I used rostopic hz /camera/image, which returned the message 'subscribed to [/camera/image]'. I then did rostopic list -p, which returned nothing, as well as rostopic list -s, where /camera/image appeared. It looks like /camera/image is a subscriber and that nothing is being published to the topic.

brein gravatar image brein  ( 2013-07-15 05:49:21 -0600 )edit
2

Most likely, the driver is not contacting the camera successfully, so it has nothing to publish. Check for driver messages in the log.

joq gravatar image joq  ( 2013-07-16 15:55:54 -0600 )edit

you guys were right, the camera was not publishing images so that was the problem that had to be fixed. thanks for your help

brein gravatar image brein  ( 2013-07-22 05:04:30 -0600 )edit

Question Tools

Stats

Asked: 2013-07-12 06:01:03 -0600

Seen: 1,731 times

Last updated: Jul 15 '13