feat(sim): integrate Gazebo Classic with Point-LIO and SCAN navigation

Import the complete field and a simplified omnidirectional robot in sim_ws.
Reuse original Point-LIO, SCAN and controller implementations with isolated
simulation profiles, timed MID360/IMU data, readiness and command guards.
Support known-corridor terrain paths, optional sensor stress profiles and
separate physics/algorithm launch processes.

Remove retired Fortress resources and operating instructions; add build,
usage, scope and durable validation documentation.

Validation: full build script; 8 adapter tests and 4 SCAN CTest targets;
8 continuous mild-noise routes; red/blue terrain 4 cases each; noise 9/9;
visibility characterization 9/9; default sensors 16/16; loss-stop and
post-build straight navigation. Real wheels/network remain unverified.
This commit is contained in:
2026-11-08 19:04:32 +08:00
parent b6f84ac118
commit 664eaa81e5
83 changed files with 16948 additions and 12 deletions
+22 -1
View File
@@ -18,6 +18,25 @@ RoboCon 2027 赛季 BR 机器人的上位机代码。仓库里有**四套**定
> **四套互斥**:都占用 `/cmd_vel` 与传感器,同一时间只能启动一套。
> 下位机固件(STM32 底盘控制)不在本仓库,速度指令经串口下发。
## Gazebo 仿真
[`sim_ws/README.md`](sim_ws/README.md) 提供 **Ubuntu 22.04 + ROS 2 Humble + Gazebo Classic 11** 的完整场地仿真。
复用方案 A 的原 Point-LIO、SCAN 和闭环控制器,支持全向横移;不是新增一套导航算法。
已有真值导航、MID360/IMU 估计导航和两侧指定坡道入口,含仿真时间、失效停车与独立物理验收。
```bash
# 仓库根目录,首次构建;不安装真实雷达 SDK
bash sim_ws/tools/build_sim.sh
source /opt/ros/humble/setup.bash
source sim_ws/install/classic/setup.bash
export ROS_DOMAIN_ID=77 ROS_LOCALHOST_ONLY=1
export GAZEBO_MASTER_URI=http://127.0.0.1:11355
ros2 launch br_sim_bringup scan_lio.launch.py
```
目标下发、噪声配置、两机拆分方式及已验收/未验收边界见仿真 README。
真值仅用于独立评分;估计导航使用固定已知起点先验。仿真不要与实车串口控制同时运行。
## 按目的找文档
| 我想… | 去哪 |
@@ -29,6 +48,7 @@ RoboCon 2027 赛季 BR 机器人的上位机代码。仓库里有**四套**定
| 用只读脚本分析录包(不改状态、可离线复算) | [`docs/diagnostics/`](minco_ws/docs/diagnostics) |
| 跑方案 C,或看它的评估现状 | [`sru_ws/docs/USAGE.md`](sru_ws/docs/USAGE.md)、[`SOLUTION_C_ASSESSMENT.md`](sru_ws/docs/SOLUTION_C_ASSESSMENT.md) |
| 跑方案 D(建图 / 定位导航 / 行为树) | [`nav2_ws/README.md`](nav2_ws/README.md) |
| 在笔记本测试原导航程序 | [`sim_ws/README.md`](sim_ws/README.md) |
| 知道哪些东西不入库 | [`.gitignore`](.gitignore) |
## 各工作区自带 README
@@ -38,10 +58,11 @@ RoboCon 2027 赛季 BR 机器人的上位机代码。仓库里有**四套**定
- [`minco_ws/docs/README.md`](minco_ws/docs/README.md) —— 20 个包,两套互斥子方案
- [`sru_ws/docs/README.md`](sru_ws/docs/README.md) —— 3 个包,端到端策略
- [`nav2_ws/README.md`](nav2_ws/README.md) —— 8 个包,先验地图导航
- [`sim_ws/README.md`](sim_ws/README.md) —— 3 个仿真包,复用方案 A,算法包不依赖 Gazebo
## 环境与约定
- Ubuntu 22.04 + **ROS 2 Humble** + Python 3.10(系统默认的 3.13 不能 `import rclpy`)
- Ubuntu 22.04 + **ROS 2 Humble** + Python 3.10(使用 `/usr/bin/python3`,避免 PATH 中其他 Python 前缀覆盖)
- 构建产物、运行数据、脚本产物都不入库;模型(两个 ONNX,合计约 27 MB)随仓库分发,
若显著变大建议改用 Git LFS