Represents a constraint that enforces a max velocity.
More...
#include <wpi/math/trajectory/constraint/MaxVelocityConstraint.hpp>
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()
| wpi::math::MaxVelocityConstraint::MaxVelocityConstraint |
( |
wpi::units::meters_per_second_t | maxVelocity | ) |
|
|
inlineexplicitconstexpr |
◆ MaxVelocity()
| wpi::units::meters_per_second_t wpi::math::MaxVelocityConstraint::MaxVelocity |
( |
const Pose2d & | pose, |
|
|
wpi::units::curvature_t | curvature, |
|
|
wpi::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 wpi::math::TrajectoryConstraint.
◆ MinMaxAcceleration()
| MinMax wpi::math::MaxVelocityConstraint::MinMaxAcceleration |
( |
const Pose2d & | pose, |
|
|
wpi::units::curvature_t | curvature, |
|
|
wpi::units::meters_per_second_t | velocity ) const |
|
inlineconstexproverridevirtual |
Returns the minimum and maximum allowable acceleration for the trajectory given pose, curvature, and velocity.
- 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. |
- Returns
- The min and max acceleration bounds.
Implements wpi::math::TrajectoryConstraint.
The documentation for this class was generated from the following file: