Package 

Class PoseAndVelocity


  • 
    public class PoseAndVelocity
    
                        

    Represents 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
      void rotateXY(double angleRadians) Rotates both pose and velocity by the specified angle.
      void copyFrom(PoseAndVelocity other) Copies another pose and velocity values into this one.
      String toString() Returns a String representation of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoseAndVelocity

        PoseAndVelocity()
        Constructs a new PoseAndVelocity object and initializes it with zeros.
      • PoseAndVelocity

        PoseAndVelocity(Pose2D pose, Pose2D velocity)
        Constructs a new PoseAndVelocity object and initializes it with existing values.
        Parameters:
        pose - robot pose.
        velocity - robot velocity.
    • 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.