Package xbot.common.math.kinematics
Class DeadwheelWheelPositions
java.lang.Object
xbot.common.math.kinematics.DeadwheelWheelPositions
- All Implemented Interfaces:
Interpolatable<DeadwheelWheelPositions>
public class DeadwheelWheelPositions
extends Object
implements Interpolatable<DeadwheelWheelPositions>
Represents the wheel positions for a differential drive drivetrain.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
Distance measured by the front side.double
Distance measured by the left side.double
Distance measured by the left side.double
Distance measured by the right side. -
Constructor Summary
ConstructorsConstructorDescriptionDeadwheelWheelPositions
(double leftMeters, double rightMeters, double frontMeters, double rearMeters) Constructs a DeadwheelWheelPositions.DeadwheelWheelPositions
(Distance left, Distance right, Distance front, Distance rear) Constructs a DeadwheelWheelPositions. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
interpolate
(DeadwheelWheelPositions endValue, double t) toString()
-
Field Details
-
leftMeters
public double leftMetersDistance measured by the left side. -
rightMeters
public double rightMetersDistance measured by the right side. -
frontMeters
public double frontMetersDistance measured by the front side. -
rearMeters
public double rearMetersDistance measured by the left side.
-
-
Constructor Details
-
DeadwheelWheelPositions
public DeadwheelWheelPositions(double leftMeters, double rightMeters, double frontMeters, double rearMeters) Constructs a DeadwheelWheelPositions.- Parameters:
leftMeters
- Distance measured by the left side.rightMeters
- Distance measured by the right side.frontMeters
- Distance measured by the left side.rearMeters
- Distance measured by the right side.
-
DeadwheelWheelPositions
Constructs a DeadwheelWheelPositions.- Parameters:
left
- Distance measured by the left side.right
- Distance measured by the right side.front
- Distance measured by the front side.rear
- Distance measured by the rear side.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
interpolate
- Specified by:
interpolate
in interfaceInterpolatable<DeadwheelWheelPositions>
-