![]() |
WPILibC++ 2027.0.0-alpha-4
|
An interface for defining user-defined velocity and acceleration constraints while generating trajectories. More...
#include <wpi/math/trajectory/constraint/TrajectoryConstraint.hpp>
Classes | |
| struct | MinMax |
| Represents a minimum and maximum acceleration. More... | |
Public Member Functions | |
| constexpr | TrajectoryConstraint ()=default |
| constexpr | TrajectoryConstraint (const TrajectoryConstraint &)=default |
| constexpr TrajectoryConstraint & | operator= (const TrajectoryConstraint &)=default |
| constexpr | TrajectoryConstraint (TrajectoryConstraint &&)=default |
| constexpr TrajectoryConstraint & | operator= (TrajectoryConstraint &&)=default |
| virtual constexpr | ~TrajectoryConstraint ()=default |
| virtual constexpr wpi::units::meters_per_second_t | MaxVelocity (const Pose2d &pose, wpi::units::curvature_t curvature, wpi::units::meters_per_second_t velocity) const =0 |
| Returns the max velocity given the current pose and curvature. | |
| virtual constexpr MinMax | MinMaxAcceleration (const Pose2d &pose, wpi::units::curvature_t curvature, wpi::units::meters_per_second_t velocity) const =0 |
| Returns the minimum and maximum allowable acceleration for the trajectory given pose, curvature, and velocity. | |
An interface for defining user-defined velocity and acceleration constraints while generating trajectories.
|
constexprdefault |
|
constexprdefault |
|
constexprdefault |
|
constexprvirtualdefault |
|
constexprpure virtual |
Returns the max velocity given the current pose and curvature.
| 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. |
Implemented in wpi::math::CentripetalAccelerationConstraint, wpi::math::DifferentialDriveKinematicsConstraint, wpi::math::DifferentialDriveVoltageConstraint, wpi::math::EllipticalRegionConstraint< Constraint >, wpi::math::MaxVelocityConstraint, wpi::math::MecanumDriveKinematicsConstraint, wpi::math::RectangularRegionConstraint< Constraint >, and wpi::math::SwerveDriveKinematicsConstraint< NumModules >.
|
constexprpure virtual |
Returns the minimum and maximum allowable acceleration for the trajectory given pose, curvature, and velocity.
| 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. |
Implemented in wpi::math::CentripetalAccelerationConstraint, wpi::math::DifferentialDriveKinematicsConstraint, wpi::math::DifferentialDriveVoltageConstraint, wpi::math::EllipticalRegionConstraint< Constraint >, wpi::math::MaxVelocityConstraint, wpi::math::MecanumDriveKinematicsConstraint, wpi::math::RectangularRegionConstraint< Constraint >, and wpi::math::SwerveDriveKinematicsConstraint< NumModules >.
|
constexprdefault |
|
constexprdefault |