This repository is the drive for using usb camera in ros.
Ubuntu 64-bot 16.04 or 18.04 or 20.04. ROS Kinetic or Melodic or Noetic
sudo apt-get install ros-$DISTRO-camera-info-manager
sudo apt-get install ros-$DISTRO-image-transport
sudo apt-get install ros-$DISTRO-image-view
Clone the repository and catkin_make:
cd ~/catkin_ws/src
git clone https://github.com/UF-ISE-HSE/usb_cam.git
cd ../
catkin_make
source ~/catkin_ws/devel/setup.bash
Update the information in launch/usb_cam-test.launch
This descriptions of parameters can be found in this link usb_cam. Note: video_device should be same as the usb port in the computer, the default of the usb port is "/dev/video0". If the port is not the default, run
cd /dev
see which video is available.
roslaunch usb_cam usb_cam-test.launch
The output topic name of the image information is "/usb_cam/image_raw".