public class TankConstraints
extends DriveConstraints
Tank-specific drive constraints that also limit maximum wheel velocities.
maxAccel, maxAngAccel, maxAngJerk, maxAngVel, maxJerk, maxVel
Constructor and Description |
---|
TankConstraints(DriveConstraints baseConstraints,
double trackWidth)
Tank-specific drive constraints that also limit maximum wheel velocities.
|
Modifier and Type | Method and Description |
---|---|
SimpleMotionConstraints |
get(Pose2d pose,
Pose2d deriv,
Pose2d secondDeriv)
Returns the maximum velocity and acceleration for the given pose derivatives.
|
double |
getTrackWidth()
track width
|
get
get
public TankConstraints(@NotNull DriveConstraints baseConstraints, double trackWidth)
Tank-specific drive constraints that also limit maximum wheel velocities.
baseConstraints
- base drive constraintstrackWidth
- track width@NotNull public SimpleMotionConstraints get(@NotNull Pose2d pose, @NotNull Pose2d deriv, @NotNull Pose2d secondDeriv)
Returns the maximum velocity and acceleration for the given pose derivatives.
pose
- posederiv
- pose derivativesecondDeriv
- pose second derivativepublic double getTrackWidth()
track width