1.1、安装ros的usb相机的驱动包:
sudo apt-get install ros-melodic-usb-cam
1.2、如果安装不成功:
cd ~/catkin_ws/src
下载usb_cam包:git clone https://github.com/bosch-ros-pkg/usb_cam.git usb_cam
编译:
cd …
catkin_make
sudo apt install ros-melodic-uvc-camera
sudo apt install ros-melodic-image-view
sudo apt install ros-melodic-usb-cam
启动 ROS 节点
roscore
运行节点显示摄像头内容
rosrun uvc_camera uvc_camera_node
启动可视化qt工具
rqt_image_view