libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
HRICS_Grid.hpp
1 #ifndef HRIGRID_HPP
2 #define HRIGRID_HPP
3 
4 #include "API/Device/robot.hpp"
5 #include "API/Grids/ThreeDGrid.hpp"
6 
11 namespace HRICS
12 {
13 
14  class Cell;
15 
16  class Grid : public API::ThreeDGrid
17  {
18  public:
19  Grid();
20  Grid( std::vector<int> size );
21  Grid(double pace, std::vector<double> envSize);
22 
23  API::ThreeDCell* createNewCell(unsigned int index, unsigned int x, unsigned int y, unsigned int z );
24  void computeAllCellCost();
25 
26  void drawVectorField();
27  void drawSpheres();
28  void draw();
29  void resetCellCost();
30 
31  void setRobot(Robot* rob) { _Robot = rob; }
32  Robot* getRobot() { return _Robot; }
33 
34  bool isVirtualObjectPathValid(Cell* fromCell,Cell* toCell);
35 
36  void computeVectorField();
37 
38  private:
39 
40  Robot* _Robot;
41  };
42 }
43 
44 #endif // HRIGRID_HPP
Definition: HRICS_Grid.hpp:16
API::ThreeDCell * createNewCell(unsigned int index, unsigned int x, unsigned int y, unsigned int z)
Virtual function that creates a new Cell.
Definition: HRICS_Grid.cpp:40
Definition: ThreeDGrid.hpp:24
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
Definition: HRICS_Cell.hpp:16
void drawVectorField()
Draws the Vector Field.
Definition: HRICS_Grid.cpp:275
void computeAllCellCost()
Compute Grid Cost.
Definition: HRICS_Grid.cpp:60
Definition: ThreeDCell.hpp:25
void resetCellCost()
Reset Grid Cost.
Definition: HRICS_Grid.cpp:79
void drawSpheres()
Draw Grid Cells.
Definition: HRICS_Grid.cpp:92
void draw()
Draw Grid Cells.
Definition: HRICS_Grid.cpp:180
void computeVectorField()
Computes the Vector Field.
Definition: HRICS_Grid.cpp:309