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

TankConstraints

open class TankConstraints : DriveConstraints (source)

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

Parameters

baseConstraints - base drive constraints

trackWidth - track width

Constructors

<init>

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

TankConstraints(baseConstraints: DriveConstraints, trackWidth: Double)

Properties

trackWidth

track width

val trackWidth: 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