public class DriveSignal
Signal indicating the commanded kinematic state of a drive.
Constructor and Description |
---|
DriveSignal(Pose2d vel,
Pose2d accel)
Signal indicating the commanded kinematic state of a drive.
|
DriveSignal(Pose2d vel)
Signal indicating the commanded kinematic state of a drive.
|
DriveSignal()
Signal indicating the commanded kinematic state of a drive.
|
Modifier and Type | Method and Description |
---|---|
Pose2d |
component1()
robot frame velocity
|
Pose2d |
component2()
robot frame acceleration
|
DriveSignal |
copy(Pose2d vel,
Pose2d accel)
Signal indicating the commanded kinematic state of a drive.
|
boolean |
equals(java.lang.Object p) |
Pose2d |
getAccel()
robot frame acceleration
|
Pose2d |
getVel()
robot frame velocity
|
int |
hashCode() |
java.lang.String |
toString() |
@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)