Files
RC2027_BR_code/.gitignore
T
kevin eba4570f4e init: RoboCon 2027 BR 上位机 sru_ws(仅源码/文档/模型;排除构建产物与 venv)
- src/: sru_nav_ros2 (策略) + odin_ros_driver (0.14.x, ament ROS2) + techx_r2_chassis_control (串口桥)
- 修复: 驱动目录此前是悬空 gitlink,clone 后为空 -> 现改为普通文件(55 个)
- 排除: build/ install/ log/ venv/ .Trash-0/ __pycache__ 及驱动 map/log 运行期产物
- docs/: USAGE / PORT_NOTES / HANDOVER / ROS2_PORT_PLAN / 协议核查报告
2026-10-19 11:15:15 +08:00

98 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =====================================================================
# RoboCon 2027 · BR 机器人代码仓库 —— 根目录 .gitignore
# 现仓库只保留 sru_ws/(ROS 2 Humble 自主导航工作区)。
# 规则:只收录「构建产物 / 运行期数据 / 本地环境 / 私人工具状态」,
# 源码、配置、文档、模型一律保留。
# =====================================================================
# ---------------------------------------------------------------------
# 1. ROS 2 (colcon) 构建与运行产物
# sru_ws/{build,install,log} 全部是本地生成物,换机重建即可
# ---------------------------------------------------------------------
build/
install/
log/
.colcon/
*.bag
*.bag.active
*.db3
*.mcap
rosbag2_*/
# ROS 2 日志目录可能出现在任意层级的包内
**/log/
**/.ros/
# ---------------------------------------------------------------------
# 2. Python(venv 是本地虚拟环境,体积大且平台相关,绝不能上传)
# ---------------------------------------------------------------------
venv/
.venv/
env/
__pycache__/
*.py[cod]
*$py.class
*.egg-info/
.eggs/
.pytest_cache/
.mypy_cache/
.ruff_cache/
.ipynb_checkpoints/
*.so
# ---------------------------------------------------------------------
# 3. 桌面回收站(误删文件躺在 .Trash-0 里,不要入库)
# ---------------------------------------------------------------------
.Trash-0/
.Trash-*/
.local/share/Trash/
# ---------------------------------------------------------------------
# 4. 编辑器 / IDE 本地状态
# ---------------------------------------------------------------------
.vscode/
.idea/
*.swp
*.swo
*~
*.bak
*.orig
# ---------------------------------------------------------------------
# 5. 操作系统杂物
# ---------------------------------------------------------------------
.DS_Store
Thumbs.db
desktop.ini
# ---------------------------------------------------------------------
# 6. 本地工具状态(AI 记忆、临时缓存等,属个人本地数据)
# 如果团队希望把 AI 工作日志一并公开,删掉下面这行即可
# ---------------------------------------------------------------------
.workbuddy/
# ---------------------------------------------------------------------
# 7. Odin 驱动 / 传感器运行期数据(在上游包内也应忽略)
# ---------------------------------------------------------------------
recorddata/
**/recorddata/
/config/calib.yaml
**/map/*.pcd
*.pcd
# ---------------------------------------------------------------------
# 8. 可选:上游只读参考快照(SRU-Odin ROS 1 蓝图 + Train 侧)
# 这是第三方仓库快照,若想保持本仓库精简,取消下一行注释
# 取消前请确认团队不需要离线对照,且记得保留来源说明
# ---------------------------------------------------------------------
# sru_ws/reference/
# ---------------------------------------------------------------------
# 9. 大文件提示:src/sru_nav_ros2/models/*.onnx 约 27 MB
# 目前 GitHub 单文件 < 100 MB 可正常上传;
# 若日后模型变大或频繁变更,建议改用 Git LFS 管理 *.onnx
# ---------------------------------------------------------------------
# *.onnx
# 驱动运行期产物
sru_ws/src/odin_ros_driver/map/