public interface TrajectoryConstraint
Modifier and Type | Interface and Description |
---|---|
static class |
TrajectoryConstraint.MinMax
Represents a minimum and maximum acceleration.
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxVelocityMetersPerSecond(Pose2d poseMeters,
double curvatureRadPerMeter,
double velocityMetersPerSecond)
Returns the max velocity given the current pose and curvature.
|
TrajectoryConstraint.MinMax |
getMinMaxAccelerationMetersPerSecondSq(Pose2d poseMeters,
double curvatureRadPerMeter,
double velocityMetersPerSecond)
Returns the minimum and maximum allowable acceleration for the trajectory
given pose, curvature, and speed.
|
double getMaxVelocityMetersPerSecond(Pose2d poseMeters, double curvatureRadPerMeter, double velocityMetersPerSecond)
poseMeters
- The pose at the current point in the trajectory.curvatureRadPerMeter
- The curvature at the current point in the trajectory.velocityMetersPerSecond
- The velocity at the current point in the trajectory before
constraints are applied.TrajectoryConstraint.MinMax getMinMaxAccelerationMetersPerSecondSq(Pose2d poseMeters, double curvatureRadPerMeter, double velocityMetersPerSecond)
poseMeters
- The pose at the current point in the trajectory.curvatureRadPerMeter
- The curvature at the current point in the trajectory.velocityMetersPerSecond
- The speed at the current point in the trajectory.