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 double
final org.apache.commons.math3.geometry.euclidean.threed.Vector3D
final double
final double
final double
final 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 double
protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D
getVelocityInDirectionOfTarget
(double velocity) abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D
solveDisplacement
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D currentDisplacement) abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D
solveTime
(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)
-