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

ROS example program doesn't work with the Laptop webcam

asked 2015-09-25 03:49:23 -0500

karthik_puzzle gravatar image

I have been trying to work with the example program for ROS - OpenCV integration. When I run the program, there is no progress. I am not getting any response. I dont have any external or USB webcam. I have only the Laptop integrated webcam.

In the 'rosnodes list', this node is present. The tutorial doesn't offer any information about the output of the program.

My basic requirement: I need to get the image stream from the laptop webcam in ROS.

I tried ' rosrun image_view image_view image:=/camera/image '. A new window pops with no image data in it.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2015-09-25 04:06:40 -0500

ahendrix gravatar image

It doesn't sound like you running any ROS node to act as a driver for your webcam.

You need to find a driver node for your webcam, and run it in order to make the webcam topics (/camera/image and others) available for other nodes to use.

Most of the laptop webcams I've encountered are internal USB devices; I suspect yours is as well. You can confirm this by looking for webcams and/or unlabeled devices in the output from the lsusb command.

If you can confirm that your webcam is a USB device, try running one of the ROS driver nodes for USB webcams.

edit flag offensive delete link more

answered 2015-09-26 07:13:33 -0500

duck-development gravatar image

You need a node witch publisch to the topic "/camera/image " your webcam pictures.

some ready to use nodes are:

edit flag offensive delete link more

Question Tools


Asked: 2015-09-25 03:49:23 -0500

Seen: 2,262 times

Last updated: Sep 26 '15