ROS下的摄像头使用

xiaoxiao2025-11-09  7

参考博客:https://blog.csdn.net/u013453604/article/details/47189513 在ROS下常用的主要有两种驱动包:usb_cam和uvc_cam 我这里用的是usb_cam包,第一次使用首先要安装这个包,安装完了之后就可以很方便的运行摄像头节点了

1.下载安装usb_cam包

cd catkin_ws/src git clone https://github.com/bosch-ros-pkg/usb_cam.git cd .. catkin_mak

二.运行usb_cam_node开启摄像头

打开一个新的终端,运行roscore $ roscore 新版本的usb_cam包在launch文件夹下有自带的launch文件,名叫usb_cam-test.launch 我们可以直接cd到这个文件夹下运行它 $ cd $ cd catkin_ws/src/usb_cam/launch $ roslaunch usb_cam-test.launch

三.运行效果:

转载请注明原文地址: https://www.6miu.com/read-5039315.html

最新回复(0)