Package com.pathplanner.lib.path
Record Class ConstraintsZone
java.lang.Object
java.lang.Record
com.pathplanner.lib.path.ConstraintsZone
- Record Components:
minPosition
- Starting waypoint relative position of the zonemaxPosition
- End waypoint relative position of the zoneconstraints
- ThePathConstraints
to apply within the zone
public record ConstraintsZone(double minPosition, double maxPosition, PathConstraints constraints)
extends Record
A zone on a path with different kinematic constraints
-
Constructor Summary
ConstructorDescriptionConstraintsZone
(double minPosition, double maxPosition, PathConstraints constraints) Creates an instance of aConstraintsZone
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraints
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
Returns the value of themaxPosition
record component.double
Returns the value of theminPosition
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConstraintsZone
Creates an instance of aConstraintsZone
record class.- Parameters:
minPosition
- the value for theminPosition
record componentmaxPosition
- the value for themaxPosition
record componentconstraints
- the value for theconstraints
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
minPosition
public double minPosition()Returns the value of theminPosition
record component.- Returns:
- the value of the
minPosition
record component
-
maxPosition
public double maxPosition()Returns the value of themaxPosition
record component.- Returns:
- the value of the
maxPosition
record component
-
constraints
Returns the value of theconstraints
record component.- Returns:
- the value of the
constraints
record component
-