RobWorkProject  23.9.11-
Public Member Functions | List of all members
DeviceTrajectory Class Reference

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::QgetPath (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.
 

Detailed Description

Implements a trajectory with blends between segments. TODO: Briefly describe how.

Member Function Documentation

◆ ddx()

rw::math::Q ddx ( double  t) const
inlinevirtual

Acceleration of trajectory at time t.

Returns the acceleration of the trajectory at time t \(\in[startTime(), endTime()]\).

Parameters
t[in] time between startTime() and endTime()
Returns
Acceleration

Implements Trajectory< rw::math::Q >.

◆ duration()

double duration ( ) const
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 >.

◆ dx()

rw::math::Q dx ( double  t) const
inlinevirtual

Velocity of trajectory at time t.

Returns the velocity of the trajectory at time t \(\in[startTime(), endTime()]\).

Parameters
t[in] time between startTime() and endTime()
Returns
Velocity

Implements Trajectory< rw::math::Q >.

◆ endTime()

double endTime ( ) const
inlinevirtual

Returns the endTime of the trajectory.

The end time equals startTime() + duration().

Returns
The end time

Reimplemented from Trajectory< rw::math::Q >.

◆ getIterator()

virtual rw::trajectory::TrajectoryIterator<T>::Ptr getIterator ( double  dt) const
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.

Parameters
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 >.

◆ startTime()

double startTime ( ) const
inlinevirtual

Returns the startTime of the trajectory.

Returns
Start time

Implements Trajectory< rw::math::Q >.

◆ x()

rw::math::Q x ( double  t) const
inlinevirtual

Position of trajectory at time t.

Returns the position of the trajectory at time t \(\in[startTime(), endTime()]\).

Parameters
t[in] time between startTime() and endTime()
Returns
Position

Implements Trajectory< rw::math::Q >.


The documentation for this class was generated from the following file: