#include <MultiRegCam.h>
Public Member Functions | |
MultiRegCam (MultiRegCamPar par) | |
Default constructor. | |
~MultiRegCam () | |
Default destructor. | |
void | initExample (vector< AngleId > &input) |
Inizialization of the structure (an example). | |
void | print (vector< AngleId > input, int option) |
Print a vector of vector. Option 1 to convert to degree; 0 for rad. | |
void | print (vector< vector< Decimal > > input) |
Print a vector of vector of Decimal. | |
void | initTriangles (vector< AngleId > input, MultiRegCamSol *mrcsols, int myId) |
Find triangles in a robots' formation. | |
vector< vector< Angle > > | createAng (vector< vector< Angle > > input) |
vector< vector< Decimal > > | findFormTot (vector< vector< Angle > > input) |
void | evalTria (vector< AngleId > input, int firstV, int firstF, int firstS, int secondV, int secondF, int secondS, int thirdV, int thirdF, int thirdS, Decimal aSide, Decimal bSide, Decimal cSide, Triangle *triaPointer) |
Evaluate a given triangle. | |
int | step (int argc, char **argv) |
Example of using this class. | |
void | eraseDup (Triangle *&triaPointer, Decimal thr) |
Deletes points in the interTwo vector that are in interThree one. | |
void | eraseDup3 (Triangle *&triaPointer, Decimal thr) |
Deletes points in the intersection by three vector that are already in this structure. | |
bool | eraseDupTria (vector< Triangle * > &trias, Triangle *&tria) |
void | createPol (vector< Triangle * > triaSols, int myId, MultiRegCamSol *mrcsols) |
Search if there is a robot with measurements compatible with the given measure. | |
void | quickSortTria (vector< Triangle * > &triaSols, Triangle *&tria, int myId) |
Insert in order a triangle* in the list. | |
void | selectSubSol (vector< Triangle * > &triaSols, Triangle *&tria, int myId) |
Insert in order a triangle* in the list. | |
void | printDataIn (AngleId *first, int f1, int f2, AngleId *second, int s1, int s2, AngleId *third, int t1, int t2, int info1, int info2, int info3, int id1, int id2, int id3) |
Print info about data input. | |
Public Attributes | |
MultiRegCamPar | _par |
fstream | _logMultiRegCamFile |
MipAlgorithms::MultiRegCam::MultiRegCam | ( | MultiRegCamPar | par | ) |
Default constructor.
MipAlgorithms::MultiRegCam::~MultiRegCam | ( | ) |
Default destructor.
void MipAlgorithms::MultiRegCam::initExample | ( | vector< AngleId > & | input | ) |
Inizialization of the structure (an example).
void MipAlgorithms::MultiRegCam::print | ( | vector< AngleId > | input, | |
int | option | |||
) |
Print a vector of vector. Option 1 to convert to degree; 0 for rad.
void MipAlgorithms::MultiRegCam::print | ( | vector< vector< Decimal > > | input | ) |
Print a vector of vector of Decimal.
void MipAlgorithms::MultiRegCam::initTriangles | ( | vector< AngleId > | input, | |
MultiRegCamSol * | mrcsols, | |||
int | myId | |||
) |
Find triangles in a robots' formation.
vector< vector< Decimal > > MipAlgorithms::MultiRegCam::findFormTot | ( | vector< vector< Angle > > | input | ) |
void MipAlgorithms::MultiRegCam::evalTria | ( | vector< AngleId > | input, | |
int | firstV, | |||
int | firstF, | |||
int | firstS, | |||
int | secondV, | |||
int | secondF, | |||
int | secondS, | |||
int | thirdV, | |||
int | thirdF, | |||
int | thirdS, | |||
Decimal | aSide, | |||
Decimal | bSide, | |||
Decimal | cSide, | |||
Triangle * | triaPointer | |||
) |
Evaluate a given triangle.
TODO Delete it!
int MipAlgorithms::MultiRegCam::step | ( | int | argc, | |
char ** | argv | |||
) |
Example of using this class.
Deletes points in the interTwo vector that are in interThree one.
Deletes points in the intersection by three vector that are already in this structure.
void MipAlgorithms::MultiRegCam::createPol | ( | vector< Triangle * > | triaSols, | |
int | myId, | |||
MultiRegCamSol * | mrcsols | |||
) |
Search if there is a robot with measurements compatible with the given measure.
void MipAlgorithms::MultiRegCam::quickSortTria | ( | vector< Triangle * > & | triaSols, | |
Triangle *& | tria, | |||
int | myId | |||
) |
Insert in order a triangle* in the list.
void MipAlgorithms::MultiRegCam::selectSubSol | ( | vector< Triangle * > & | triaSols, | |
Triangle *& | tria, | |||
int | myId | |||
) |
Insert in order a triangle* in the list.
void MipAlgorithms::MultiRegCam::printDataIn | ( | AngleId * | first, | |
int | f1, | |||
int | f2, | |||
AngleId * | second, | |||
int | s1, | |||
int | s2, | |||
AngleId * | third, | |||
int | t1, | |||
int | t2, | |||
int | info1, | |||
int | info2, | |||
int | info3, | |||
int | id1, | |||
int | id2, | |||
int | id3 | |||
) |
Print info about data input.