![]() |
RobWorkProject
25.2.11-
|
Implements LinearInterpolator for rw::math::Transform3D<T> More...
#include <LinearInterpolator.hpp>
Inherits Interpolator< rw::math::Transform3D< T > >.
Public Types | |
typedef rw::core::Ptr< LinearInterpolator< rw::math::Transform3D< T > > > | Ptr |
smart pointer type to this class | |
typedef rw::core::Ptr< const LinearInterpolator< rw::math::Transform3D< T > > > | CPtr |
smart pointer type const instance of class | |
![]() | |
typedef rw::core::Ptr< Interpolator > | Ptr |
smart pointer type to this class | |
Public Member Functions | |
LinearInterpolator (const rw::math::Transform3D< T > &start, const rw::math::Transform3D< T > &end, double duration) | |
Construct LinearInterpolator starting a start and finishing in end and taking duration time. More... | |
rw::math::Transform3D< T > | x (double t) const |
Position at time t. More... | |
rw::math::Transform3D< T > | dx (double t) const |
Velocity at time t. More... | |
rw::math::Transform3D< T > | ddx (double t) const |
Acceleration at time t. More... | |
rw::math::Transform3D< T > | getStart () const |
Returns the start position of the interpolator. More... | |
rw::math::Transform3D< T > | getEnd () const |
Returns the end position of the interpolator. More... | |
double | duration () const |
Returns the duration of the interpolator. More... | |
const LinearInterpolator< rw::math::Vector3D< T > > & | getPositionInterpolator () const |
Returns LinearInterpolator for the position part of the transform. More... | |
const LinearInterpolator< rw::math::Rotation3D< T > > & | getRotationInterpolator () const |
Returns LinearInterpolator for the rotation part of the transform. More... | |
![]() | |
virtual | ~Interpolator () |
Virtual destructor. | |
Implements LinearInterpolator for rw::math::Transform3D<T>
The interpolation of rotation is made using Quaternions.
|
inline |
Construct LinearInterpolator starting a start and finishing in end and taking duration time.
If duration <= 0 an exception is thrown
start | [in] Start of interpolator |
end | [in] End of interpolator |
duration | [in] Time it takes to from one end to the other. |
|
inlinevirtual |
Acceleration at time t.
t | [in] time between 0 and length |
Implements Interpolator< rw::math::Transform3D< T > >.
|
inlinevirtual |
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.
Implements Interpolator< rw::math::Transform3D< T > >.
|
inlinevirtual |
Velocity at time t.
t | [in] time between 0 and length |
Implements Interpolator< rw::math::Transform3D< T > >.
|
inline |
Returns the end position of the interpolator.
|
inline |
Returns LinearInterpolator for the position part of the transform.
|
inline |
Returns LinearInterpolator for the rotation part of the transform.
|
inline |
Returns the start position of the interpolator.
|
inlinevirtual |
Position at time t.
t | [in] time between 0 and length |
Implements Interpolator< rw::math::Transform3D< T > >.