WPILibC++ 2025.2.1
|
Enforces a particular constraint only within an elliptical region. More...
#include <frc/trajectory/constraint/EllipticalRegionConstraint.h>
Public Member Functions | |
constexpr | EllipticalRegionConstraint (const Translation2d ¢er, units::meter_t xWidth, units::meter_t yWidth, const Rotation2d &rotation, const Constraint &constraint) |
Constructs a new EllipticalRegionConstraint. | |
constexpr | EllipticalRegionConstraint (const Ellipse2d &ellipse, const Constraint &constraint) |
Constructs a new EllipticalRegionConstraint. | |
constexpr units::meters_per_second_t | MaxVelocity (const Pose2d &pose, units::curvature_t curvature, units::meters_per_second_t velocity) const override |
Returns the max velocity given the current pose and curvature. | |
constexpr MinMax | MinMaxAcceleration (const Pose2d &pose, units::curvature_t curvature, units::meters_per_second_t speed) const override |
Returns the minimum and maximum allowable acceleration for the trajectory given pose, curvature, and speed. | |
Public Member Functions inherited from frc::TrajectoryConstraint | |
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 |
Enforces a particular constraint only within an elliptical region.
|
inlineconstexpr |
Constructs a new EllipticalRegionConstraint.
center | The center of the ellipse in which to enforce the constraint. |
xWidth | The width of the ellipse in which to enforce the constraint. |
yWidth | The height of the ellipse in which to enforce the constraint. |
rotation | The rotation to apply to all radii around the origin. |
constraint | The constraint to enforce when the robot is within the region. |
|
inlineconstexpr |
Constructs a new EllipticalRegionConstraint.
ellipse | The ellipse in which to enforce the constraint. |
constraint | The constraint to enforce when the robot is within the region. |
|
inlineconstexproverridevirtual |
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. |
Implements frc::TrajectoryConstraint.
|
inlineconstexproverridevirtual |
Returns the minimum and maximum allowable acceleration for the trajectory given pose, curvature, and speed.
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. |
Implements frc::TrajectoryConstraint.