RoadRunnerDrive

Interface implemented by all RoadRunner drive classes.

Author

Lucas Bubner, 2024

Since

6.0.0

Inheritors

Functions

Link copied to clipboard
Get the accumulator for this drive.
Link copied to clipboard
The constants object represents all configuration options required for creating a RoadRunner trajectory.
Link copied to clipboard
Get the localizer for this drive.
Link copied to clipboard
Begin building a RoadRunner trajectory from the last-known robot position when this method is called.
open fun makeTrajectory(@NonNull startPose: Pose2d): TaskBuilder
open fun makeTrajectory(@NonNull startPose: Pose2d, @NonNull poseMap: PoseMap): TaskBuilder
open fun makeTrajectory(@NonNull startVec: Vector2d, @NonNull distUnit: Distance, ang: Double, @NonNull angUnit: Angle): TaskBuilder
open fun makeTrajectory(@NonNull startVec: Vector2d, @NonNull distUnit: Distance, ang: Double, @NonNull angUnit: Angle, @NonNull poseMap: PoseMap): TaskBuilder
Begin building a RoadRunner trajectory from the supplied pose when this method is called.
open fun makeTrajectory(@NonNull poseMap: PoseMap): TaskBuilder
Begin building a RoadRunner trajectory from the inverse (PoseMap piped) last-known robot position when this method is called.
Link copied to clipboard
abstract fun periodic()
Dispatch loop for localization and drive power updates.
Link copied to clipboard
Set the accumulator for this drive.
Link copied to clipboard
Set the localizer for this drive.

Inherited functions

Link copied to clipboard
abstract fun getPose(): Pose2d
Calculate the accumulated pose from an internal localizer.
Link copied to clipboard
abstract fun getVelocity(): PoseVelocity2d
Calculate the first derivative of the accumulated pose from an internal localizer.
Link copied to clipboard
abstract fun setPose(@NonNull newPose: Pose2d)
open fun setPose(@NonNull vector: Vector2d, @NonNull vectorUnit: Distance, heading: Double, @NonNull headingUnit: Angle)
Reset the accumulated pose estimate to this pose.
Link copied to clipboard
abstract fun setPower(@NonNull target: PoseVelocity2d)
Set the current commanded state of the robot in the Robot Coordinate System.