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

SwerveConstraints

open class SwerveConstraints : DriveConstraints (source)

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

Parameters

baseConstraints - base drive constraints

trackWidth - track width

wheelBase - wheel base

Constructors

<init>

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

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

Properties

trackWidth

track width

val trackWidth: Double

wheelBase

wheel base

val wheelBase: Double

Functions

get

Returns the maximum velocity and acceleration for the given path displacement and pose derivatives.

open operator fun get(s: Double, pose: Pose2d, deriv: Pose2d, secondDeriv: Pose2d): SimpleMotionConstraints