Package com.acmerobotics.roadrunner
Class HolonomicController
-
- All Implemented Interfaces:
public final class HolonomicController
Proportional position-velocity controller for a holonomic robot.
-
-
Field Summary
Fields Modifier and Type Field Description public final Double
axialPosGain
public final Double
lateralPosGain
public final Double
headingGain
public final Double
axialVelGain
public final Double
lateralVelGain
public final Double
headingVelGain
-
Method Summary
Modifier and Type Method Description final PoseVelocity2dDual<Time>
compute(Pose2dDual<Time> targetPose, Pose2d actualPose, PoseVelocity2d actualVelActual)
Computes the velocity and acceleration command. -
-
Method Detail
-
compute
final PoseVelocity2dDual<Time> compute(Pose2dDual<Time> targetPose, Pose2d actualPose, PoseVelocity2d actualVelActual)
Computes the velocity and acceleration command. The frame
Target
is the reference robot, and the frameActual
is the measured, physical robot.- Returns:
velocity command in the actual frame
-
-
-
-