Nav2 Navigation Stack - kilted
kilted
ROS 2 Navigation Stack
|
Abstract motion model for modeling a vehicle. More...
#include <nav2_mppi_controller/include/nav2_mppi_controller/motion_models.hpp>
Public Member Functions | |
MotionModel ()=default | |
Constructor for mppi::MotionModel. | |
virtual | ~MotionModel ()=default |
Destructor for mppi::MotionModel. | |
void | initialize (const models::ControlConstraints &control_constraints, float model_dt) |
Initialize motion model on bringup and set required variables. More... | |
virtual void | predict (models::State &state) |
With input velocities, find the vehicle's output velocities. More... | |
virtual bool | isHolonomic ()=0 |
Whether the motion model is holonomic, using Y axis. More... | |
virtual void | applyConstraints (models::ControlSequence &) |
Apply hard vehicle constraints to a control sequence. More... | |
Protected Attributes | |
float | model_dt_ {0.0} |
models::ControlConstraints | control_constraints_ |
Abstract motion model for modeling a vehicle.
Definition at line 45 of file motion_models.hpp.
|
inlinevirtual |
Apply hard vehicle constraints to a control sequence.
control_sequence | Control sequence to apply constraints to |
Reimplemented in mppi::AckermannMotionModel.
Definition at line 127 of file motion_models.hpp.
|
inline |
Initialize motion model on bringup and set required variables.
control_constraints | Constraints on control |
model_dt | duration of a time step |
Definition at line 63 of file motion_models.hpp.
|
pure virtual |
Whether the motion model is holonomic, using Y axis.
Implemented in mppi::OmniMotionModel, mppi::DiffDriveMotionModel, and mppi::AckermannMotionModel.
Referenced by predict().
|
inlinevirtual |
With input velocities, find the vehicle's output velocities.
state | Contains control velocities to use to populate vehicle velocities |
Definition at line 73 of file motion_models.hpp.
References isHolonomic().
|
protected |
Definition at line 131 of file motion_models.hpp.