![]() |
RobWorkProject
24.12.4-
|
Forward declaration of Trajectory Iterator (needed for friend declaration) More...
#include <TrajectoryIterator.hpp>
Inherited by InterpolatorTrajectoryIterator< T >.
Public Types | |
typedef rw::core::Ptr< TrajectoryIterator< T > > | Ptr |
smart pointer type | |
Public Member Functions | |
virtual | ~TrajectoryIterator () |
destructor | |
virtual double | getTime () const =0 |
Returns the current position (time) of the iterator. More... | |
virtual void | inc ()=0 |
Method for increasing the position of the iterator a fixed amount. More... | |
virtual void | inc (double dt)=0 |
Method for increasing the position of the iterator by dt. More... | |
virtual void | dec ()=0 |
Method for decreasing the position of the iterator a fixed amount. More... | |
virtual void | dec (double dt)=0 |
Method for decreasing the position of the iterator a fixed amount. More... | |
virtual void | operator-= (double dt) |
This function can be used to decrease the iterator position. The position can be decreased no longer than to time equals 0. More... | |
virtual void | operator+= (double dt) |
This function can be used to increase the iterator position. The position can be increased no longer than the length of the complete trajectory. More... | |
virtual TrajectoryIterator & | operator++ () |
Operator overloading ++ for increasing the position of the iterator. More... | |
virtual void | operator++ (int) |
Operator overloading ++ for increasing the position of the iterator. More... | |
virtual TrajectoryIterator & | operator-- () |
Operator overloading – for decreasing the position of the iterator. More... | |
virtual void | operator-- (int) |
Operator overloading – for decreasing the position of the iterator. More... | |
virtual bool | isEnd () const =0 |
Test if the end of the trajectory is reached. More... | |
virtual bool | isBegin () const =0 |
Test if the beginning of the trajectory is reached. More... | |
virtual T | operator* () const =0 |
Extracts a point at the current position in the trajectory. More... | |
virtual T | x () const =0 |
Extracts a point at the current position in the trajectory. More... | |
virtual T | dx () const =0 |
Extracts a point of the derivative of the trajectory at the current position in the trajectory. More... | |
virtual T | ddx () const =0 |
Extracts a point of the double derivative of the trajectory at the current position in the trajectory. More... | |
Forward declaration of Trajectory Iterator (needed for friend declaration)
Bi-directional iterator for running efficiently through a trajectory.
|
pure virtual |
Extracts a point of the double derivative of the trajectory at the current position in the trajectory.
Implemented in InterpolatorTrajectoryIterator< T >.
|
pure virtual |
Method for decreasing the position of the iterator a fixed amount.
The decrement is equal to the dt specified in the constructor.
|
pure virtual |
Method for decreasing the position of the iterator a fixed amount.
dt | [in] Amount to decrease. A positive value is expected |
|
pure virtual |
Extracts a point of the derivative of the trajectory at the current position in the trajectory.
Implemented in InterpolatorTrajectoryIterator< T >.
|
pure virtual |
Returns the current position (time) of the iterator.
|
pure virtual |
Method for increasing the position of the iterator a fixed amount.
The increment is equal to the dt specified in the constructor.
|
pure virtual |
Method for increasing the position of the iterator by dt.
dt | [in] Amount to increase. A positive value is expected. |
|
pure virtual |
Test if the beginning of the trajectory is reached.
|
pure virtual |
Test if the end of the trajectory is reached.
|
pure virtual |
Extracts a point at the current position in the trajectory.
Implemented in InterpolatorTrajectoryIterator< T >.
|
inlinevirtual |
Operator overloading ++ for increasing the position of the iterator.
Usage: ++iterator
The increment is equal to the dt specified in the constructor.
Reimplemented in InterpolatorTrajectoryIterator< T >.
|
inlinevirtual |
Operator overloading ++ for increasing the position of the iterator.
Usage: iterator++
The increment is equal to the dt specified in the constructor.
|
inlinevirtual |
This function can be used to increase the iterator position. The position can be increased no longer than the length of the complete trajectory.
dt | [in] a double that describes how much to increase the iterator position |
Reimplemented in InterpolatorTrajectoryIterator< T >.
|
inlinevirtual |
Operator overloading – for decreasing the position of the iterator.
Usage: –iterator;
The decrement is equal to the dt specified in the constructor.
Reimplemented in InterpolatorTrajectoryIterator< T >.
|
inlinevirtual |
Operator overloading – for decreasing the position of the iterator.
Usage: iterator–;
The decrement is equal to the dt specified in the constructor.
|
inlinevirtual |
This function can be used to decrease the iterator position. The position can be decreased no longer than to time equals 0.
dt | [in] a double that describes how much to decrease the iterator position |
Reimplemented in InterpolatorTrajectoryIterator< T >.
|
pure virtual |
Extracts a point at the current position in the trajectory.
Implemented in InterpolatorTrajectoryIterator< T >.