-
public class PoseAndVelocityRepresents robot pose and velocity in a single object.
-
-
Constructor Summary
Constructors Constructor Description PoseAndVelocity()Constructs a new PoseAndVelocity object and initializes it with zeros. PoseAndVelocity(Pose2D pose, Pose2D velocity)Constructs a new PoseAndVelocity object and initializes it with existing values.
-
Method Summary
Modifier and Type Method Description voidrotateXY(double angleRadians)Rotates both pose and velocity by the specified angle. voidcopyFrom(PoseAndVelocity other)Copies another pose and velocity values into this one. StringtoString()Returns a String representation of this object. -
-
Method Detail
-
rotateXY
void rotateXY(double angleRadians)
Rotates both pose and velocity by the specified angle.
- Parameters:
angleRadians- angle in radians.
-
copyFrom
void copyFrom(PoseAndVelocity other)
Copies another pose and velocity values into this one.
- Parameters:
other- other value.
-
-
-
-