【ROS2】usb摄像头识别二维码-安装依赖

1)安装usb摄像头 ROS包:

sudo apt install ros-humble-usb-cam

2)安装二维码识别库

sudo apt install libzbar-dev

3)安装opencv cv::Mat和sensor_msgs转换库

sudo apt install ros-humble-cv-bridge

4)安装pydantic库

pip3 install pydantic==1.10.7

注意版本1.10.7,否则报错:
pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

上一篇:图形几何之美系列:仿射变换矩阵之Y-Up和Z-Up


下一篇:【卷积神经网络CNN】基于深度学习动物图像识别系统(完整系统源码+数据库+开发笔记+详细部署教程+启动教程)✅