Files
ROS2_learn/requirements.txt
2026-08-03 18:09:35 +08:00

22 lines
878 B
Plaintext

# =============================================================================
# requirements.txt —— 本机 venv 安装运行时纯 Python 依赖。
#
# 注意:rclpy / sensor_msgs / tf2_ros / cv_bridge 等 ROS2 客户端库
# **不在这里**——它们通过 apt 装(ros-humble-desktop / ros-humble-cv-bridge),
# 在 Docker 容器内或 WSL Ubuntu 上有效;Windows 没有官方 wheels。
#
# 测试运行:
# Docker/WSL 内:rclpy 等来自 apt,Python venv 加 PYTHONPATH 可 import。
# Windows 本机:venv 仅装这里的依赖,跑"非 ROS"测试(如 cv2 解码的纯逻辑)。
# =============================================================================
# 数组/图像处理
numpy>=1.23,<2.0
# pytest 测试框架本体(开发工具在 requirements-dev.txt)
pytest>=7.4
pytest-cov>=4.1
pytest-timeout>=2.1
# typing 辅助
typing-extensions>=4.5