Package org.robwork.sdurw_trajectory
Class BlendVector2D
- java.lang.Object
-
- org.robwork.sdurw_trajectory.BlendVector2D
-
- Direct Known Subclasses:
LloydHaywardBlendVector2D
,ParabolicBlendVector2D
public class BlendVector2D extends java.lang.Object
Interface for blending
A Blend describes a way to blend between to consecutive interpolators. If we let
t_1 be the time switching from one interpolator to the next, then the blend
control the path in the interval [t_1-\tau_1;t_1+\tau_2].
See the specific implementations for at description of which template
arguments that are valid.
-
-
Constructor Summary
Constructors Constructor Description BlendVector2D(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector2D
ddx(double t)
The acceleration for a given time tvoid
delete()
Vector2D
dx(double t)
The velocity for a given time tstatic long
getCPtr(BlendVector2D obj)
double
tau1()
The time \tau_1 as defined in class definitiondouble
tau2()
The time \tau_2 as defined in class definitionVector2D
x(double t)
The position for a given time t
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(BlendVector2D obj)
-
delete
public void delete()
-
x
public Vector2D x(double t)
The position for a given time t- Parameters:
t
- [in] t\in[0,\tau_1+\tau_2]- Returns:
- Position at time t
-
dx
public Vector2D dx(double t)
The velocity for a given time t- Parameters:
t
- [in] t\in[0,\tau_1+\tau_2]- Returns:
- Velocity at time t
-
ddx
public Vector2D ddx(double t)
The acceleration for a given time t- Parameters:
t
- [in] t\in[0,\tau_1+\tau_2]- Returns:
- Acceleration at time t
-
tau1
public double tau1()
The time \tau_1 as defined in class definition- Returns:
- \tau_1
-
tau2
public double tau2()
The time \tau_2 as defined in class definition- Returns:
- \tau_2
-
-