Class SwerveRequest.RobotCentric

java.lang.Object
com.ctre.phoenix6.mechanisms.swerve.SwerveRequest.RobotCentric
All Implemented Interfaces:
SwerveRequest
Enclosing interface:
SwerveRequest

public static class SwerveRequest.RobotCentric
extends Object
implements SwerveRequest
Drives the swerve drivetrain in a robot-centric manner.

When users use this request, they specify the direction the robot should travel oriented against the robot itself, and the rate at which their robot should rotate about the center of the robot.

An example scenario is that the robot is oriented to the east, the VelocityX is +5 m/s, VelocityY is 0 m/s, and RotationRate is 0.5 rad/s. In this scenario, the robot would drive eastward at 5 m/s and turn counterclockwise at 0.5 rad/s.