libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Configuration Class Reference

Classe représentant une Configuration d'un Robot. More...

#include <configuration.hpp>

Public Member Functions

 Configuration (Robot *R)
 Constructeur de la classe. More...
 
 Configuration (Robot *R, double *C, bool noCopy=false)
 Constructeur de la classe. More...
 
 Configuration (const Configuration &conf)
 Copy constructor of the class. More...
 
 ~Configuration ()
 Destructeur de la classe.
 
Configurationoperator= (const Configuration &other)
 Asignation.
 
double & at (const int &i)
 Acces the configuration.
 
double & operator[] (const int &i) const
 Acces the configuration.
 
double & operator() (const int &i) const
 Acces the configuration.
 
void Clear ()
 détruie la configPt stockée
 
RobotgetRobot ()
 obtient le Robot pour lequel la Configuration est créée More...
 
Eigen::Quaterniond getQuaternion ()
 Gets the quaternion. More...
 
void setQuaternionsToEuler ()
 Sets EulersAngles.
 
double * getConfigStruct ()
 obtient le pointeur sur la ConfigPt More...
 
double * getConfigStructCopy ()
 obtient le pointeur sur la ConfigPt More...
 
void setConfiguration (double *C)
 modifie la structure configPt stockée More...
 
void setConfiguration (Configuration &C)
 modifie la structure configPt stockée More...
 
void convertToRadian ()
 indique si le vecteur de Quaternions est initialisé More...
 
std::tr1::shared_ptr
< Configuration
getConfigInDegree ()
 Get Config in degrees.
 
double dist (Configuration &Conf, bool print=false)
 calcule la distance à une Configuration More...
 
double dist (Configuration &q, int distChoice)
 calcule la distance à une Configuration More...
 
double distance (Configuration *q)
 Compute the distance between this configuration and the given one.
 
double squareDistance (Configuration *q)
 Compute the square of the distance between this configuration and the given one.
 
bool isInCollision ()
 indique si la Configuration est en collision More...
 
bool isOutOfBounds (bool print=false)
 True is the configuration respects DoFs bounds.
 
void adaptCircularJointsLimits ()
 True is the configuration respects DoFs bounds.
 
void setAsNotTested ()
 Set the configuration as not tested.
 
double distEnv ()
 Compute the min distance to a CSpace obstacle. More...
 
double getActiveDoF (unsigned int ith)
 Get the Ith Active Dof. More...
 
void setActiveDoF (unsigned int ith, double value)
 Set the ith active DoF.
 
bool equal (Configuration &Conf, bool print=false)
 compare à une autre Configuration More...
 
bool operator== (Configuration &Conf)
 Compare tow configurations.
 
bool operator!= (Configuration &Conf)
 Compare tow configurations.
 
std::tr1::shared_ptr
< Configuration
copy ()
 copie une Configuration More...
 
void copyPassive (Configuration &C)
 copie les joints passifs de la Configuration courante dans la Configuration entrée More...
 
double cost ()
 obtient le cout de la Configuration suivant l'espace des fonctions de cout More...
 
void setCostAsNotTested ()
 Set the configuration as not tested.
 
bool setConstraintsWithSideEffect ()
 Sets the configuration to respect robot constraints Leaves the robot in the last configuration.
 
bool setConstraints ()
 Sets the configuration to respect robot constraints.
 
std::tr1::shared_ptr
< Configuration
add (Configuration &C)
 
std::tr1::shared_ptr
< Configuration
operator+ (Configuration &Conf)
 Adds tow configurations.
 
std::tr1::shared_ptr
< Configuration
sub (Configuration &C)
 
std::tr1::shared_ptr
< Configuration
operator- (Configuration &Conf)
 Adds tow configurations.
 
Configurationmult (double coeff)
 
Configurationoperator* (double coeff)
 
Eigen::VectorXd getEigenVector ()
 Get the Eigen Vector of the configuration.
 
Eigen::VectorXd getEigenVector (const int &startIndex, const int &endIndex)
 
void setFromEigenVector (const Eigen::VectorXd &conf)
 set the Eigen Vector of the configuration
 
void setFromEigenVector (const Eigen::VectorXd &conf, const int &startIndex, const int &endIndex)
 
void print (bool withPassive=false)
 
void printCompare (Configuration *conf, bool withPassive=false)
 print a comparison between the 2 confs
 
void initializeFlyCraneConfiguration ()
 Initialize the FlyCrane attributes.
 
Eigen::Vector3d getPosition () const
 Get the position (in translation) of the reference point of the platform.
 
double * getOrientation ()
 Get the position (in rotation) of the reference point of the platform.
 
double * getDihedralAngles ()
 Get the orientations of the pairs of ropes with respect to the platform.
 
Eigen::Vector3d * getQuadCMs ()
 Get the coordinates of the center of mass of each quadrotor (expressed in the global reference frame).
 
