open class SwerveConstraints : DriveConstraints
Mecanum-specific drive constraints that also limit maximum wheel velocities.
baseConstraints
- base drive constraints
SwerveConstraints(baseConstraints: DriveConstraints, trackWidth: Double, wheelBase: Double = trackWidth)
Mecanum-specific drive constraints that also limit maximum wheel velocities. |
var maximumAcceleration: Double
maximum robot acceleration |
|
var maximumAngularAcceleration: Double
maximum angular acceleration (ignored by path-based trajectories) |
|
var maximumAngularVelocity: Double
maximum angular velocity |
|
var maximumVelocity: Double
maximum robot velocity |
open fun maximumVelocity(pose: Pose2d, poseDeriv: Pose2d, poseSecondDeriv: Pose2d): Double
Returns the maximum velocity for the given pose derivatives. |
open fun maximumAcceleration(pose: Pose2d, poseDeriv: Pose2d, poseSecondDeriv: Pose2d): Double
Returns the maximum acceleration for the given pose derivatives. |