RandomGeometricGraph.h
83 void updateStartAndGoalStates(const ompl::base::PlannerTerminationCondition &terminationCondition,
189 std::shared_ptr<State> getNewSample(const ompl::base::PlannerTerminationCondition& terminationCondition);
Helper class to extract valid start & goal states. Usually used internally by planners.
Definition: Planner.h:141
bool hasStartState() const
Returns whether a start state is available.
Definition: RandomGeometricGraph.cpp:493
void enableMultiquery(bool multiquery)
Enable multiquery usage of the graph.
Definition: RandomGeometricGraph.cpp:741
void setMaxNumberOfGoals(unsigned int maxNumberOfGoals)
Sets the maximum number of goals EIT* will sample from sampleable goal regions.
Definition: RandomGeometricGraph.cpp:761
void setUseKNearest(bool useKNearest)
Set whether to use a k-nearest connection model. If false, it uses an r-disc model.
Definition: RandomGeometricGraph.cpp:751
void updateStartAndGoalStates(const ompl::base::PlannerTerminationCondition &terminationCondition, ompl::base::PlannerInputStates *inputStates)
Adds new starts and goals to the graph if available and creates a new informed sampler if necessary.
Definition: RandomGeometricGraph.cpp:291
unsigned int getMaxNumberOfGoals() const
Returns the maximum number of goals EIT* will sample from sampleable goal regions.
Definition: RandomGeometricGraph.cpp:766
RandomGeometricGraph(const std::shared_ptr< ompl::base::SpaceInformation > &spaceInfo, const ompl::base::Cost &solutionCost)
Constructs a random geometric graph with the given space information and reference to the current sol...
Definition: RandomGeometricGraph.cpp:150
bool isMultiqueryEnabled() const
Returns Whether multiquery usage of the graph is enabled.
Definition: RandomGeometricGraph.cpp:746
bool getUseKNearest() const
Returns whether the graph uses a k-nearest connection model. If false, it uses an r-disc model.
Definition: RandomGeometricGraph.cpp:756
unsigned int inadmissibleEffortToCome(const std::shared_ptr< State > &state) const
Returns the inadmissible effort to come.
Definition: RandomGeometricGraph.cpp:1006
bool isGoal(const std::shared_ptr< State > &state) const
Returns whether the given state is a goal state.
Definition: RandomGeometricGraph.cpp:509
unsigned int getNumberOfValidSamples() const
Returns the number of valid samples.
Definition: RandomGeometricGraph.cpp:483
void setRadiusFactor(double factor)
Sets the radius factor (eta in the paper).
Definition: RandomGeometricGraph.cpp:448
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:111
bool isStart(const std::shared_ptr< State > &state) const
Returns whether the given state is a start state.
Definition: RandomGeometricGraph.cpp:503
std::size_t getTag() const
Returns the tag of the current RGG.
Definition: RandomGeometricGraph.cpp:544
unsigned int getEffortThreshold() const
Gets the effort threshold.
Definition: RandomGeometricGraph.cpp:463
unsigned int getNumberOfSampledStates() const
Returns the number of sampled states.
Definition: RandomGeometricGraph.cpp:478
bool addStates(std::size_t numStates, const ompl::base::PlannerTerminationCondition &terminationCondition)
Samples random states and adds them to the graph.
Definition: RandomGeometricGraph.cpp:646
const std::vector< std::shared_ptr< State > > & getStartStates() const
Returns the start states.
Definition: RandomGeometricGraph.cpp:468
const std::vector< std::shared_ptr< State > > & getGoalStates() const
Returns the goal states.
Definition: RandomGeometricGraph.cpp:473
Encapsulate a termination condition for a motion planner. Planners will call operator() to decide whe...
Definition: PlannerTerminationCondition.h:127
void setup(const std::shared_ptr< ompl::base::ProblemDefinition > &problem, ompl::base::PlannerInputStates *inputStates)
Setup the graph with the given problem definition and planner input states.
Definition: RandomGeometricGraph.cpp:168
std::shared_ptr< State > registerStartState(const ompl::base::State *start)
Sets the start state.
Definition: RandomGeometricGraph.cpp:549
void prune()
Prunes the graph of states that can not improve the current solution.
Definition: RandomGeometricGraph.cpp:877
void clearQuery()
Clears all query-specific structures, such as start and goal states.
Definition: RandomGeometricGraph.cpp:261
ompl::base::Cost minPossibleCost() const
Returns the minimum possible cost for the current problem, using admissible cost estimates to calcula...
Definition: RandomGeometricGraph.cpp:443
void clear()
Clears all internal planner structures but retains settings. Subsequent calls to solve() will start f...
Definition: RandomGeometricGraph.cpp:201
bool hasGoalState() const
Returns whether a goal state is available.
Definition: RandomGeometricGraph.cpp:498
unsigned int getNumberOfNearestNeighborCalls() const
Returns the number of nearest neighbor calls.
Definition: RandomGeometricGraph.cpp:488
void setEffortThreshold(const unsigned int threshold)
Sets the effort threshold.
Definition: RandomGeometricGraph.cpp:458
std::vector< std::weak_ptr< State > > getNeighbors(const std::shared_ptr< State > &state) const
Returns the neighbors of a state.
Definition: RandomGeometricGraph.cpp:772
std::shared_ptr< State > registerGoalState(const ompl::base::State *goal)
Sets the goal state.
Definition: RandomGeometricGraph.cpp:569
void registerWhitelistedState(const std::shared_ptr< State > &state) const
Registers a whitelisted state.
Definition: RandomGeometricGraph.cpp:588
std::vector< std::shared_ptr< State > > getStates() const
Returns all sampled states (that have not been pruned).
Definition: RandomGeometricGraph.cpp:515
void registerInvalidEdge(const Edge &edge) const
Registers an invalid edge.
Definition: RandomGeometricGraph.cpp:522
~RandomGeometricGraph()=default
Destricts this random geometric graph.
bool isPruningEnabled() const
Returns Whether pruning is enabled.
Definition: RandomGeometricGraph.cpp:736
double getRadiusFactor() const
Returns the radius factor (eta in the paper).
Definition: RandomGeometricGraph.cpp:453