1 #ifndef REAL_TIME_RRT_PLANNER_H 2 #define REAL_TIME_RRT_PLANNER_H 4 #include "RealTimePlanner.h" 5 #include <KrisLibrary/planning/MotionPlanner.h> 16 virtual void SetGoal(shared_ptr<PlannerObjectiveBase> newgoal);
17 Vector& MakeState(
const Config& q,
const Config& dq);
18 Vector& MakeState(
const Config& q);
19 RRTPlanner::Node* TryIKExtend(RRTPlanner::Node* node,
bool search=
true);
25 bool CheckPath(RRTPlanner::Node* n,vector<RRTPlanner::Node*>& ndelete,Timer& timer,Real cutoff);
27 Real EvaluateNodePathCost(RRTPlanner::Node* n);
30 shared_ptr<RampCSpaceAdaptor> stateSpace;
33 Real ikSolveProbability;
37 shared_ptr<RRTPlanner> rrt;
38 vector<RRTPlanner::Node*> existingNodes;
56 Real sumPathCost,terminalCost,totalCost;
61 shared_ptr<RampEdgeChecker> e;
63 typedef Graph::TreeNode<NodeData,EdgeData> Node;
67 virtual void SetGoal(shared_ptr<PlannerObjectiveBase> newgoal);
68 Node* AddChild(Node* node,
const Config& q);
71 Node* AddChild(Node* node,shared_ptr<RampEdgeChecker>& e);
75 Node* TryIKExtend(Node* node,
bool search=
true);
77 Node* Closest(
const Config& q,Real costBranch=Inf);
79 Node* ExtendToward(
const Config& q,Real costBranch=Inf);
81 Node* SplitEdge(Node* p,Node* n,Real u);
86 bool CheckPath(Node* n,Timer& timer,Real cutoff,Node** split=NULL);
90 unique_ptr<RampCSpaceAdaptor> stateSpace;
93 Real ikSolveProbability;
97 unique_ptr<Node> root;
Dynamic RRT planner – not recently tested.
Definition: RealTimeRRTPlanner.h:11
A base class for a motion planner that generates dynamic paths. The output should always respect join...
Definition: RealTimePlanner.h:26
Solves for optimal trajectores for a velocity-bounded ND system.
Definition: ParabolicRamp.h:110
A bounded-velocity, bounded-acceleration trajectory consisting of parabolic ramps.
Definition: DynamicPath.h:114
virtual int PlanFrom(ParabolicRamp::DynamicPath &path, Real cutoff)
Definition: RealTimeRRTPlanner.h:58
The preferred dynamic sampling-based planner for realtime planning. Will alternate sampling-based pla...
Definition: RealTimeRRTPlanner.h:46
Definition: RealTimeRRTPlanner.h:49
Definition: ContactDistance.h:6