HolonomicController

class HolonomicController(val axialGains: PosVelGain, val lateralGains: PosVelGain, val headingGains: PosVelGain) : RobotPosVelController

Proportional position-velocity controller for a holonomic robot. This is essentially a P controller on the robot's position and a P controller on its velocity.

Constructors

Link copied to clipboard
constructor(axialPosGain: Double, lateralPosGain: Double, headingGain: Double, axialVelGain: Double, lateralVelGain: Double, headingVelGain: Double)

Proportional position-velocity controller for a holonomic robot. This is essentially a P controller on the robot's position and a P controller on its velocity.

constructor(axialPosGain: Double, lateralPosGain: Double, headingGain: Double)
constructor(axialGains: PosVelGain, lateralGains: PosVelGain, headingGains: PosVelGain)

Properties

Link copied to clipboard

gain for position and velocity in the robot's forward direction

Link copied to clipboard

gain for the robot's heading

Link copied to clipboard

gain for position and velocity in the robot's strafe direction

Functions

Link copied to clipboard
open override fun compute(targetPose: Pose2dDual<Time>, actualPose: Pose2d, actualVelActual: PoseVelocity2d): PoseVelocity2dDual<Time>

Computes the velocity and acceleration command. The frame Target is the reference robot, and the frame Actual is the measured, physical robot.