8 Commits

Author SHA1 Message Date
001489c8a6 feat: EvadeRecovery plugin (back up or turn to the free side)
- plugins/evade_core.h: pure geometry (polygon footprint, reverse sweep,
  rotation-arc sweep, free-side choice), tested with point lists
- plugins/evade_recovery.cpp: reads raw scans through
  RecoveryContext::sensors; holds on a short view loss, never drives on
  stale data
- RecoveryContext / behavior ABI additions for the sensor reader
2026-11-27 22:06:59 +07:00
0726abbe74 build: add BUILD_RECOVERY_CORE_TESTS, nav_test_harness only for tests
Tests used to build whenever CATKIN_ENABLE_TESTING was on. They now also
need -DBUILD_RECOVERY_CORE_TESTS=ON.

nav_test_harness is a test-only package that exists only on the
development machine. It was a catkin component, so configuring
recovery_core failed on any machine without it. It is now found inside
the test block only and declared as test_depend.
2026-11-17 20:36:12 +07:00
d057b224ae docs: xoa PLAN.md loi thoi (Phase trung so voi Test/docs/NAV_REFACTOR_PLAN.md, tick sai 3 muc)
Thay bang README.md/docs/ARCHITECTURE.md/docs/SAFETY.md/docs/PLUGIN_GUIDE.md la nguon chuan.
Sua comment CMakeLists.txt tro dung Test/docs/NAV_REFACTOR_PLAN.md sau khi don doc.
2026-09-22 15:31:15 +07:00
254c7fc181 feat: onCancelRequested() sync hook + ABI version guard for RecoveryBehavior plugins
- RecoveryBehavior::cancel() now calls a new virtual onCancelRequested()
  synchronously, from whichever thread calls cancel(). Documents onCancel()
  as effectively dead in move_base2: it only ran on the next update() tick,
  and CANCELLING forces tick_recovery=false, so that tick never came. Every
  existing behavior's onCancel() was unreachable code. Velocity-only
  behaviors (wait/rotate/back_up/clear_costmap) still stop correctly via the
  arbiter zeroing cmd_vel; this only matters for a behavior that owns a
  long-running operation of its own (see Test/sbpl_recovery, separate
  commit).
- recovery_abi.h (new) + RECOVERY_CORE_EXPORT_BEHAVIOR(factory, symbol)
  macro: exports an extra <symbol>_abi version symbol alongside the
  existing BOOST_DLL_ALIAS factory. recovery_registry.cpp probes it before
  calling the factory and refuses to load a .so whose version doesn't
  match (or is missing) instead of dlsym+reinterpret_cast blindly onto a
  vtable that just grew a virtual — the ABI hazard boost::dll plugins
  don't otherwise catch at load time.
- All 4 in-tree behaviors switched to the export macro.
- test/plugins/stale_abi_recovery.cpp (new): a plugin built against the
  old ABI, used to verify the registry actually refuses it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 22:06:40 +07:00
c03d16f98c build: bỏ dependency PCL không dùng
Gói không include một header pcl/ nào. Khối find_package ở đây có comment
"robot_costmap_2d headers may expose PCL dependencies" — lý do đó sai:
robot_costmap_2d cũng không include PCL ở đâu cả.

Trên robot aarch64 có VTK 9.1 build kèm MPI, chuỗi PCL -> VTK -> VTK::mpi ->
MPI::MPI_C làm CMake gãy ở generate step: root project khai LANGUAGES CXX nên
find_package(MPI COMPONENTS C) không bao giờ thành công và target MPI::MPI_C
không được tạo. Máy dev không dính vì không cài VTK cmake package, find_VTK()
tìm không thấy rồi bỏ qua trong im lặng.

Bỏ cả khối find_package, PCL_INCLUDE_DIRS và nhánh if(PCL_FOUND).
2026-08-25 12:38:10 +07:00
887bff1b97 optimal & fix file cmake 2026-08-03 22:32:40 +07:00
e9394434ba temporary storage 7/9/2026 19:41 2026-07-09 19:41:20 +07:00
915cf85cc5 temporary storage 2026-07-09 16:50:35 +07:00