core / com.acmerobotics.roadrunner.drive

Package com.acmerobotics.roadrunner.drive

Drive-specific interfaces that provide functionality for setting robot velocities and using positional feedback for localization.

Types

Drive

abstract class Drive

Abstraction for generic robot drive motion and localization. Robot poses are specified in a coordinate system with positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the x-axis.

Kinematics

object Kinematics

A collection of methods for various kinematics-related tasks.

Localizer

interface Localizer

Generic interface for estimating robot pose over time.

MecanumDrive

abstract class MecanumDrive : Drive

This class provides the basic functionality of a mecanum drive using MecanumKinematics.

MecanumKinematics

object MecanumKinematics

Mecanum drive kinematic equations. All wheel positions and velocities are given starting with front left and proceeding counter-clockwise (i.e., front left, rear left, rear right, front right). Robot poses are specified in a coordinate system with positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the x-axis.

SwerveDrive

abstract class SwerveDrive : Drive

This class provides the basic functionality of a swerve drive using SwerveKinematics.

SwerveKinematics

object SwerveKinematics

Swerve drive kinematic equations. All wheel positions and velocities are given starting with front left and proceeding counter-clockwise (i.e., front left, rear left, rear right, front right). Robot poses are specified in a coordinate system with positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the x-axis.

TankDrive

abstract class TankDrive : Drive

This class provides the basic functionality of a tank/differential drive using TankKinematics.

TankKinematics

object TankKinematics

Tank drive kinematic equations based upon the unicycle model. All wheel positions and velocities are given in (left, right) tuples. Robot poses are specified in a coordinate system with positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the x-axis.

ThreeTrackingWheelLocalizer

abstract class ThreeTrackingWheelLocalizer : Localizer

Localizer based on three unpowered tracking omni wheels.

TwoTrackingWheelLocalizer

abstract class TwoTrackingWheelLocalizer : Localizer

Localizer based on two unpowered tracking omni wheels and an orientation sensor.