To use a webcam with ROS, I do the following:

mkdir -p ~/catkin-ws/src
$ cd ~/catkin-ws/src
 git clone https://github.com/ros-drivers/usb_cam
cd ..
catkin_make

For this last line, depending on your catkin tools installation, you might need to run catkin build instead. This is,

catkin build

Finally do,

$ source ~/catkin-ws/devel/setup.bash

Then connect the camera and run the following launch file.

usb_cam-test.launch

You should see a window with the image now.  I tested this with my webcam Odroid HD 720P.

 

Good luck!


Discover more from Humberto Ramos, PhD

Subscribe to get the latest posts sent to your email.

Leave a comment

Trending

Discover more from Humberto Ramos, PhD

Subscribe now to keep reading and get access to the full archive.

Continue reading