libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
API::ThreeDGrid Class Reference
Inheritance diagram for API::ThreeDGrid:
API::BaseGrid CollisionSpace GridToGraph GTPGrid HRICS::AgentGrid HRICS::Grid HRICS::NaturalGrid MightabilitiesGrid SignFeildGrid

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW ThreeDGrid ()
 Constructor. More...
 
 ThreeDGrid (Eigen::Vector3i size, std::vector< double > envSize)
 
 ThreeDGrid (double samplingRate, std::vector< double > envSize)
 
 ThreeDGrid (const ThreeDGrid &grid)
 Copy.
 
virtual ~ThreeDGrid ()
 Destructor.
 
void createAllCells ()
 Creates All Cells. More...
 
Eigen::Vector3d getCellSize ()
 
unsigned int getXNumberOfCells () const
 
unsigned int getYNumberOfCells () const
 
unsigned int getZNumberOfCells () const
 
ThreeDCellgetCell (unsigned int x, unsigned int y, unsigned int z) const
 Retruns the Cell at (x,y,z) More...
 
ThreeDCellgetCell (Eigen::Vector3i cell) const
 
ThreeDCellgetCell (const Eigen::Vector3d &pos) const
 
ThreeDCellgetCell (double *pos) const
 Get Cell in 3D ThreeDGrid. More...
 
Eigen::Vector3i getCellCoord (ThreeDCell *ptrCell) const
 Get place in grid. More...
 
ThreeDCellgetNeighbour (const Eigen::Vector3i &pos, unsigned int i) const
 Get Neighboor Cell.
 
Eigen::Vector3d getCoordinates (ThreeDCell *cell) const
 Retrive the X Y Z coordinate of the cell from its index.
 
unsigned int getXlineOfCell (unsigned int ith)
 
unsigned int getYlineOfCell (unsigned int ith)
 
unsigned int getZlineOfCell (unsigned int ith)
 
virtual void draw ()
 Draw a openGl view of the grid.
 
bool writeToXmlFile (std::string file)
 Writes the grid to en xml file.
 
bool loadFromXmlFile (std::string file)
 Reads the grid from an xml file.
 
- Public Member Functions inherited from API::BaseGrid
 BaseGrid (const BaseGrid &grid)
 
BaseCellgetCell (unsigned int i)
 Get Cell. More...
 
unsigned int getNumberOfCells ()
 Get Number Of Cells.
 
virtual std::vector
< Eigen::Vector3d > 
getBox ()
 
std::string getName ()
 

Protected Member Functions

virtual ThreeDCellcreateNewCell (unsigned int index, unsigned int x, unsigned int y, unsigned int z)
 Virtual function that creates a new Cell. More...
 
Eigen::Vector3d computeCellCorner (unsigned int x, unsigned int y, unsigned int z)
 Computes the corner of a cell. More...
 

Protected Attributes

Eigen::Vector3d _originCorner
 
Eigen::Vector3d _cellSize
 
unsigned int _nbCellsX
 
unsigned int _nbCellsY
 
unsigned int _nbCellsZ
 
- Protected Attributes inherited from API::BaseGrid
std::vector< BaseCell * > _cells
 
std::string m_name
 

Constructor & Destructor Documentation

ThreeDGrid::ThreeDGrid ( )

Constructor.

Parameters
Xnumber of cells
Ynumber of cells
Znumber of cells

Member Function Documentation

Vector3d ThreeDGrid::computeCellCorner ( unsigned int  x,
unsigned int  y,
unsigned int  z 
)
protected

Computes the corner of a cell.

Parameters
integerindex
void ThreeDGrid::createAllCells ( )

Creates All Cells.

Parameters
vectorenvSize XMin Xmax YMin YMax ZMin ZMax
ThreeDCell * ThreeDGrid::createNewCell ( unsigned int  index,
unsigned int  x,
unsigned int  y,
unsigned int  z 
)
protectedvirtual

Virtual function that creates a new Cell.

Parameters
integerindex
integerx
integery
integerz

Reimplemented in HRICS::AgentGrid, CollisionSpace, MightabilitiesGrid, HRICS::NaturalGrid, HRICS::Grid, GridToGraph, and SignFeildGrid.

ThreeDCell * ThreeDGrid::getCell ( unsigned int  x,
unsigned int  y,
unsigned int  z 
) const

Retruns the Cell at (x,y,z)

Parameters
integersx, y, z
ThreeDCell * ThreeDGrid::getCell ( double *  pos) const

Get Cell in 3D ThreeDGrid.

Parameters
index
Vector3i ThreeDGrid::getCellCoord ( ThreeDCell ptrCell) const

Get place in grid.

Parameters
index

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