Class TrapezoidProfile.State

java.lang.Object
edu.wpi.first.math.trajectory.TrapezoidProfile.State
Enclosing class:
TrapezoidProfile

public static class TrapezoidProfile.State
extends Object
Profile state.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    double position
    The position at this state.
    double velocity
    The velocity at this state.
  • Constructor Summary

    Constructors 
    Constructor Description
    State()
    Default constructor.
    State​(double position, double velocity)
    Constructs constraints for a Trapezoid Profile.
    State​(Measure<U> position, Measure<Velocity<U>> velocity)
    Constructs constraints for a Trapezoid Profile.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object other)  
    int hashCode()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • State

      public State()
      Default constructor.
    • State

      public State​(double position, double velocity)
      Constructs constraints for a Trapezoid Profile.
      Parameters:
      position - The position at this state.
      velocity - The velocity at this state.
    • State

      public State​(Measure<U> position, Measure<Velocity<U>> velocity)
      Constructs constraints for a Trapezoid Profile.
      Type Parameters:
      U - Unit type.
      Parameters:
      position - The position at this state.
      velocity - The velocity at this state.
  • Method Details