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