Differential Drive MPPI Controller
R2026bControl motion planning of differential drive vehicle model using Model Predictive Path Integral (MPPI)
Since R2025a
Libraries:
Offroad Autonomy Library /
Vehicle Controllers
Description
Add-On Required: This feature requires the Robotics System Toolbox Offroad Autonomy Library add-on.
The Differential Drive MPPI Controller block enables you to plan a local path for a Differential Drive Kinematic Model, following a reference path typically generated by a global path planner such as RRT* or Hybrid A*, using the model predictive path integral (MPPI) algorithm.
This model approximates a vehicle with single fixed axle and wheels separated by the track width specified in the Track Width parameter. Each wheel can be driven independently using speed inputs specified in the Vehicle Input Type parameter for the left and right wheels, respectively. Vehicle speed and heading are defined from the axle center.

At each state of the vehicle along the reference path, the MPPI controller samples potential trajectories for a short segment along the reference path, based on the current state and control of the vehicle. The controller evaluates these trajectories using a cost function to smooth the path and chooses an optimal trajectory and optimal control for the vehicle.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"offroadcontrollerlib/Differential Drive MPPI Controller"
Example: add_block("offroadcontrollerlib/Differential Drive MPPI Controller","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2025a
