libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
RRT-Star.hpp
1 /*
2  * RRT-Star.hpp
3  *
4  * Created on: Nov 04, 2013
5  * Author: ddevaurs
6  */
7 
8 #ifndef _RRT_STAR_HPP_
9 #define _RRT_STAR_HPP_
10 
11 #include "planner/Diffusion/RRT.hpp"
12 
13 
18 {
19 public:
21  StarExpansion(Graph * graph);
22 
24  virtual ~StarExpansion() {};
25 
26 private:
31  bool isValidConnection(localPathPtr_t path);
32 
38  Node * addNode(localPathPtr_t path, Node * fromNode, Node * directionNode);
39 
40 private:
42  unsigned dimension;
43 
45  double gamma;
46 
48  double gamma_star;
49 };
50 
51 
55 class StarRRT: public RRT
56 {
57 public:
59  StarRRT(Robot * robot, Graph * graph) : RRT(robot, graph) {
60  std::cout << "Construct the RRT*" << std::endl;
61  }
62 
64  virtual ~StarRRT() {};
65 
70  unsigned init() {
72  return TreePlanner::init();
73  }
74 
81  }
82 };
83 
84 #endif
virtual ~StarRRT()
Destructor.
Definition: RRT-Star.hpp:64
Classe représentant un Node d'un Graph.
Definition: node.hpp:39
Graph * _Graph
Le Graph qui va être utilisé
Definition: planner.hpp:175
unsigned init()
Initialize RRT*.
Definition: RRT-Star.hpp:70
Expansion procedure of the RRT* algorithm.
Definition: RRT-Star.hpp:17
RRTExpansion * expansion
access point to the expansion procedure of RRT
Definition: RRT.hpp:138
The RRT* algorithm.
Definition: RRT-Star.hpp:55
Definition: graph.hpp:28
virtual ~StarExpansion()
Destructor.
Definition: RRT-Star.hpp:24
Expansion procedure of the Rapidly-exploring Random Tree (RRT) algorithm.
Definition: RRT.hpp:21
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
StarExpansion(Graph *graph)
Constructor.
Definition: RRT-Star.cpp:22
virtual unsigned init()
Initializes Planner.
Definition: TreePlanner.cpp:70
bool checkStopConditions()
Check the stopping conditions of RRT*.
Definition: RRT-Star.hpp:79
virtual bool checkStopConditions()
Check the stopping conditions of the Tree Planner.
Definition: TreePlanner.cpp:158
StarRRT(Robot *robot, Graph *graph)
Constructor.
Definition: RRT-Star.hpp:59
The Rapidly-exploring Random Tree (RRT) algorithm.
Definition: RRT.hpp:81