Package org.robwork.sdurw
Class RampInterpolatorRotation3Dd
- java.lang.Object
-
- org.robwork.sdurw.InterpolatorSO3
-
- org.robwork.sdurw.RampInterpolatorRotation3Dd
-
public class RampInterpolatorRotation3Dd extends InterpolatorSO3
Make a ramp interpolation between two position
The template argument given needs to support addition with the "+" operator
and scaling with a double using the "*" operator.
For use with a rw::math::Transform3D see the template specialization
-
-
Constructor Summary
Constructors Constructor Description RampInterpolatorRotation3Dd(long cPtr, boolean cMemoryOwn)
RampInterpolatorRotation3Dd(Rotation3Dd start, Rotation3Dd end, Rotation3Dd vellimits, Rotation3Dd acclimits)
Construct RampInterpolator starting at start and finishing in end
with velocity limits vellimimts and acceleration limits acclimits.RampInterpolatorRotation3Dd(Rotation3Dd start, Rotation3Dd end, Rotation3Dd vellimits, Rotation3Dd acclimits, double duration)
Construct RampInterpolator starting at start and finishing in end
with velocity limits vellimimts and acceleration limits acclimits.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rotation3Dd
ddx(double t)
void
delete()
double
duration()
Rotation3Dd
dx(double t)
static long
getCPtr(RampInterpolatorRotation3Dd obj)
Rotation3Dd
getEnd()
Returns the end position of the interpolatorRotation3Dd
getStart()
Returns the start position of the interpolatorRotation3Dd
x(double t)
-
Methods inherited from class org.robwork.sdurw.InterpolatorSO3
getCPtr
-
-
-
-
Constructor Detail
-
RampInterpolatorRotation3Dd
public RampInterpolatorRotation3Dd(long cPtr, boolean cMemoryOwn)
-
RampInterpolatorRotation3Dd
public RampInterpolatorRotation3Dd(Rotation3Dd start, Rotation3Dd end, Rotation3Dd vellimits, Rotation3Dd acclimits, double duration)
Construct RampInterpolator starting at start and finishing in end
with velocity limits vellimimts and acceleration limits acclimits. The duration
will be calculated automatically. The start and end velocity and acceleration is zero.
If duration is not achievable given the velocity and acceleration limits then
the duration will be extended.- Parameters:
start
- [in] Start of interpolatorend
- [in] End of interpolatorvellimits
- [in] velocity limitsacclimits
- [in] acceleration limitsduration
- [in] Time it takes to from one end to the other.
-
RampInterpolatorRotation3Dd
public RampInterpolatorRotation3Dd(Rotation3Dd start, Rotation3Dd end, Rotation3Dd vellimits, Rotation3Dd acclimits)
Construct RampInterpolator starting at start and finishing in end
with velocity limits vellimimts and acceleration limits acclimits. The duration
will be calculated automatically. The start and end velocity and acceleration is zero.
If duration is not achievable given the velocity and acceleration limits then
the duration will be extended.- Parameters:
start
- [in] Start of interpolatorend
- [in] End of interpolatorvellimits
- [in] velocity limitsacclimits
- [in] acceleration limits
-
-
Method Detail
-
getCPtr
public static long getCPtr(RampInterpolatorRotation3Dd obj)
-
delete
public void delete()
- Overrides:
delete
in classInterpolatorSO3
-
x
public Rotation3Dd x(double t)
- Overrides:
x
in classInterpolatorSO3
-
dx
public Rotation3Dd dx(double t)
- Overrides:
dx
in classInterpolatorSO3
-
ddx
public Rotation3Dd ddx(double t)
- Overrides:
ddx
in classInterpolatorSO3
-
getStart
public Rotation3Dd getStart()
Returns the start position of the interpolator- Returns:
- The start position of the interpolator
-
getEnd
public Rotation3Dd getEnd()
Returns the end position of the interpolator- Returns:
- The end position of the interpolator
-
duration
public double duration()
- Overrides:
duration
in classInterpolatorSO3
-
-