Skip to content

Software

mrpt_path_planning

By MRPT, Spain (checked on github.com/MRPT (opens in a new tab)), from github.com/MRPT/mrpt_path_planning (opens in a new tab)

  • Navigation and mapping
  • Library
  • BSD-3-Clause

A kinematically feasible path planner for robots and vehicles on planar environments, handling arbitrary footprints and differential-drive, Ackermann and holonomic kinematics, built on MRPT.

Facts

GitHub stars
19read on 28 Nov 2026
Last update
22 Nov 2026Newest commit on develop
Maintenance
Activea commit in the last 90 days
Difficulty
Advanced

Checked on GitHub on 28 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 5f424f0 (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Plans paths as sequences of motion primitives from parameterized trajectory generators, so every path respects the vehicle's turning and speed limits.
  • Supports circular or arbitrary polygonal footprints, including concave ones, checked against raw obstacle points without costmap inflation.
  • Provides a deterministic SE(2) lattice A* planner and a bidirectional variant, optimizing position and heading cost.
  • Accepts pose goals [x y phi] or position-only goals [x y], with forward and reverse maneuvers and an optional Reeds-Shepp heuristic.
  • Includes pluggable cost layers such as obstacle-proximity maps, preferred waypoints and a reverse-driving penalty.
  • Offers navigation building blocks: a pure-pursuit trajectory follower and a collision guard that velocity-filters commands.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 22 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 5f424f0

Robotheca read the repository at two versions: the summary at 60ad6ee and the facts and the README at 5f424f0 (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by MRPT, at commit 5f424f0, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

mrpt_path_planning

(opens in a new tab) (opens in a new tab) (opens in a new tab)

Kinematically-feasible path planning for robots and vehicles on planar environments, for arbitrary robot shapes and realistic kinematics (differential-drive, Ackermann, holonomic). Built on MRPT (opens in a new tab) mrpt_nav and the theory of Parameterized Trajectory Generators (PTGs), which act as libraries of motion primitives.

ROS 2 users: the ROS 2 nodes (planner and trajectory follower) wrapping this library live in mrpt_navigation (opens in a new tab).

Planned paths for a holonomic robot (left) and an Ackermann vehicle (right).

Publications

If you use this library in your work, please cite the paper that describes the TPS-A* planner (arXiv:2611.09210 (opens in a new tab)):

@misc{blanco2026tpsastar,
  title         = {{TPS-A*}: Path Planning for Any-Shape Vehicles with Certified Collision Checking in Trajectory Parameter Space},
  author        = {Blanco-Claraco, Jos{\'e} Luis and Rai, Shravan S. and Ca{\~n}adas-Ar{\'a}nega, Fernando and Torres-Moreno, Jos{\'e} Luis and Moreno-{\'U}beda, Jos{\'e} Carlos},
  year          = {2026},
  eprint        = {2611.09210},
  archivePrefix = {arXiv},
  primaryClass  = {cs.RO},
  url           = {https://arxiv.org/abs/2611.09210}
}

It builds on the Trajectory Parameter Space (TP-Space) line of work (newest first):

  • J.L. Blanco, M. Bellone, A. Gimenez-Fernandez, "TP-Space RRT: Kinematic Path Planning of Non-Holonomic Any-Shape Vehicles", International Journal of Advanced Robotic Systems, 12(5):55, 2015. doi:10.5772/60463 (opens in a new tab)
  • J.L. Blanco, J. Gonzalez, J.A. Fernandez-Madrigal, "Extending obstacle avoidance methods through multiple parameter-space transformations", Autonomous Robots, 24(1):29-48, 2008.
  • J.L. Blanco, J. Gonzalez, J.A. Fernandez-Madrigal, "The Trajectory Parameter Space (TP-Space): A New Space Representation for Non-Holonomic Mobile Robot Reactive Navigation", IEEE/RSJ Int. Conf. on Intelligent Robots and Systems (IROS), pp. 1462-1468, 2006. doi:10.1109/IROS.2006.282518 (opens in a new tab)
Features
  • Kinematically feasible by construction: every path is a sequence of PTG trajectories the vehicle can actually execute, respecting its turning and speed limits. Several PTG families can be mixed in one search, and speed-trimmable PTGs make the search velocity-aware.
  • Any-shape vehicles: circular or arbitrary polygonal footprints, including concave ones. The footprint is baked once into per-PTG collision grids, so the per-node collision cost does not grow with the footprint complexity: one pass over the local obstacles gives the free distance along every candidate trajectory.
  • No costmap inflation: the actual footprint is checked against the raw obstacle points, with no inflation radius to tune.
  • Deterministic SE(2) lattice A* (mpp::TPS_Astar) and a bidirectional variant (mpp::TPS_Astar_Bidir). They optimize SE(2) cost (position + heading), not just Euclidean length, with optional bounded-suboptimal weighted A* for faster queries.
  • Pose or position goals: SE(2) goals [x y phi] or heading-agnostic R(2) goals [x y].
  • Forward and reverse maneuvers, with an optional Reeds-Shepp heuristic and analytic goal expansion for tight maneuvers such as parking.
  • Rotations in place for differential-drive robots (DiffDrive_Spin PTG), e.g. to turn around in corridors too narrow for arcs.
  • Certified collision checking: the collision grids are conservative, so a path reported as free is free for the continuous swept motion.
  • Pluggable cost layers: obstacle-proximity cost maps, preferred-waypoint attractors, and a penalty for driving in reverse.
  • Navigation building blocks: TrajectoryFollower (pure pursuit with predictive safety, valid at any speed, rotating in place where the path does), and CollisionGuard (last-resort velocity filter ensuring the robot can always stop before sensed obstacles).
  • Headless core: the algorithms library has no GUI dependency.
Quick start

Install the binary packages (ROS 2 Humble or newer):

sudo apt install ros-$ROS_DISTRO-mrpt-path-planning

Plan a path around some obstacles for a holonomic robot, using the example configuration files installed with the apps package:

cd $(ros2 pkg prefix mrpt_path_planning_apps)/share/mrpt_path_planning_apps

path-planner-cli \
  -s "[0.5 0 0]" -g "[4.2 0.5 80]" \
  -c ptgs_holonomic_robot.ini \
  --obstacles obstacles_01.txt \
  --planner-parameters mvsim-demo-astar-planner-params.yaml \
  --play-animation
Packages
PackageContentsDepend on it when...
mrpt_path_planning_coreC++ library (namespace mpp): PTGs, planners, cost evaluators, TrajectoryFollower. Depends only on mrpt_nav, mrpt_maps, mrpt_graphs, mrpt_containers.You only need the algorithms (most users).
mrpt_path_planning_appspath-planner-cli, selfdriving-simulator-gui, example config files. Adds mrpt_gui, cli11, mvsim.You want the command-line and GUI tools.
mrpt_path_planningMetapackage depending on the two above.Backward compatibility with existing consumers.

ROS 2 integration (planner and trajectory follower nodes) lives in mrpt_navigation (opens in a new tab).

Using the library

In package.xml:

<depend>mrpt_path_planning_core</depend>

In CMakeLists.txt (the CMake package is named mrpt_path_planning):

find_package(mrpt_path_planning REQUIRED)
target_link_libraries(YOUR_TARGET mpp::mrpt_path_planning)

Minimal example:

#include <mpp/algos/TPS_Astar.h>
#include <mpp/algos/trajectories.h>
#include <mrpt/config/CConfigFile.h>
#include <mrpt/maps/CSimplePointsMap.h>

mpp::PlannerInput in;

// Vehicle kinematics and shape, as a set of PTGs:
mrpt::config::CConfigFile cfg("ptgs_holonomic_robot.ini");
in.ptgs.initFromConfigFile(cfg, "SelfDriving");

// Start pose and goal (a TPose2D goal; use a TPoint2D for position-only):
in.stateStart.pose = {0.0, 0.0, 0.0};
in.stateGoal.state = mrpt::math::TPose2D{4.0, 2.5, 0.5 * M_PI};
in.worldBboxMin    = {-1.0, -1.0, -M_PI};
in.worldBboxMax    = {6.0, 4.0, M_PI};

// Obstacles, as a point cloud:
auto obs = mrpt::maps::CSimplePointsMap::Create();
obs->insertPoint(2.0, 1.0, 0.0);
in.obstacles.push_back(mpp::ObstacleSource::FromStaticPointcloud(obs));

mpp::TPS_Astar planner;
planner.params_.maximumComputationTime = 5.0;  // [s]

const mpp::PlannerOutput out = planner.plan(in);
if (out.success)
{
    // Sequence of motion primitives, and the time-sampled trajectory
    // (relative to the start pose):
    const auto [nodes, edges] = out.motionTree.backtrack_path(*out.goalNodeId);
    const mpp::trajectory_t traj = mpp::plan_to_trajectory(edges, in.ptgs);
}

Planner parameters can also be loaded from YAML with planner.params_from_yaml(); run path-planner-cli --write-planner-parameters params.yaml to get a file with all parameters and their defaults.

Configuration files

Example files in mrpt_path_planning_apps/share/ (opens in a new tab):

FilePurpose
ptgs_holonomic_robot.ini, ptgs_ackermann_vehicle.ini, ptgs_diffdrive_robot.iniVehicle model: PTG families, velocity limits, robot shape.
mvsim-demo-astar-planner-params*.yamlTPS_Astar parameters (lattice resolution, sampling, heuristics).
costmap-obstacles.yamlObstacle-proximity cost map parameters.
costmap-prefer-waypoints.yamlPreferred-waypoints cost layer parameters.
mvsim-demo-waypoints*.yamlExample waypoint sequences.
follower-params.yamlTrajectoryFollower parameters for the simulator demo.
obstacles_01.txt, map0*.pngExample obstacles: point list or occupancy grid image.
mvsim-demo.xmlmvsim (opens in a new tab) world for the simulator demo.
Demos
path-planner-cli

All the following commands are run from the directory with the example files (mrpt_path_planning_apps/share/ in the sources, or $(ros2 pkg prefix mrpt_path_planning_apps)/share/mrpt_path_planning_apps once installed), and start from this base command (holonomic robot, SE(2) goal [x y heading_deg]):

path-planner-cli \
  -s "[0.5 0 0]" -g "[4.2 0.5 80]" \
  -c ptgs_holonomic_robot.ini \
  --obstacles obstacles_01.txt \
  --planner-parameters mvsim-demo-astar-planner-params.yaml
ScenarioAdd or change
Obstacle-proximity cost map--costmap-obstacles costmap-obstacles.yaml
R(2) goal (position only), print path edges, save trajectory to CSV-g "[4.2 0.5]" --print-path-edges --save-interpolated-path path.csv
Ackermann vehicle, show search tree and animation-c ptgs_ackermann_vehicle.ini --planner-parameters mvsim-demo-astar-planner-params-ackermann.yaml --show-tree --play-animation
Occupancy grid image as obstacles-s "[1 1 0]" -g "[8 6 90]" --obstacles map01.png --obstacles-gridimage-resolution 0.05
Attract the path through via-points--waypoints mvsim-demo-waypoints01.yaml --waypoints-parameters costmap-prefer-waypoints.yaml
Save a 2D SVG plot, no GUI--save-svg plan.svg --no-gui
Save an animated SVG of the robot following the path--save-svg plan.svg --svg-animate --no-gui
Cleaner SVG for figures: no search tree, box or label, custom width--svg-no-tree --svg-no-bbox --svg-no-status --svg-width 600
Verbose output, skip path refinement-v DEBUG --no-refine
Penalize driving in reverse (extra cost per second)--reverse-cost-factor 1.0
Differential-drive robot, rotating in place, penalizing turns-c ptgs_diffdrive_robot.ini --planner-parameters mvsim-demo-astar-planner-params-ackermann.yaml --turn-cost-factor 0.3

With forward and reverse circular-arc PTGs (as in ptgs_ackermann_vehicle.ini), pose and position goals are reached exactly through Reeds-Shepp maneuvers, if a collision-free one is found near the goal; otherwise (e.g., a position goal at which the robot fits at no heading), the path ends within one lattice cell (grid_resolution_xy) of the goal. With rotations in place too (mpp::ptg::DiffDrive_Spin, as in ptgs_diffdrive_robot.ini), goals are also reached exactly by rotating, driving straight and rotating again. Run path-planner-cli --help for all options.

selfdriving-simulator-gui

Live navigation in the mvsim (opens in a new tab) simulator: each leg between waypoints is planned with TPS_Astar, and TrajectoryFollower drives the robot along the joined path. A dockable "SelfDriving" panel requests, suspends, resumes or cancels the navigation, and plans single paths to a goal picked with the mouse. The demo robot uses mvsim's ideal twist controller, so path following is not affected by the low-level speed control. Another mvsim world can be given with -s (default: mvsim-demo.xml); its first vehicle is the one navigated.

selfdriving-simulator-gui \
  --waypoints mvsim-demo-waypoints01.yaml \
  -s mvsim-demo.xml \
  -p ptgs_ackermann_vehicle.ini \
  --planner-parameters mvsim-demo-astar-planner-params-ackermann.yaml \
  --global-costmap-parameters costmap-obstacles.yaml \
  --follower-parameters follower-params.yaml
Building from source

Requirements:

Install dependencies either from the ROS 2 repositories:

sudo apt install ros-$ROS_DISTRO-mrpt-nav ros-$ROS_DISTRO-mrpt-gui python3-colcon-common-extensions

or, without ROS, from the MRPT 3 PPA (as in this repository's CI):

sudo add-apt-repository ppa:joseluisblancoc/mrpt3-stable
sudo apt update
sudo apt install libmrpt-dev libcli11-dev python3-colcon-common-extensions

Then build and test from the workspace containing this repository:

colcon build --base-paths .
colcon test --base-paths . && colcon test-result --verbose
source install/setup.bash
How it works

A PTG maps a whole family of kinematically-feasible trajectories to a compact trajectory-parameter space (TP-Space). Obstacles are projected into that space using precomputed collision grids, so checking many candidate motions against a point cloud is cheap. TPS_Astar runs A* over an SE(2) lattice whose edges are PTG trajectory segments, each node storing its exact (non-snapped) pose. Edge cost is the estimated execution time plus the configured cost layers, so a path that is longer in distance but reaches the goal with the right heading may be optimal. See AGENTS.md (opens in a new tab) for a more detailed design overview.

ROS build farm status
DistroBuild devRelease
ROS 2 Humble (u22.04)Image: Build Status (opens in a new tab) (opens in a new tab) (opens in a new tab)
ROS 2 Jazzy (u24.04)Image: Build Status (opens in a new tab) (opens in a new tab) (opens in a new tab)
ROS 2 Kilted (u24.04)Image: Build Status (opens in a new tab) (opens in a new tab) (opens in a new tab)
ROS 2 Lyrical (u26.04)Image: Build Status (opens in a new tab) (opens in a new tab) (opens in a new tab)
ROS 2 Rolling (u26.04)Image: Build Status (opens in a new tab) (opens in a new tab) (opens in a new tab)

Binary package build status per package, distro, OS and architecture (Ubuntu amd64 and arm64, plus RHEL and Fedora x86_64 where the distro targets them):

| Package | ROS 2 Humble BinBuild | ROS 2 Jazzy BinBuild | ROS 2 Kilted BinBuild | ROS 2 Lyrical BinBuild | ROS 2 Rolling BinBuild | | --- | --- | --- | --- | --- | --- | | mrpt_path_planning | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | | mrpt_path_planning_core | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | | mrpt_path_planning_apps | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) | Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) |

EOL DistroLast version
ROS 1 Noetic (u20.04) (opens in a new tab)
ROS 2 Iron (u22.04) (opens in a new tab)
License

BSD 3-Clause. See LICENSE (opens in a new tab).

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.