Class MotionProfile.Point

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double acceleration
      The acceleration of the profiled mechanism, in position units per second squared.
      double dt
      The time change since the previous point, in seconds.
      double heading
      The robot's heading in radians, or 0 if not applicable.
      double jerk
      The jerk of the profiled mechanism, in position units per second cubed.
      double position
      The position of the profiled mechanism.
      double velocity
      The velocity of the profiled mechanism, in position units per second.
      double x
      The x-position of the robot, or 0 if not applicable.
      double y
      The y-position of the robot, or 0 if not applicable.
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(double dt, double x, double y, double position, double velocity, double acceleration, double jerk, double heading)
      Creates a new Point.
    • Field Detail

      • dt

        public double dt
        The time change since the previous point, in seconds.
      • x

        public double x
        The x-position of the robot, or 0 if not applicable.
      • y

        public double y
        The y-position of the robot, or 0 if not applicable.
      • position

        public double position
        The position of the profiled mechanism.
      • velocity

        public double velocity
        The velocity of the profiled mechanism, in position units per second.
      • acceleration

        public double acceleration
        The acceleration of the profiled mechanism, in position units per second squared.
      • jerk

        public double jerk
        The jerk of the profiled mechanism, in position units per second cubed.
      • heading

        public double heading
        The robot's heading in radians, or 0 if not applicable.
    • Constructor Detail

      • Point

        public Point​(double dt,
                     double x,
                     double y,
                     double position,
                     double velocity,
                     double acceleration,
                     double jerk,
                     double heading)
        Creates a new Point.
        Parameters:
        dt - The time change since the previous point, in seconds.
        x - The x-position of the robot, or 0 if not applicable.
        y - The y-position of the robot, or 0 if not applicable.
        position - The position of the profiled mechanism.
        velocity - The velocity of the profiled mechanism, in position units per second.
        acceleration - The acceleration of the profiled mechanism, in position units per second squared.
        jerk - The jerk of the profiled mechanism, in position units per second cubed.
        heading - The robot's heading in radians, or 0 if not applicable.
    • Method Detail

      • equals

        @Contract(value="null -> false",
                  pure=true)
        public boolean equals​(@Nullable
                              @Nullable Object o)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object