ocra-recipes
Doxygen documentation for the ocra-recipes repository
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ocra::TimeOptimalTrajectory Class Reference

#include <TimeOptimalTrajectory.h>

Inheritance diagram for ocra::TimeOptimalTrajectory:
[legend]
Collaboration diagram for ocra::TimeOptimalTrajectory:
[legend]

Public Member Functions

virtual ~TimeOptimalTrajectory ()
 
Eigen::MatrixXd getDesiredValues (double time)
 
virtual double getDuration ()
 
virtual void recalculateTrajectory ()
 
- Public Member Functions inherited from ocra::Trajectory
 Trajectory ()
 
void setMaxVelocity (double newMaxVel)
 
void setMaxVelocity (const Eigen::VectorXd &newMaxVel)
 
double getMaxVelocity ()
 
Eigen::VectorXd getMaxVelocityVector ()
 
void setMaxAcceleration (double newMaxAcc)
 
void setMaxAcceleration (const Eigen::VectorXd &newMaxAcc)
 
double getMaxAcceleration ()
 
Eigen::VectorXd getMaxAccelerationVector ()
 
void setWaypoints (const std::vector< double > &startingDoubleVec, const std::vector< double > &endingDoubleVec, const int waypointSelector=0, bool endsWithQuaternion=false)
 
void setWaypoints (const Eigen::VectorXd &startingVector, const Eigen::VectorXd &endingVector, bool endsWithQuaternion=false)
 
void setWaypoints (Eigen::Displacementd &startingDisplacement, Eigen::Displacementd &endingDisplacement, bool endsWithQuaternion=true)
 
void setWaypoints (Eigen::Rotation3d &startingOrientation, Eigen::Rotation3d &endingOrientation, bool endsWithQuaternion=true)
 
void setWaypoints (const std::list< Eigen::VectorXd > &_waypoints, bool _endsWithQuaternion=false)
 
void setWaypoints (Eigen::MatrixXd &waypoints, bool endsWithQuaternion=false)
 
virtual ~Trajectory ()
 
void setDuration ()
 
void setDuration (const Eigen::VectorXd &_pointToPointDurationVector)
 
void setDuration (double time)
 
bool isFinished ()
 
virtual void getDesiredValues (double time, Eigen::MatrixXd &desiredValues, Eigen::VectorXd &variance)
 
Eigen::MatrixXd getFullTrajectory (double dt=0.01)
 
void getDesiredValues (double time, std::vector< double > &doubleVec)
 
void getDesiredValues (double time, Eigen::Displacementd &disp)
 
void getDesiredValues (double time, Eigen::Rotation3d &orient)
 
void getDesiredValues (double time, Eigen::Displacementd &pos, Eigen::Twistd &vel, Eigen::Twistd &acc)
 
Eigen::Rotation3d quaternionSlerp (double tau, Eigen::Rotation3d &qStart, Eigen::Rotation3d &qEnd)
 
Eigen::VectorXd displacementToEigenVector (Eigen::Displacementd &disp)
 
Eigen::VectorXd quaternionToEigenVector (Eigen::Rotation3d &quat)
 
bool eigenVectorToStdVector (const Eigen::VectorXd &dispVec, std::vector< double > &doubleVec)
 
bool eigenMatrixToStdVector (const Eigen::MatrixXd &dispMat, std::vector< double > &doubleVec)
 
bool eigenVectorToDisplacement (const Eigen::VectorXd &dispVec, Eigen::Displacementd &disp)
 
bool eigenVectorToQuaternion (const Eigen::VectorXd &quatVec, Eigen::Rotation3d &quat)
 
bool eigenVectorToTwist (const Eigen::VectorXd &twistVec, Eigen::Twistd &twist)
 

Protected Member Functions

virtual void initializeTrajectory ()
 

Protected Attributes

double t0
 
double maxDeviation
 
double duration
 
double timeStep
 
gttraj::Trajectory * gt_trajectory
 
- Protected Attributes inherited from ocra::Trajectory
double maximumVelocity
 
Eigen::VectorXd maximumVelocityVector
 
double maximumAcceleration
 
Eigen::VectorXd maximumAccelerationVector
 
std::list< Eigen::VectorXd > waypointList
 
Eigen::MatrixXd waypoints
 
int nDoF
 
int nWaypoints
 
bool endsWithQuaternion
 
bool startTrigger
 
int currentWaypointIndex
 
int nonRotationDof
 
Eigen::VectorXd pointToPointDurationVector
 
double pointToPointDuration
 
double totalTrajectoryDuration
 
bool usingDurationVector
 
bool trajectoryFinished
 

Detailed Description

Definition at line 11 of file TimeOptimalTrajectory.h.

Constructor & Destructor Documentation

ocra::TimeOptimalTrajectory::~TimeOptimalTrajectory ( )
virtual

Definition at line 7 of file TimeOptimalTrajectory.cpp.

Member Function Documentation

Eigen::MatrixXd ocra::TimeOptimalTrajectory::getDesiredValues ( double  time)
virtual

Reimplemented from ocra::Trajectory.

Definition at line 13 of file TimeOptimalTrajectory.cpp.

double ocra::TimeOptimalTrajectory::getDuration ( )
virtual

Reimplemented from ocra::Trajectory.

Definition at line 58 of file TimeOptimalTrajectory.cpp.

void ocra::TimeOptimalTrajectory::initializeTrajectory ( )
protectedvirtual

Reimplemented from ocra::Trajectory.

Definition at line 35 of file TimeOptimalTrajectory.cpp.

void ocra::TimeOptimalTrajectory::recalculateTrajectory ( )
virtual

Reimplemented from ocra::Trajectory.

Definition at line 63 of file TimeOptimalTrajectory.cpp.

Member Data Documentation

double ocra::TimeOptimalTrajectory::duration
protected

Definition at line 28 of file TimeOptimalTrajectory.h.

gttraj::Trajectory* ocra::TimeOptimalTrajectory::gt_trajectory
protected

Definition at line 30 of file TimeOptimalTrajectory.h.

double ocra::TimeOptimalTrajectory::maxDeviation
protected

Definition at line 27 of file TimeOptimalTrajectory.h.

double ocra::TimeOptimalTrajectory::t0
protected

Definition at line 26 of file TimeOptimalTrajectory.h.

double ocra::TimeOptimalTrajectory::timeStep
protected

Definition at line 29 of file TimeOptimalTrajectory.h.


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