feat(localization): integrate LIO ROS TF, replay and validated AMCL replacement
GCC 15.2 C++23 clean rebuild: zero warnings. All 11 xmake test suites pass. Independent 120 s Gazebo replay: ATE 0.005279 m / 0.191335 deg; 1 s RPE 0.005358 m / 0.099086 deg. Both startup entry points validate Nav2 activation, no AMCL, and a single map-to-odom publisher.
This commit is contained in:
1 parent
55e9456e4a
commit
b833e6f658
30 files changed
+1314
-329
No files matched your search
@@ -9,6 +9,12 @@
|
||||
|
||||
---
|
||||
|
||||
## 当前定位入口
|
||||
|
||||
默认定位已切换到连续跟踪的 LIO(`field_localization_node`)。必须先用 `LIO_MODE=mapping` 建立并导出 3D 地图,再以只读地图定位;缺图会明确报错。完整用法、时间/外参约定和局限见 [field_localization](src/field_localization/README.md)。
|
||||
|
||||
`LOCALIZATION=amcl scripts/sentry_up.sh`(或 Python 启动参数 `localization:=amcl`)选择旧方案。下文与 `docs/定位接入AMCL.md` 中的 AMCL 参数/排障说明仅适用于该分支。每次只启动一种定位器发布 `map→odom`,两种方案均保留 Nav2 的 2D map_server。
|
||||
|
||||
## 0. 开发环境
|
||||
|
||||
### 0.1 操作系统
|
||||
@@ -27,15 +33,15 @@
|
||||
| Gazebo(ROS vendor) | **10.5.0** | `/opt/ros/lyrical/opt/gz_*_vendor/` |
|
||||
| ros_gz / ros_gz_sim | 3.0.10 | `/opt/ros/lyrical` |
|
||||
| Nav2 | 1.5.2 | `ros-lyrical-navigation2` / `nav2-bringup` |
|
||||
| slam_toolbox | 2.10.0 | 备用(当前不用,定位走里程计真值) |
|
||||
| slam_toolbox | 2.10.0 | 备用(当前默认 LIO,AMCL 可选) |
|
||||
| RViz2 | 15.2.6 | |
|
||||
| CMake | 4.2.3 | 系统自带。**本工程不用**(构建全走 xmake) |
|
||||
| GCC / G++ | 15.2.0 | |
|
||||
| GNU Make | 4.4.1 | |
|
||||
| Python | 3.14.4 | `/usr/bin/python3`(系统版) |
|
||||
| Git | 2.53.0 | |
|
||||
| **C++ 标准** | **C++23** | 仓库根 `xmake.lua` 的 `set_languages("c++23")`<br>⚠️ **下限 C++17**:rclcpp 要 17、PCL 1.15 用 `#error` 硬拦,改成 11/14 **编译不过** ,于是用23 |
|
||||
| **xmake** | **3.1.1** | `~/.local/bin/xmake`。**全工程唯一的构建系统**,在仓库根跑 `xmake`(核心库 + 两个节点 + 223 项单测,增量 0.5 秒)。`sentry_sim` 是纯数据包,不需要编译 |
|
||||
| **C++ 标准** | **C++23** | 仓库根 `xmake.lua` 的 `set_languages("c++23")`<br>**固定要求 C++23**,不能降为 C++17/20 |
|
||||
| **xmake** | **3.1.1** | `~/.local/bin/xmake`。**全工程唯一的构建系统**,在仓库根跑 `xmake`(导航与定位核心库、节点、离线工具及单元测试)。`sentry_sim` 是纯数据包,不需要编译 |
|
||||
|
||||
## 1. 目录结构
|
||||
|
||||
|
||||
Reference in new issue
Block a user