Represents a constraint that enforces a max velocity.
More...
#include <frc/trajectory/constraint/MaxVelocityConstraint.h>
Represents a constraint that enforces a max velocity.
This can be composed with the EllipticalRegionConstraint or RectangularRegionConstraint to enforce a max velocity within a region.
◆ MaxVelocityConstraint()
frc::MaxVelocityConstraint::MaxVelocityConstraint |
( |
units::meters_per_second_t | maxVelocity | ) |
|
|
inlineexplicitconstexpr |
◆ MaxVelocity()
units::meters_per_second_t frc::MaxVelocityConstraint::MaxVelocity |
( |
const Pose2d & | pose, |
|
|
units::curvature_t | curvature, |
|
|
units::meters_per_second_t | velocity ) const |
|
inlineconstexproverridevirtual |
Returns the max velocity given the current pose and curvature.
- Parameters
-
pose | The pose at the current point in the trajectory. |
curvature | The curvature at the current point in the trajectory. |
velocity | The velocity at the current point in the trajectory before constraints are applied. |
- Returns
- The absolute maximum velocity.
Implements frc::TrajectoryConstraint.
◆ MinMaxAcceleration()
|
inlineconstexproverridevirtual |
Returns the minimum and maximum allowable acceleration for the trajectory given pose, curvature, and speed.
- Parameters
-
pose | The pose at the current point in the trajectory. |
curvature | The curvature at the current point in the trajectory. |
speed | The speed at the current point in the trajectory. |
- Returns
- The min and max acceleration bounds.
Implements frc::TrajectoryConstraint.
The documentation for this class was generated from the following file: