kybalg::triangleAssObs Class Reference

triangleAssObs class More...

#include <ProbMultiRegStereoCam3DStr.h>

Inheritance diagram for kybalg::triangleAssObs:

MIPObject

List of all members.

Public Member Functions

 triangleAssObs ()
 Default constructor.
 triangleAssObs (Position3D xy1, int id1, Position3D xy2, int id2, Position3D xy3, int id3)
 Complete constructor.
 ~triangleAssObs ()
 Default destructor.
vector< PosId3DgetVertex ()
 Returns all the geometrical informations about the triangle.
PosId3DgetFirstVertex ()
 Returns the first vertex.
PosId3DgetSecondVertex ()
 Returns the second vertex.
PosId3DgetThirdVertex ()
 Returns the third vertex.
PosId3DgetVertexByPos (int pos)
 Returns the vertex in position pos.
PosId3DgetVertexByID (int id)
void setMyIdVertex (int myId, Decimal &aSide, Decimal &bSide, Decimal &cSide)
 set myId as first vertex of the triangle
bool isAVertex (Position3D pos, Decimal thr)
 Check if the position given in input is already a vertex of the triangle.
void getIds (vector< int > &ris)
 Return the ids in the given triangle.
vector< int > getIds ()
 Return the ids in the given triangle.
InterPointsgetInter3 ()
 Return the actual set of intersection by three.
InterPointssetInter3 ()
 Return the intersection by three vector in edit mode.
Position3D getInter3At (int i)
 Return the Position in i-th position.
int getInter3Size ()
 Return the size of the intersection by three vector.
InterPointsgetInter2 ()
 Return the actual set of intersection by two.
int getInter2Size ()
 Return the size of the intersection by three vector.
void deleteDupPoint2 (int pos)
 Delete an item in the interPoint2 structure (at position pos).
void deleteDupPoint3 (int pos)
 Delete an item in the interPoint2 structure (at position pos).
void insertPoints3 (vector< Position3D > iPoints)
 Insert some new three intersection points into the actual triangle.
void insertPoint3 (Position3D iPoint)
 Insert some new three intersection point into the actual triangle.
void insertPoints2 (vector< Position3D > iPoints)
 Insert some new two intersection points into the actual triangle.
void insertPoint2 (Position3D iPoint)
 Insert a new two intersection point into the actual triangle.
bool checkId (int myId)
 Checks if there is myId in the triagle's ids.
bool sameIds (triangleAssObs *tria)
 Checks if two triangles has the same ids as verteces(the given tria and the actual one).
bool setOri (bearDistStr oriTwo, bearDistStr oriThree, bearDistStr oriTwoF, bearDistStr oriTwoS, bearDistStr oriThreeF, bearDistStr oriThreeS, Decimal projToll)
 Set the respective orientation of the robot in the actual triangles.
bool setOriOpt (bearDistStr oriTwo, bearDistStr oriThree, bearDistStr oriTwoF, bearDistStr oriTwoS, bearDistStr oriThreeF, bearDistStr oriThreeS, Decimal projToll, Decimal angToll)
 Set the respective observations.
bool setOriSing (bearDistStr oriTwo, bearDistStr oriThree, bearDistStr oriTwoF, bearDistStr oriTwoS, bearDistStr oriThreeF, bearDistStr oriThreeS, Decimal projToll, Decimal angToll)
 Set the respective observations in singular case.
bearDistStr getOriTwo ()
 Get the orientation of the second robot in the triangle.
bearDistStr getOriThree ()
 Get the orientation of the third robot in the triangle.
bearDistStr getOriTwoThree ()
 Get the orientation of the third robot respect to the second one.
bearDistStr getOriTwoOne ()
 Get the orientation of the first robot (base of the triangle) respect to the second one.
bearDistStr getOriThreeOne ()
 Get the orientation of the first robot (base) respect to the third one.
bearDistStr getOriThreeTwo ()
 Get the orientation of the second robot respect to the third one.
Angle getOriByPos (int pos)
 Return the orientation of the robot with triangle index pos.
string print ()
 Print the triangle's parameters.
triangleAssObsoperator= (triangleAssObs &A)
 Operator assignment =.
bool operator== (triangleAssObs &A) const
 Operator ==.
string getObjectName () const
 Return the name of the object.


Detailed Description

triangleAssObs class

Each triangle is composed by: three vertexes, double and triple intersections and the observation that builds the triangle

Author:
Marco Cognetti

Constructor & Destructor Documentation

kybalg::triangleAssObs::triangleAssObs (  ) 

Default constructor.

kybalg::triangleAssObs::triangleAssObs ( Position3D  xy1,
int  id1,
Position3D  xy2,
int  id2,
Position3D  xy3,
int  id3 
)

Complete constructor.

kybalg::triangleAssObs::~triangleAssObs (  ) 

Default destructor.


Member Function Documentation

vector< PosId3D > kybalg::triangleAssObs::getVertex (  ) 

Returns all the geometrical informations about the triangle.

PosId3D * kybalg::triangleAssObs::getFirstVertex (  ) 

Returns the first vertex.

PosId3D * kybalg::triangleAssObs::getSecondVertex (  ) 

Returns the second vertex.

PosId3D * kybalg::triangleAssObs::getThirdVertex (  ) 

Returns the third vertex.

PosId3D * kybalg::triangleAssObs::getVertexByPos ( int  pos  ) 

Returns the vertex in position pos.

PosId3D * kybalg::triangleAssObs::getVertexByID ( int  id  ) 

void kybalg::triangleAssObs::setMyIdVertex ( int  myId,
Decimal aSide,
Decimal bSide,
Decimal cSide 
)

set myId as first vertex of the triangle

bool kybalg::triangleAssObs::isAVertex ( Position3D  pos,
Decimal  thr 
)

Check if the position given in input is already a vertex of the triangle.

void kybalg::triangleAssObs::getIds ( vector< int > &  ris  ) 

Return the ids in the given triangle.

vector< int > kybalg::triangleAssObs::getIds (  ) 

Return the ids in the given triangle.

InterPoints * kybalg::triangleAssObs::getInter3 (  ) 

Return the actual set of intersection by three.

InterPoints * kybalg::triangleAssObs::setInter3 (  ) 

Return the intersection by three vector in edit mode.

Position3D kybalg::triangleAssObs::getInter3At ( int  i  ) 

Return the Position in i-th position.

int kybalg::triangleAssObs::getInter3Size (  ) 

Return the size of the intersection by three vector.

InterPoints * kybalg::triangleAssObs::getInter2 (  ) 

Return the actual set of intersection by two.

int kybalg::triangleAssObs::getInter2Size (  ) 

Return the size of the intersection by three vector.

void kybalg::triangleAssObs::deleteDupPoint2 ( int  pos  ) 

Delete an item in the interPoint2 structure (at position pos).

void kybalg::triangleAssObs::deleteDupPoint3 ( int  pos  ) 

Delete an item in the interPoint2 structure (at position pos).

void kybalg::triangleAssObs::insertPoints3 ( vector< Position3D iPoints  ) 

Insert some new three intersection points into the actual triangle.

void kybalg::triangleAssObs::insertPoint3 ( Position3D  iPoint  ) 

Insert some new three intersection point into the actual triangle.

void kybalg::triangleAssObs::insertPoints2 ( vector< Position3D iPoints  ) 

Insert some new two intersection points into the actual triangle.

void kybalg::triangleAssObs::insertPoint2 ( Position3D  iPoint  ) 

Insert a new two intersection point into the actual triangle.

bool kybalg::triangleAssObs::checkId ( int  myId  ) 

Checks if there is myId in the triagle's ids.

bool kybalg::triangleAssObs::sameIds ( triangleAssObs tria  ) 

Checks if two triangles has the same ids as verteces(the given tria and the actual one).

bool kybalg::triangleAssObs::setOri ( bearDistStr  oriTwo,
bearDistStr  oriThree,
bearDistStr  oriTwoF,
bearDistStr  oriTwoS,
bearDistStr  oriThreeF,
bearDistStr  oriThreeS,
Decimal  projToll 
)

Set the respective orientation of the robot in the actual triangles.

bool kybalg::triangleAssObs::setOriOpt ( bearDistStr  oriTwo,
bearDistStr  oriThree,
bearDistStr  oriTwoF,
bearDistStr  oriTwoS,
bearDistStr  oriThreeF,
bearDistStr  oriThreeS,
Decimal  projToll,
Decimal  angToll 
)

Set the respective observations.

bool kybalg::triangleAssObs::setOriSing ( bearDistStr  oriTwo,
bearDistStr  oriThree,
bearDistStr  oriTwoF,
bearDistStr  oriTwoS,
bearDistStr  oriThreeF,
bearDistStr  oriThreeS,
Decimal  projToll,
Decimal  angToll 
)

Set the respective observations in singular case.

bearDistStr kybalg::triangleAssObs::getOriTwo (  ) 

Get the orientation of the second robot in the triangle.

bearDistStr kybalg::triangleAssObs::getOriThree (  ) 

Get the orientation of the third robot in the triangle.

bearDistStr kybalg::triangleAssObs::getOriTwoThree (  ) 

Get the orientation of the third robot respect to the second one.

bearDistStr kybalg::triangleAssObs::getOriTwoOne (  ) 

Get the orientation of the first robot (base of the triangle) respect to the second one.

bearDistStr kybalg::triangleAssObs::getOriThreeOne (  ) 

Get the orientation of the first robot (base) respect to the third one.

bearDistStr kybalg::triangleAssObs::getOriThreeTwo (  ) 

Get the orientation of the second robot respect to the third one.

Angle kybalg::triangleAssObs::getOriByPos ( int  pos  ) 

Return the orientation of the robot with triangle index pos.

string kybalg::triangleAssObs::print (  ) 

Print the triangle's parameters.

triangleAssObs & kybalg::triangleAssObs::operator= ( triangleAssObs A  ) 

Operator assignment =.

bool kybalg::triangleAssObs::operator== ( triangleAssObs A  )  const

Operator ==.

string kybalg::triangleAssObs::getObjectName (  )  const [inline, virtual]

Return the name of the object.

Implements MIPObject.


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

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