feat: AMCL 定位接入、场地定位工具与文档更新
This commit is contained in:
1 parent
0c6b49e276
commit
0e4e4c6e18
45 files changed
+3173
-151
No files matched your search
+6
-5
@@ -10,7 +10,8 @@ src/
|
||||
│ ├── meshes/ 车体/轮子网格(减面版)
|
||||
│ ├── urdf/ sentry.urdf.xacro ★ 尺寸源头
|
||||
│ ├── config/ nav2_params.yaml、sentry.rviz
|
||||
│ ├── scripts/ sentry_up.sh ★ 主启动脚本
|
||||
│ ├── scripts/ sentry_up.sh ★ bash 启动入口
|
||||
│ ├── launch/ sentry_arena.launch.py ★ ros2 launch 入口(等价)
|
||||
│ └── README.md
|
||||
│
|
||||
└── sentry_nav/ C++ 包(源码仅 116 KB,866 行)
|
||||
@@ -28,7 +29,7 @@ src/
|
||||
│ ├── self_filter_core.hpp
|
||||
│ ├── waypoint_sequencer.hpp
|
||||
│ └── README.md ★ 两个头的接口说明
|
||||
├── tests/ ★ 85 项单测(不依赖 ROS)
|
||||
├── tests/ ★ 223 项单测(3 个套件,不依赖 ROS)
|
||||
│ ├── test_self_filter_core.cpp 33 项
|
||||
│ ├── test_waypoint_sequencer.cpp 52 项
|
||||
│ ├── test_util.hpp 56 行极简断言框架
|
||||
@@ -46,7 +47,7 @@ src/
|
||||
|
||||
| | `sentry_sim` | `sentry_nav` |
|
||||
|---|---|---|
|
||||
| **有 C/C++ 源码吗** | ❌ **一行都没有** | ✅ 2 个节点 + 2 个核心 + 2 个测试 |
|
||||
| **有 C/C++ 源码吗** | ❌ **一行都没有** | ✅ 2 个节点 + 3 个核心 + 3 个测试 |
|
||||
| 里面是什么 | `.sdf` `.stl` `.yaml` `.py` `.sh` `.md` | `.cpp` `.hpp` |
|
||||
| 有构建文件吗 | **没有**(没有 `CMakeLists.txt`、没有 `package.xml`) | `xmake.lua` |
|
||||
| 需要"编译"吗 | **不需要** | 需要 |
|
||||
@@ -74,7 +75,7 @@ Nav2 读 YAML,`sentry_up.sh` 直接执行 `scripts/*.sh` 和 `scripts/*.py`。
|
||||
```bash
|
||||
cd ~/Gazebo_projects/sentry_nav_dev
|
||||
xmake # 编全部:核心静态库 + 两个节点 + 两个测试
|
||||
xmake test # 85 项单测(约 5 ms)
|
||||
xmake test # 223 项单测(约 5 ms)
|
||||
xmake -r # 强制重编
|
||||
xmake f -c && xmake # 清掉配置重来
|
||||
```
|
||||
@@ -118,7 +119,7 @@ HEADLESS=0 scripts/sentry_up.sh # 节点自动从 build/ 取,不用选
|
||||
|
||||
| | 放在 `src/core/` | 混进 `src/` 和节点一起写 |
|
||||
|---|---|---|
|
||||
| 跑单测 | **5 ms 跑完 85 项** | 要起 Gazebo + Nav2 才能验 |
|
||||
| 跑单测 | **5 ms 跑完 223 项** | 要起 Gazebo + Nav2 才能验 |
|
||||
| 需要 ROS 环境 | **不需要** | 需要 |
|
||||
| 边界条件(`0.40` vs `0.39`) | 能精确断言 | 肉眼看不出来 |
|
||||
|
||||
|
||||
Reference in new issue
Block a user