public class TankConstraints
extends DriveConstraints
Tank-specific drive constraints that also limit maximum wheel velocities.
maximumAcceleration, maximumAngularAcceleration, maximumAngularVelocity, maximumVelocity| Constructor and Description |
|---|
TankConstraints(DriveConstraints baseConstraints,
double trackWidth)
Tank-specific drive constraints that also limit maximum wheel velocities.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getTrackWidth()
track width
|
double |
maximumVelocity(Pose2d pose,
Pose2d poseDeriv,
Pose2d poseSecondDeriv)
Returns the maximum velocity for the given pose derivatives.
|
maximumAcceleration, maximumVelocitymaximumAcceleration, maximumVelocitypublic TankConstraints(DriveConstraints baseConstraints, double trackWidth)
Tank-specific drive constraints that also limit maximum wheel velocities.
baseConstraints - base drive constraintstrackWidth - track widthbaseConstraints - base drive constraintstrackWidth - track widthpublic double maximumVelocity(Pose2d pose, Pose2d poseDeriv, Pose2d poseSecondDeriv)
Returns the maximum velocity for the given pose derivatives.
pose - poseposeDeriv - pose derivativeposeSecondDeriv - pose second derivativepublic double getTrackWidth()
track width