Class MPCController
Defined in File MPCController.hpp
Inheritance Relationships
Base Type
public ControllerMethodBase
Class Documentation
A MPC Controller.
Public Functions
Destructor.
Initializes parameters and MPC controller.
- Throws:
std::runtime_error – if initialization fails.
Updates the controller using the given NavState.
- Parameters:
nav_state – Current navigation state, including odometry and planned path.
Publishes the selected path by MPC controller.
- Parameters:
data – MPCParameters object as data pointer
best_path – Vector of velocities generated by MPC
path – Path obtained from navstate
Check if there is a possible collision.
- Parameters:
data – MPCParameters object as data pointer
u – Vector of velocities generated by MPC
Protected Attributes
Prediction horizon for MPC.
Time step for MPC.
Safety radius to avoid obstacles.
Maximum linear velocity for MPC.
Maximum angular velocity for MPC.
Value to debug on terminal.
Default positional tolerance (meters).
Default angular tolerance (radians).
MPC optimizer.
Publisher for MPC path.
Publisher for MPC obstacles.