core / com.acmerobotics.roadrunner.trajectory.constraints / SwerveConstraints

SwerveConstraints

open class SwerveConstraints : DriveConstraints

Mecanum-specific drive constraints that also limit maximum wheel velocities.

Parameters

baseConstraints - base drive constraints

trackWidth - track width

wheelBase - wheel base

Constructors

<init>

SwerveConstraints(baseConstraints: DriveConstraints, trackWidth: Double, wheelBase: Double = trackWidth)

Mecanum-specific drive constraints that also limit maximum wheel velocities.

Inherited Properties

maximumAcceleration

var maximumAcceleration: Double

maximum robot acceleration

maximumAngularAcceleration

var maximumAngularAcceleration: Double

maximum angular acceleration (ignored by path-based trajectories)

maximumAngularVelocity

var maximumAngularVelocity: Double

maximum angular velocity

maximumVelocity

var maximumVelocity: Double

maximum robot velocity

Functions

maximumVelocity

open fun maximumVelocity(pose: Pose2d, poseDeriv: Pose2d, poseSecondDeriv: Pose2d): Double

Returns the maximum velocity for the given pose derivatives.

Inherited Functions

maximumAcceleration

open fun maximumAcceleration(pose: Pose2d, poseDeriv: Pose2d, poseSecondDeriv: Pose2d): Double

Returns the maximum acceleration for the given pose derivatives.