Files
VSAG_SENTRY_SIM_27RMUL/xmake.lua
T
mzx b833e6f658 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.
2026-11-22 01:44:36 +08:00

47 lines
2.4 KiB
Lua
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.
-- ============================================================================
-- 哨兵导航仿真 —— 唯一构建入口
-- ============================================================================
--
-- cd <仓库根>
-- xmake # 编译
-- xmake test # 跑单元测试(3 个套件 223 项,约 5 ms)
-- xmake f -c && xmake # 清掉配置重新编
--
-- 二进制路径:**产物固定落在 `build/bin/`**。
-- 每个 target 里都有 `set_targetdir("$(builddir)/bin")` —— 故意不用 xmake 默认的
-- `build/<平台>/<架构>/<模式>/`,否则那一串会被抄进文档/脚本,换架构就全失效。
-- ⚠️ 新增 target(任何子包里)都必须自己补那一行 `set_targetdir`。
--
-- build/bin/self_filter 点云自滤 + 投影出 /scan2d
-- build/bin/patrol 航点巡逻节点
--
-- 想确认本机实际路径:python3 tools/project_env.py
--
-- ---------------------------------------------------------------------------
-- 为什么 sentry_sim 不在这里
-- ---------------------------------------------------------------------------
-- src/sentry_sim 是**纯数据包**:SDF 世界、STL 网格、YAML 配置、Python 脚本,
-- 一行 C/C++ 源码都没有,没有可编译的东西。它的内容直接原地使用
-- (`scripts/sentry_up.sh` 把 `SENTRY_SIM_SHARE` 指向 `src/sentry_sim` 即可)。
--
-- 同理,本工程**不使用 ament / colcon**,所以没有资源索引注册:
-- 没有 `ros2 run`、没有 `ros2 launch <本工程的包>`、没有 `ros2 pkg prefix`。
-- 节点直接跑上面那两个二进制路径,Python 脚本用 `python3` 直接跑。
-- 代价是**以后要加自定义 .msg / .srv 就必须重新引入 colcon**
-- (xmake 生成不了 ROS 消息的 C++/Python 代码)。
-- ============================================================================
set_project("sentry_nav_dev")
set_version("0.1.0")
set_languages("c++23")
add_cxxflags("-Wall", "-Wextra")
-- clangd / VS Code 的编译数据库自动刷新:每次 xmake build 都重写仓库根的
-- compile_commands.json,编辑器里的红波浪线不会因为数据库过期而误报。
-- 详见 .vscode/README.md。
add_rules("plugin.compile_commands.autoupdate", { outputdir = ".", lsp = "clangd" })
-- 真正的目标都在子目录里(与源码放在一起,加文件时不用来回跳)。
includes("src/sentry_nav")
includes("src/field_localization")