Eigen::Vector3d * getQuadAnchors ()
 Get the coordinates of the anchor point of each quadrotor (expressed in the global reference frame).
 
bool getAssignedQuadAnchors () const
 Have the coordinates of the anchor points on the quadrotors been assigned?
 
double * getMaximalTensions ()
 Get the upper bounds on the estimations of the tensions exerted on the cables.
 
double * getMinimalTensions ()
 Get the lower bounds on the estimations of the tensions exerted on the cables.
 
double * getQuadForces ()
 Get the norms of the forces exerted by the quadrotors.
 
void setCentersOfMass (Eigen::Vector3d *centersOfMass)
 Set the coordinates of the center of mass of each quadrotor (in the global reference frame).
 
void setQuadAnchors (Eigen::Vector3d *anchors)
 Set the coordinates of the anchor points of the quadrotors (expressed in the global reference frame). More...
 
void setTensionsAndForces (double maxTensions[], double minTensions[], double forces[])
 Set the tension bounds and force norms.
 
bool isConnectible ()
 

Detailed Description

Classe représentant une Configuration d'un Robot.

Author
Florian Pilardeau,B90,6349 <fpilarde>

Constructor & Destructor Documentation

Configuration::Configuration ( Robot R)

Constructeur de la classe.

Parameters
Rle Robot pour lequel la Configuration est créée
Configuration::Configuration ( Robot R,
double *  C,
bool  noCopy = false 
)

Constructeur de la classe.

Parameters
Rle Robot pour lequel la Configuration est créée
Cla structure de Configuration qui sera stockée
noCopyif set to true, _Configuration is set to C, otherwise a copy of C is made.
Configuration::Configuration ( const Configuration conf)

Copy constructor of the class.

Parameters
confguration

Member Function Documentation

void Configuration::convertToRadian ( )

indique si le vecteur de Quaternions est initialisé

Returns
le vecteur de Quaternions est initialisé initialise le vecteur de Quaternions Set Quaternions Convert Configuration in radian
shared_ptr< Configuration > Configuration::copy ( )

copie une Configuration

Returns
une copie de la Configuration
void Configuration::copyPassive ( Configuration C)

copie les joints passifs de la Configuration courante dans la Configuration entrée

Parameters
Cin/out la Configuration à modifier
double Configuration::cost ( )

obtient le cout de la Configuration suivant l'espace des fonctions de cout

Returns
le cout de la Configuration
double Configuration::dist ( Configuration Conf,
bool  print = false 
)

calcule la distance à une Configuration

InitsQuaternion from eulers Angle.

Parameters
Confla Configuration entrée
Returns
la distance

InitsQuaternion from ExternQuaternion and indexDof this conversion uses conventions as described on page: http://www.euclideanspace.com/maths/geometry/rotations/euler/index.htm Coordinate System: right hand Positive angle: right hand Order of euler angles: heading first, then attitude, then bank matrix row column ordering: [m00 m01 m02] [m10 m11 m12] [m20 m21 m22] Computes the distance between configurations

double Configuration::dist ( Configuration q,
int  distChoice 
)

calcule la distance à une Configuration

Parameters
qla Configuration entrée
distChoicele type de calcul de distance
Returns
la distance
double Configuration::distEnv ( )

Compute the min distance to a CSpace obstacle.

Returns
min dist
bool Configuration::equal ( Configuration Conf,
bool  print = false 
)

compare à une autre Configuration

Parameters
Confla Configuration entrée
Returns
les deux Configurations sont égales
double Configuration::getActiveDoF ( unsigned int  ith)

Get the Ith Active Dof.

Returns
the ith active DoF
configPt Configuration::getConfigStruct ( )

obtient le pointeur sur la ConfigPt

Returns
la pointeur sur la ConfigPt
configPt Configuration::getConfigStructCopy ( )

obtient le pointeur sur la ConfigPt

Returns
la pointeur sur la ConfigPt
Eigen::Quaterniond Configuration::getQuaternion ( )

Gets the quaternion.

Returns
le vecteur des Quaternions
Robot * Configuration::getRobot ( )

obtient le Robot pour lequel la Configuration est créée

Returns
le Robot pour lequel la Configuration est créée
bool Configuration::isInCollision ( )

indique si la Configuration est en collision

Returns
la Configuration est en collision
void Configuration::setConfiguration ( double *  C)

modifie la structure configPt stockée

Parameters
Cla nouvelle structure configPt
void Configuration::setConfiguration ( Configuration C)

modifie la structure configPt stockée

Parameters
Cla Configuration contentant la nouvelle structure
void Configuration::setQuadAnchors ( Eigen::Vector3d *  anchors)

Set the coordinates of the anchor points of the quadrotors (expressed in the global reference frame).

Set the coordinates of the anchor points on quadrotors Aij (expressed in the global reference frame).


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