MipBaselib::SampledTrajectory Class Reference

Implements a sampled trajectory. More...

#include <Trajectory.h>

Inheritance diagram for MipBaselib::SampledTrajectory:

MipBaselib::Trajectory

List of all members.

Public Member Functions

 SampledTrajectory ()
 Default constructor.
 SampledTrajectory (Time samplingTime)
 Parametrical constructor.
 SampledTrajectory (SampledTrajectory &traj)
 Copy constructor.
void addTrajectory (AnalyticalTrajectory *traj)
 Builds a SampledTrajectory from an AnalyticalTrajectory.
void getSample (Time instant, Position &pos, Position &posp, Position &pospp)
 Gets a sample on the trajectory .
void clear ()
 Clears the current Trajectory.
Position getPos (Time t)
 Evaluate trajectory coordinates for a given time.
Position getFirstDeriv (Time t)
 Evaluate trajectory first derivative for a given time.
Position getSecondDeriv (Time t)
 Evaluate trajectory second derivative for a given time.


Detailed Description

Implements a sampled trajectory.

A sampled trajectory is a Trajectory given by a sequences of points.

Author:
Paolo Stegagno
Date:
2009/12/23
Todo:
Operatore= e CP Constr verify

Constructor & Destructor Documentation

MipBaselib::SampledTrajectory::SampledTrajectory (  ) 

Default constructor.

MipBaselib::SampledTrajectory::SampledTrajectory ( Time  samplingTime  ) 

Parametrical constructor.

MipBaselib::SampledTrajectory::SampledTrajectory ( SampledTrajectory traj  ) 

Copy constructor.


Member Function Documentation

void MipBaselib::SampledTrajectory::addTrajectory ( AnalyticalTrajectory traj  ) 

void MipBaselib::SampledTrajectory::getSample ( Time  instant,
Position pos,
Position posp,
Position pospp 
)

Gets a sample on the trajectory .

void MipBaselib::SampledTrajectory::clear ( void   ) 

Clears the current Trajectory.

Position MipBaselib::SampledTrajectory::getPos ( Time  t  )  [virtual]

Evaluate trajectory coordinates for a given time.

Parameters:
[in] t Time.
Returns:
The position at the desired time.

Implements MipBaselib::Trajectory.

Position MipBaselib::SampledTrajectory::getFirstDeriv ( Time  t  )  [virtual]

Evaluate trajectory first derivative for a given time.

Parameters:
[in] t Time.
Returns:
The first derivative of the position at the desired time.

Implements MipBaselib::Trajectory.

Position MipBaselib::SampledTrajectory::getSecondDeriv ( Time  t  )  [virtual]

Evaluate trajectory second derivative for a given time.

Parameters:
[in] t Time.
Returns:
The second derivative of the position at the desired time.

Implements MipBaselib::Trajectory.


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

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6