public class SwerveConstraints
extends DriveConstraints
Mecanum-specific drive constraints that also limit maximum wheel velocities.
maxAccel, maxAngAccel, maxAngJerk, maxAngVel, maxJerk, maxVel| Constructor and Description |
|---|
SwerveConstraints(DriveConstraints baseConstraints,
double trackWidth,
double wheelBase)
Mecanum-specific drive constraints that also limit maximum wheel velocities.
|
SwerveConstraints(DriveConstraints baseConstraints,
double trackWidth)
Mecanum-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.
|
getget@JvmOverloads
public SwerveConstraints(@NotNull
DriveConstraints baseConstraints,
double trackWidth,
double wheelBase)
Mecanum-specific drive constraints that also limit maximum wheel velocities.
baseConstraints - base drive constraintstrackWidth - track widthwheelBase - wheel base@JvmOverloads
public SwerveConstraints(@NotNull
DriveConstraints baseConstraints,
double trackWidth)
Mecanum-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 derivative