Package org.robwork.sdurw_trajectory
Class CubicSplineInterpolator_d_f
- java.lang.Object
-
- org.robwork.sdurw_trajectory.Interpolator_d_f
-
- org.robwork.sdurw_trajectory.CubicSplineInterpolator_d_f
-
public class CubicSplineInterpolator_d_f extends Interpolator_d_f
This class represents a 3-degree polynomial function, used
in Cubic Splines hence the name CubicSegment.
\bf{f}(t)= \bf{a} + \bf{b}\cdot t + \bf{c}\cdot t^2 \bf{d}\cdot t^3
-
-
Constructor Summary
Constructors Constructor Description CubicSplineInterpolator_d_f(float a, float b, float c, float d, double duration)CubicSplineInterpolator_d_f(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatddx(double t)
Note: The second derivative is a 1-degree polynomial:
\bf{df}(t)= 2\cdot \bf{c} + 6\cdot \bf{d}\cdot tvoiddelete()doubleduration()Returns the duration of the interpolator
The duration is defined as the time it takes to move from one end
of the interpolator to the other.floatdx(double t)
Note: The derivative is a 2-degree polynomial:
\bf{df}(t)= \bf{b} + 2\cdot \bf{c}\cdot t + 3\cdot \bf{d}\cdot t^2static longgetCPtr(CubicSplineInterpolator_d_f obj)floatx(double t)
Note: The cubic polynomial is given by a 3-degree polynomial:
\bf{f}(t)= \bf{a} + \bf{b}\cdot t + \bf{c}\cdot t^2 \bf{d}\cdot t^3-
Methods inherited from class org.robwork.sdurw_trajectory.Interpolator_d_f
getCPtr
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(CubicSplineInterpolator_d_f obj)
-
delete
public void delete()
- Overrides:
deletein classInterpolator_d_f
-
x
public float x(double t)
Note: The cubic polynomial is given by a 3-degree polynomial:
\bf{f}(t)= \bf{a} + \bf{b}\cdot t + \bf{c}\cdot t^2 \bf{d}\cdot t^3- Overrides:
xin classInterpolator_d_f- Parameters:
t- [in] time between 0 and length- Returns:
- Position
-
dx
public float dx(double t)
Note: The derivative is a 2-degree polynomial:
\bf{df}(t)= \bf{b} + 2\cdot \bf{c}\cdot t + 3\cdot \bf{d}\cdot t^2- Overrides:
dxin classInterpolator_d_f- Parameters:
t- [in] time between 0 and length- Returns:
- Velocity
-
ddx
public float ddx(double t)
Note: The second derivative is a 1-degree polynomial:
\bf{df}(t)= 2\cdot \bf{c} + 6\cdot \bf{d}\cdot t- Overrides:
ddxin classInterpolator_d_f- Parameters:
t- [in] time between 0 and length- Returns:
- Acceleration
-
duration
public double duration()
Description copied from class:Interpolator_d_fReturns the duration of the interpolator
The duration is defined as the time it takes to move from one end
of the interpolator to the other.- Overrides:
durationin classInterpolator_d_f- Returns:
- duration
-
-