![]() |
RobWorkProject
23.9.11-
|
Implements a trajectory with blends between segments. TODO: Briefly describe how. More...
#include <DeviceTrajectory.hpp>
Inherits Trajectory< rw::math::Q >.
Public Member Functions | |
| DeviceTrajectory (rw::core::Ptr< rw::models::Device > deviceIn, const rw::kinematics::State &state) | |
| Default constructor creating an empty trajectory. | |
| virtual | ~DeviceTrajectory () |
| Destructor. | |
| rw::math::Q | x (double t) const |
| Position of trajectory at time t. More... | |
| rw::math::Q | dx (double t) const |
| Velocity of trajectory at time t. More... | |
| rw::math::Q | ddx (double t) const |
| Acceleration of trajectory at time t. More... | |
| double | duration () const |
| Total duration of the trajectory. More... | |
| double | startTime () const |
| Returns the startTime of the trajectory. More... | |
| double | endTime () const |
| Returns the endTime of the trajectory. More... | |
| virtual rw::trajectory::TrajectoryIterator< T >::Ptr | getIterator (double dt) const |
| Returns a bi-directional interator for running through the trajectory. More... | |
| void | moveL (const rw::math::Transform3D<> &target, double blend=0.0) |
| void | moveL (const rw::math::Rotation3D<> &target, double blend=0.0) |
| void | moveL (const rw::math::Vector3D<> &target, double blend=0.0) |
| void | moveJ (const rw::math::Q &target, double blend=0.0) |
Public Member Functions inherited from Trajectory< rw::math::Q > | |
| virtual | ~Trajectory () |
| Destructor. | |
| std::vector< rw::math::Q > | getPath (double dt, bool uniform=true) |
| Constructs a discrete path based on the trajectory. More... | |
Additional Inherited Members | |
Public Types inherited from Trajectory< rw::math::Q > | |
| typedef rw::core::Ptr< Trajectory< rw::math::Q > > | Ptr |
| smart pointer type | |
Protected Member Functions inherited from Trajectory< rw::math::Q > | |
| Trajectory () | |
| Construct an empty trajectory. | |
Implements a trajectory with blends between segments. TODO: Briefly describe how.
|
inlinevirtual |
Acceleration of trajectory at time t.
Returns the acceleration of the trajectory at time t \(\in[startTime(), endTime()]\).
| t | [in] time between startTime() and endTime() |
Implements Trajectory< rw::math::Q >.
|
inlinevirtual |
Total duration of the trajectory.
The duration of the Trajectory corresponds to the time it takes to run through it.
If the trajectory is empty, then -1 is returned.
Implements Trajectory< rw::math::Q >.
|
inlinevirtual |
Velocity of trajectory at time t.
Returns the velocity of the trajectory at time t \(\in[startTime(), endTime()]\).
| t | [in] time between startTime() and endTime() |
Implements Trajectory< rw::math::Q >.
|
inlinevirtual |
Returns the endTime of the trajectory.
The end time equals startTime() + duration().
Reimplemented from Trajectory< rw::math::Q >.
|
inlinevirtual |
Returns a bi-directional interator for running through the trajectory.
For some trajectory types it may be significantly more efficient to run through using an iterator, rather than using random access.
| dt | [in] The default time step used when using the ++ or – operators in the iterator |
Pointer to the iterator. The pointer has ownership.
Implements Trajectory< rw::math::Q >.
|
inlinevirtual |
|
inlinevirtual |
Position of trajectory at time t.
Returns the position of the trajectory at time t \(\in[startTime(), endTime()]\).
| t | [in] time between startTime() and endTime() |
Implements Trajectory< rw::math::Q >.