libmove3d-planners
|
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | TwoDGrid () |
Constructor. More... | |
TwoDGrid (Eigen::Vector2i size, std::vector< double > envSize) | |
TwoDGrid (double samplingRate, std::vector< double > envSize) | |
~TwoDGrid () | |
Destructor. | |
void | createAllCells () |
Creates All Cells. More... | |
Eigen::Vector2d | getCellSize () |
TwoDCell * | getCell (const Eigen::Vector2i &cell) |
TwoDCell * | getCell (int x, int y) |
Retruns the Cell at (x,y) More... | |
TwoDCell * | getCell (Eigen::Vector2d pos) |
TwoDCell * | getCell (double *pos) |
Get Cell in 3D ThreeDGrid. More... | |
TwoDCell * | getCell (unsigned int index) |
Get Cell. More... | |
bool | isCellCoordInGrid (const Eigen::Vector2i &coord) |
Is a Coord inside the Grid (used to debug) More... | |
Eigen::Vector2i | getCellCoord (TwoDCell *ptrCell) |
Get place in grid. More... | |
int | getNumberOfCells () |
Get Number Of Cells. | |
TwoDCell * | getNeighbour (const Eigen::Vector2i &pos, int i) |
Get Neighboor Cell. | |
Eigen::Vector2d | getCoordinates (TwoDCell *cell) |
Retrive the X Y Z coordinate of the cell from its index. | |
virtual void | draw () |
![]() | |
BaseGrid (const BaseGrid &grid) | |
BaseCell * | getCell (unsigned int i) |
Get Cell. More... | |
unsigned int | getNumberOfCells () |
Get Number Of Cells. | |
virtual std::vector < Eigen::Vector3d > | getBox () |
virtual bool | writeToXmlFile (std::string file) |
Virtual function for creating an xml document. | |
virtual bool | loadFromXmlFile (std::string file) |
Virtual function for reading from an xml document. | |
std::string | getName () |
Protected Member Functions | |
virtual TwoDCell * | createNewCell (unsigned int index, unsigned int x, unsigned int y) |
Virtual function that creates a new Cell. More... | |
Eigen::Vector2d | computeCellCorner (int x, int y) |
Computes the corner of a cell. More... | |
Protected Attributes | |
Eigen::Vector2d | _originCorner |
Eigen::Vector2d | _cellSize |
unsigned int | _nbCellsX |
unsigned int | _nbCellsY |
![]() | |
std::vector< BaseCell * > | _cells |
std::string | m_name |
TwoDGrid::TwoDGrid | ( | ) |
Constructor.
X | number of cells |
Y | number of cells |
|
protected |
Computes the corner of a cell.
integer | index |
void TwoDGrid::createAllCells | ( | ) |
Creates All Cells.
vector | envSize XMin Xmax YMin YMax |
|
protectedvirtual |
Virtual function that creates a new Cell.
integer | index |
integer | x |
integer | y |
integer | z |
Reimplemented in HRICS::MultiAgentGrid, HRICS::EnvGrid, and HRICS::PlanGrid.
TwoDCell * TwoDGrid::getCell | ( | int | x, |
int | y | ||
) |
Retruns the Cell at (x,y)
integers | x, y |
TwoDCell * TwoDGrid::getCell | ( | double * | pos | ) |
Get Cell in 3D ThreeDGrid.
index |
TwoDCell * TwoDGrid::getCell | ( | unsigned int | index | ) |
Get Cell.
index |
Vector2i TwoDGrid::getCellCoord | ( | TwoDCell * | ptrCell | ) |
Get place in grid.
index |
bool TwoDGrid::isCellCoordInGrid | ( | const Eigen::Vector2i & | coord | ) |
Is a Coord inside the Grid (used to debug)
index | vector |