Robotics StackExchange | Archived questions

image_view no data received

I am trying to visualize the image stream from Xtion. I am able to see it on RVIZ but the

rosrun imageview imageview image:=/camera/rgb/image_color

command is giving me a blank screen. roswtf gives me this warning

WARNING The following node subscriptions are unconnected: * /imageview1425967765955436448: * /camera/rgb/image_color

Can you please explain what is happening?

Asked by rdhn on 2015-03-10 01:14:22 UTC

Comments

Answers

That warning indicates that nothing is being published to the /camera/rgb/image_color topic, but that the image_view has successfully subscribed to it. You should verify that an image from your xtion is indeed published to that topic. To do that, you can use "rostopic hz /camera/rgb/image_color" command. This will output the rate at which images are being published to that topic. If you find that there is nothing being published, use either "rostopic list" or "rosrun rqt_graph rqt_graph", to figure out the correct topic name that you should use. Otherwise you can refer to RViz, under Display types - check which topic you're subscribed to for your Image and check for spelling mistakes.

Asked by Valts on 2015-03-10 01:22:11 UTC

Comments

In RViz I was subscribing to /camera/rgb/image_raw. Subscribing to this topic through image_view did the trick but my question is why doesn't Rviz give me /camera/image or /camera/rgb/image_color as a topic to subscribe in its Image Topic list.

Asked by rdhn on 2015-03-10 01:35:15 UTC

Because, as I mentioned, no such topic is being published. Your Xtion drivers are not publishing those topics so there is nothing to subscribe in either Rviz or ImageView. Perhaps you can share some info about how you run the Xtion and why you think that the topics should exist and I'll try to help

Asked by Valts on 2015-03-10 01:57:03 UTC

I am not certain which topics my camera drive are publishing but I am assuming that they must be publishing ../image_raw and ../camera_info So my first question is how to use this published topics and and subscribe to mono or color image which image_proc publishes.

Asked by rdhn on 2015-03-10 04:42:54 UTC

After running the image_proc node ROS_NAMESPACE=camera rosrun image_proc image_proc I get this warning [ WARN] [1425980540.564749486]: The input topic '/camera/image_raw' is not yet advertised So my previous assumption that my camera drive is publishing /camera/image_raw FAILS Super confused, help

Asked by rdhn on 2015-03-10 04:44:32 UTC

Can you provide your "rostopic list" command output and "rosnode info image_proc" command output? Those should answer what is going wrong.

Asked by Valts on 2015-03-10 20:05:17 UTC

continued as a new question [how to use image_proc node to process images]

Asked by rdhn on 2015-03-11 07:06:01 UTC