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

SwerveVelocityConstraint

open class SwerveVelocityConstraint : TrajectoryVelocityConstraint (source)

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

Parameters

maxWheelVel - maximum wheel velocity

trackWidth - track width

wheelBase - wheel base

Constructors

<init>

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

SwerveVelocityConstraint(maxWheelVel: Double, trackWidth: Double, wheelBase: Double = trackWidth)

Functions

get

Returns the maximum profile velocity.

open fun get(s: Double, pose: Pose2d, deriv: Pose2d, baseRobotVel: Pose2d): Double