Class RandomGeometricGraph
Defined in File RandomGeometricGraph.h
Class Documentation
-
class RandomGeometricGraph
Public Functions
Constructs a random geometric graph with the given space information and reference to the current solution cost.
-
~RandomGeometricGraph() = default
Destricts this random geometric graph.
Setup the graph with the given problem definition and planner input states.
-
void clear()
Clears all internal planner structures but retains settings. Subsequent calls to solve() will start from scratch.
-
void clearQuery()
Clears all query-specific structures, such as start and goal states.
-
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.
-
ompl::base::Cost minPossibleCost() const
Returns the minimum possible cost for the current problem, using admissible cost estimates to calculate it.
-
void setRadiusFactor(double factor)
Sets the radius factor (eta in the paper).
-
double getRadiusFactor() const
Returns the radius factor (eta in the paper).
-
void setEffortThreshold(const unsigned int threshold)
Sets the effort threshold.
-
unsigned int getEffortThreshold() const
Gets the effort threshold.
-
void enablePruning(bool prune)
Enable pruning of the graph.
-
bool isPruningEnabled() const
Returns Whether pruning is enabled.
-
void enableMultiquery(bool multiquery)
Enable multiquery usage of the graph.
-
bool isMultiqueryEnabled() const
Returns Whether multiquery usage of the graph is enabled.
-
void setUseKNearest(bool useKNearest)
Set whether to use a k-nearest connection model. If false, it uses an r-disc model.
-
bool getUseKNearest() const
Returns whether the graph uses a k-nearest connection model. If false, it uses an r-disc model.
-
void setMaxNumberOfGoals(unsigned int maxNumberOfGoals)
Sets the maximum number of goals EIT* will sample from sampleable goal regions.
-
unsigned int getMaxNumberOfGoals() const
Returns the maximum number of goals EIT* will sample from sampleable goal regions.
-
bool addStates(std::size_t numStates, const ompl::base::PlannerTerminationCondition &terminationCondition)
Samples random states and adds them to the graph.
-
void prune()
Prunes the graph of states that can not improve the current solution.
Returns the neighbors of a state.
-
unsigned int getNumberOfSampledStates() const
Returns the number of sampled states.
-
unsigned int getNumberOfValidSamples() const
Returns the number of valid samples.
-
unsigned int getNumberOfNearestNeighborCalls() const
Returns the number of nearest neighbor calls.
Registers a whitelisted state.
-
bool hasStartState() const
Returns whether a start state is available.
-
bool hasGoalState() const
Returns whether a goal state is available.
Returns whether the given state is a start state.
Returns whether the given state is a goal state.
-
std::vector<std::shared_ptr<State>> getStates() const
Returns all sampled states (that have not been pruned).
-
std::size_t getTag() const
Returns the tag of the current RGG.
Returns the inadmissible effort to come.