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