ros2 for camera

ros2 接入摄像头,机器人的【眼】,后续订阅相关数据,进行图像识别、SLAM建图等

# 查看摄像头
lsusb
#ros2-cam驱动安装
sudo apt-get install ros-humble-usb-cam
# cv2安装
pip install opencv-python
# 启动
ros2 launch usb_cam demo_launch.py
  • rviz2可视化
    ros2 for camera_第1张图片
  • 摄像头参数修改,选择摄像头
sudo vim /opt/ros/humble/share/usb_cam/config/params.yaml
	video_device: "/dev/video1" 

你可能感兴趣的:(机器人之旅,python,opencv,计算机视觉)