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- ThePathConstraintsto 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
ConstructorsConstructorDescriptionConstraintsZone(double minPosition, double maxPosition, PathConstraints constraints) Creates an instance of aConstraintsZonerecord class. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themaxPositionrecord component.doubleReturns the value of theminPositionrecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
ConstraintsZone
Creates an instance of aConstraintsZonerecord class.- Parameters:
 minPosition- the value for theminPositionrecord componentmaxPosition- the value for themaxPositionrecord componentconstraints- the value for theconstraintsrecord 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 theminPositionrecord component.- Returns:
 - the value of the 
minPositionrecord component 
 - 
maxPosition
public double maxPosition()Returns the value of themaxPositionrecord component.- Returns:
 - the value of the 
maxPositionrecord component 
 - 
constraints
Returns the value of theconstraintsrecord component.- Returns:
 - the value of the 
constraintsrecord component 
 
 -