public class DriveSignal
Signal indicating the commanded kinematic state of a drive.
@JvmOverloads public DriveSignal(@NotNull Pose2d vel, @NotNull Pose2d accel)
Signal indicating the commanded kinematic state of a drive.
vel
- robot frame velocityaccel
- robot frame acceleration@JvmOverloads public DriveSignal(@NotNull Pose2d vel)
Signal indicating the commanded kinematic state of a drive.
vel
- robot frame velocity@JvmOverloads public DriveSignal()
Signal indicating the commanded kinematic state of a drive.
@NotNull public Pose2d getVel()
robot frame velocity
@NotNull public Pose2d getAccel()
robot frame acceleration
@NotNull public Pose2d component1()
robot frame velocity
@NotNull public Pose2d component2()
robot frame acceleration
@NotNull public DriveSignal copy(@NotNull Pose2d vel, @NotNull Pose2d accel)
Signal indicating the commanded kinematic state of a drive.
vel
- robot frame velocityaccel
- robot frame acceleration@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)