Robotics StackExchange | Archived questions

image_view problem

when i run : rosrun imageview stereoview stereo:=rawstereo image:=imagerect approximatesync:=true 3 screens pops up "right", "left" and "disparity" without any display.

i have attached two webcams to my usb port and expect that they should work as stereo cameras.

Plz help i am new to linux and ros.

Asked by kaygudo on 2015-11-12 10:13:47 UTC

Comments

please repeat your attempt and in an other shell run rostopic list -v and show us the output.

Asked by Dimitri Schachmann on 2015-11-12 10:40:40 UTC

output is: Published topics: * /rosout [rosgraph_msgs/Log] 2 publishers * /rosout_agg [rosgraph_msgs/Log] 1 publisher

Subscribed topics: * /my_stereo_cam/disparity [stereo_msgs/DisparityImage] 1 subscriber * /my_stereo_cam/right/image_rect_color [sensor_msgs/Image] 1 subscriber

Asked by kaygudo on 2015-11-12 12:20:39 UTC

continued: * /rosout [rosgraph_msgs/Log] 1 subscriber * /my_stereo_cam/left/image_rect_color [sensor_msgs/Image] 1 subscriber

Asked by kaygudo on 2015-11-12 12:25:50 UTC

clearly you have no topics with your camera data published. you can not just plugin a usb camera and it will work, you need some ROS node that will read the camera data and publish this data on ROS topics. What kind of ROS node (and whether it exists) depends on the cameras.

Asked by Dimitri Schachmann on 2015-11-12 12:40:52 UTC

Can you describe your setup? What cameras are you using?

Asked by Dimitri Schachmann on 2015-11-12 12:41:09 UTC

i am using normal usb web cam "Quantum 25 mp webcam". i previously used launch file of "usb_cam-develop" package to take the video feed , but it supports only one camera at a time.I also tried with "uvc_camera" launch file "stereo_node.launch " but it didn't worked out.

Asked by kaygudo on 2015-11-12 13:09:52 UTC

it's hard to determine what your problem is. perhaps having a look at http://wiki.ros.org/libuvc_camera helps.

Asked by Dimitri Schachmann on 2015-11-13 07:33:37 UTC

also note that you first need to get the images and CameraInfo of both webcams separately into ROS. Only after using http://wiki.ros.org/camera_calibration/Tutorials/StereoCalibration you make a stereo pair out of your webcams.

Asked by Dimitri Schachmann on 2015-11-13 07:37:01 UTC

can you tell me a way by which i can use both of my usb cameras at the same time? bcoz to use camera_calibration driver it is required to publish left and right images over ROS.

Asked by kaygudo on 2015-11-13 23:26:55 UTC

I never tried that myself and I see no obvious explanation in the documentation. Perhaps open a new question asking that?

Asked by Dimitri Schachmann on 2015-11-14 06:24:28 UTC

Exactly, there is no documentation neither seen any tutorial which explains you to do so. Yup I an going open a new question.

Asked by kaygudo on 2015-11-14 06:41:57 UTC

Answers