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>