Package com.pocolifo.robobase.novel
Class AbstractMotionProfile
java.lang.Object
com.pocolifo.robobase.novel.AbstractMotionProfile
- Direct Known Subclasses:
NaiveConstantMotionProfile,TrapezoidalMotionProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal org.apache.commons.math3.geometry.euclidean.threed.Vector3Dfinal doublefinal doublefinal doublefinal org.apache.commons.math3.geometry.euclidean.threed.Vector3D -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMotionProfile(org.apache.commons.math3.geometry.euclidean.threed.Vector3D targetDisplacement, org.apache.commons.math3.geometry.euclidean.threed.Vector3D initialVelocity, double maxVelocity, double maxAcceleration, double minAcceleration) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract doubleprotected org.apache.commons.math3.geometry.euclidean.threed.Vector3DgetVelocityInDirectionOfTarget(double velocity) abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3DsolveDisplacement(org.apache.commons.math3.geometry.euclidean.threed.Vector3D currentDisplacement) abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3DsolveTime(double elapsed)
-
Field Details
-
targetDisplacement
public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D targetDisplacement -
maxVelocity
public final double maxVelocity -
maxAcceleration
public final double maxAcceleration -
minAcceleration
public final double minAcceleration -
initialVelocity
public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D initialVelocity -
duration
public final double duration
-
-
Constructor Details
-
AbstractMotionProfile
public AbstractMotionProfile(org.apache.commons.math3.geometry.euclidean.threed.Vector3D targetDisplacement, org.apache.commons.math3.geometry.euclidean.threed.Vector3D initialVelocity, double maxVelocity, double maxAcceleration, double minAcceleration)
-
-
Method Details
-
calculateDuration
protected abstract double calculateDuration() -
solveTime
public abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D solveTime(double elapsed) -
solveDisplacement
public abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D solveDisplacement(org.apache.commons.math3.geometry.euclidean.threed.Vector3D currentDisplacement) -
getVelocityInDirectionOfTarget
protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D getVelocityInDirectionOfTarget(double velocity)
-