Package-level declarations

Types

Link copied to clipboard
class DisplacementFollower @JvmOverloads constructor(val trajectory: TrajectoryWithMarkers<Arclength>, val drive: Drive, val endConditions: Set<EndCondition> = EndCondition.default) : Follower
Link copied to clipboard
interface Drive
Link copied to clipboard
fun interface EndCondition
Link copied to clipboard
interface Follower
Link copied to clipboard
data class FollowerParams(val profileParams: ProfileParams, val velConstraint: VelConstraint, val accelConstraint: AccelConstraint)
Link copied to clipboard
class FollowTrajectoryAction(follower: Follower, drive: Drive) : Action
Link copied to clipboard
fun interface GenerableTrajectory
Link copied to clipboard
interface Localizer

A localizer is responsible for tracking the robot's position and velocity (i.e., its pose) in the field frame.

Link copied to clipboard
class MecanumDriveLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, var inPerTick: Double, val imu: IMU, val kinematics: MecanumKinematics, val leftFront: Encoder, val leftBack: Encoder, val rightFront: Encoder, val rightBack: Encoder, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on mecanum drive encoders and an IMU. This localizer is not recommended for use with dead wheels.

Link copied to clipboard
class OTOSLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, val otosName: String = "sensor_otos", var linearScalar: Double = 1.0, var angularScalar: Double = 1.0, var offset: Pose2d = Pose2d.zero, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on the SparkFun OTOS sensor.

Link copied to clipboard
class PinpointLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, var inPerTick: Double, val name: String = "pinpoint", var parYTicks: Double = 0.0, var perpXTicks: Double = 0.0, val parDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val perpDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on the GoBilda Pinpoint dead wheel module.

Link copied to clipboard
class SwerveLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, val cpr: Int, var inPerTick: Double, val imu: IMU, val kinematics: SwerveKinematics, driveEncoders: List<Encoder>, steeringEncoders: List<Encoder>, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on swerve drive encoders and an IMU. This localizer is not recommended for use with dead wheels.

Link copied to clipboard
class TankLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, var inPerTick: Double, val kinematics: TankKinematics, val leftEncoders: List<Encoder>, val rightEncoders: List<Encoder>, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on tank drive encoders. This localizer is not recommended for use with dead wheels.

Link copied to clipboard
class ThreeDeadWheelLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, var inPerTick: Double, val par0Name: String = "par0", val par1Name: String = "par1", val perpName: String = "perp", var par0YTicks: Double = 0.0, var par1YTicks: Double = 1.0, var perpXTicks: Double = 0.0, val par0Direction: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val par1Direction: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val perpDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on three dead wheels.

Link copied to clipboard
class TimeFollower @JvmOverloads constructor(val trajectory: TrajectoryWithMarkers<Time>, val drive: Drive, val endConditions: Set<EndCondition> = EndCondition.default) : Follower
Link copied to clipboard
class TurnAction(val turn: TimeTurn, val drive: Drive) : ActionEx
Link copied to clipboard
class TwoDeadWheelLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, val imu: IMU, var inPerTick: Double, val parName: String, val perpName: String, var parYTicks: Double = 0.0, var perpXTicks: Double = 0.0, val parDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val perpDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val initialPose: Pose2d = Pose2d.zero) : Localizer

Localizer based on two dead wheels and an IMU.

Functions

Link copied to clipboard
Link copied to clipboard