Bubble* is an A*-style path planner that grows signed-distance-field (SDF) "bubbles" of free space at each node and jumps directly to the bubble surface instead of stepping cell-by-cell.
The library is header-only C++17 (include/erl_bubble_star/) with pybind11
Python bindings, and supports planning in 2D through 7D. A reference grid
A* implementation is included for comparison.
🔗 Interactive pathfinding demo: https://jasontstanley.github.io/PathFinding.js/visual/
- A C++17 compiler
- Eigen3, Boost
(header-only
boost::heap), and OpenMP - Python ≥ 3.11 with NumPy ≥ 2.0 (for the Python bindings)
pip install setuptools wheel scikit-build cmake pybind11
pip install .Then import as:
from erl_bubble_star_py import BubbleStar2Dmkdir build && cd build
cmake ..
make -jSee scripts/demo.py for a runnable 2D example — it builds a
config, defines an SDF for a single circular obstacle, and plans a path:
python scripts/demo.pyplan() returns a PlanResults with path (metric waypoints), bubbles
(clearance sphere at each waypoint), and pathLength. For higher dimensions,
use BubbleStar3D … BubbleStar7D. plan_multi(points) plans through a
sequence of waypoints, parallelising each segment with OpenMP.
MIT