libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
HRICS_rrt.hpp
1 #ifndef HRICS_RRT_H
2 #define HRICS_RRT_H
3 
4 #include "../../Diffusion/RRT.hpp"
5 #include "../Grid/HRICS_Grid.hpp"
6 
11 class HRICS_RRT : public RRT
12 {
13 public:
14  HRICS_RRT(Robot* R, Graph* G);
15 
19  void setGrid(HRICS::Grid* G);
20 
24  void setCellPath(std::vector<API::ThreeDCell*> cellPath);
25 
30  virtual unsigned init();
31 
35  bool connectNodeToCompco(Node* node, Node* compNode);
36 
41  Node* nearestNeighbourInCell(Node* node, std::vector<Node*> neigbour);
42 
47 
48  private:
49  HRICS::Grid* _Grid;
50 
51 };
52 
53 #endif // HRICS_RRT_H
Classe représentant un Node d'un Graph.
Definition: node.hpp:39
Definition: HRICS_Grid.hpp:16
bool connectNodeToCompco(Node *node, Node *compNode)
Intents to connect a node to the compco.
Definition: HRICS_rrt.cpp:74
virtual unsigned init()
Initialzation of the plannificator.
Definition: HRICS_rrt.cpp:31
Definition: graph.hpp:28
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
Node * nearestNeighbourInCell(Node *node, std::vector< Node * > neigbour)
Finds the nearest neighbour in the cell.
Definition: HRICS_rrt.cpp:106
void setCellPath(std::vector< API::ThreeDCell * > cellPath)
Sets the cell path.
Definition: HRICS_rrt.cpp:62
Definition: ThreeDCell.hpp:25
API::ThreeDCell * getCellFromNode(Node *node)
Gets Cell in grid from a given node.
Definition: HRICS_rrt.cpp:140
Special RRT implentation for the HRICS.
Definition: HRICS_rrt.hpp:11
void setGrid(HRICS::Grid *G)
Sets the grid pointer.
Definition: HRICS_rrt.cpp:52
The Rapidly-exploring Random Tree (RRT) algorithm.
Definition: RRT.hpp:81
HRICS_RRT(Robot *R, Graph *G)
Basic constructor.
Definition: HRICS_rrt.cpp:21