Commit Graph

2 Commits

Author SHA1 Message Date
bd8992469e feat: add an abort flag ARAPlanner polls so cancel/pause can cut a running search
SBPLPlanner::set_abort_flag(const std::atomic<bool>*) / aborted() let a caller
hand ARAPlanner a flag it checks every expansion, in both ImprovePath and the
outer Search loop. Aborted -> return "no solution" instead of running to
allocated_time.

Root cause this fixes (from a C++ host log): cancel during a long SBPL search
only set a discard flag — the search ran to allocated_time (10-30 s) before
the runtime could report CANCELLED, and the next mission queued behind it
also timed out and aborted. This flag is the primitive move_base2's
PlannerRunner and sbpl_lattice_planner's Preemptable wrapper (separate repos)
build the real preempt on top of.

extern "C" int sbpl_abort_flag_abi_version() lets a caller probe for this
feature at runtime via dlsym before touching the flag, since two sbpl
installs (apt ros-noetic-sbpl vs. this vendored build) can share a soname.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 22:06:02 +07:00
ca1ba36981 first commit 2026-08-27 09:56:37 +07:00