build: tests off by default, nav_test_harness only for tests

BUILD_MOVE_BASE2_TESTS now defaults to OFF in both build modes.

nav_test_harness is a test-only package that exists only on the
development machine. It was a catkin component and a build/run
dependency, so configuring move_base2 failed on any machine without it,
even with the tests off. It is now found inside the test block only and
declared as test_depend. The scenario directory comes from the harness
package config instead of a guessed ../nav_test_harness path, and the
stale standalone include path is gone.
This commit is contained in:
2026-11-17 20:36:12 +07:00
parent ee3657fefb
commit 0788bc666e
2 changed files with 25 additions and 10 deletions

View File

@@ -69,9 +69,9 @@
<build_depend>yaml-cpp</build_depend>
<run_depend>yaml-cpp</run_depend>
<!-- Chỉ dùng cho test: bộ fake và scenario runner dùng chung. -->
<build_depend>nav_test_harness</build_depend>
<run_depend>nav_test_harness</run_depend>
<!-- Chỉ dùng cho test: bộ fake và scenario runner dùng chung. Gói chỉ có trên máy dev, nên chỉ
là test_depend; CMake chỉ find_package nó khi bật BUILD_MOVE_BASE2_TESTS. -->
<test_depend>nav_test_harness</test_depend>
<build_depend>recovery_core</build_depend>
<run_depend>recovery_core</run_depend>