-
- All Implemented Interfaces:
-
com.automaducks.pond.subsystems.IHolonomicController
,com.automaducks.pond.subsystems.ISubsystem
public class HolonomicController implements IHolonomicController
Calculates holonomic actuation based on errors to the target.
-
-
Constructor Summary
Constructors Constructor Description HolonomicController(HolonomicControllerParams params, ITelemetryLogger logger)
Constructs a new instance of the HolonomicController class.
-
Method Summary
Modifier and Type Method Description Pose2D
calculate(PoseAndVelocity currentPoseVelocity, PoseAndVelocity targetPoseVelocity)
Calculates actuation based on target pose and speed. -
-
Constructor Detail
-
HolonomicController
HolonomicController(HolonomicControllerParams params, ITelemetryLogger logger)
Constructs a new instance of the HolonomicController class.- Parameters:
params
- controller parameters.logger
- telemetry logger reference.
-
-
Method Detail
-
calculate
Pose2D calculate(PoseAndVelocity currentPoseVelocity, PoseAndVelocity targetPoseVelocity)
Calculates actuation based on target pose and speed.
- Parameters:
currentPoseVelocity
- current robot pose and velocity.targetPoseVelocity
- target robot pose and velocity.
-
-
-
-