安裝usb_cam

cd catkin_ws/src

git clone https://github.com/bosch-ros-pkg/usb_cam.git

cd ..

catkin_make

判斷裝置程式碼
cd /dev &&find . -name "video*"

確定自己的攝像頭是viedo0還是viedo1還是...
2.2 讀取影象
修改usb_cam 包中,launch資料夾下usb_cam-test.launch
裝置name修改成相應的裝置號

roslaunch usb_cam usb_cam-test.launch