Loading...
Searching...
No Matches
RandomGeometricGraph.h
83 void updateStartAndGoalStates(const ompl::base::PlannerTerminationCondition &terminationCondition,
Geometric Near-neighbor Access Tree (GNAT), a data structure for nearest neighbor search.
Definition NearestNeighborsGNATNoThreadSafety.h:72
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition Cost.h:48
Helper class to extract valid start & goal states. Usually used internally by planners.
Definition Planner.h:78
Encapsulate a termination condition for a motion planner. Planners will call operator() to decide whe...
Definition PlannerTerminationCondition.h:64
void setEffortThreshold(const unsigned int threshold)
Sets the effort threshold.
Definition RandomGeometricGraph.cpp:360
std::vector< std::shared_ptr< State > > getStates() const
Returns all sampled states (that have not been pruned).
Definition RandomGeometricGraph.cpp:417
std::size_t getTag() const
Returns the tag of the current RGG.
Definition RandomGeometricGraph.cpp:442
bool getUseKNearest() const
Returns whether the graph uses a k-nearest connection model. If false, it uses an r-disc model.
Definition RandomGeometricGraph.cpp:655
void registerWhitelistedState(const std::shared_ptr< State > &state) const
Registers a whitelisted state.
Definition RandomGeometricGraph.cpp:486
unsigned int getEffortThreshold() const
Gets the effort threshold.
Definition RandomGeometricGraph.cpp:365
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:54
const std::vector< std::shared_ptr< State > > & getGoalStates() const
Returns the goal states.
Definition RandomGeometricGraph.cpp:375
std::vector< std::weak_ptr< State > > getNeighbors(const std::shared_ptr< State > &state) const
Returns the neighbors of a state.
Definition RandomGeometricGraph.cpp:671
void prune()
Prunes the graph of states that can not improve the current solution.
Definition RandomGeometricGraph.cpp:776
void setUseKNearest(bool useKNearest)
Set whether to use a k-nearest connection model. If false, it uses an r-disc model.
Definition RandomGeometricGraph.cpp:650
void clearQuery()
Clears all query-specific structures, such as start and goal states.
Definition RandomGeometricGraph.cpp:164
bool hasStartState() const
Returns whether a start state is available.
Definition RandomGeometricGraph.cpp:395
unsigned int getMaxNumberOfGoals() const
Returns the maximum number of goals EIT* will sample from sampleable goal regions.
Definition RandomGeometricGraph.cpp:665
bool hasGoalState() const
Returns whether a goal state is available.
Definition RandomGeometricGraph.cpp:400
bool isStart(const std::shared_ptr< State > &state) const
Returns whether the given state is a start state.
Definition RandomGeometricGraph.cpp:405
double getRadiusFactor() const
Returns the radius factor (eta in the paper).
Definition RandomGeometricGraph.cpp:355
unsigned int getNumberOfNearestNeighborCalls() const
Returns the number of nearest neighbor calls.
Definition RandomGeometricGraph.cpp:390
bool isGoal(const std::shared_ptr< State > &state) const
Returns whether the given state is a goal state.
Definition RandomGeometricGraph.cpp:411
const std::vector< std::shared_ptr< State > > & getStartStates() const
Returns the start states.
Definition RandomGeometricGraph.cpp:370
unsigned int getNumberOfSampledStates() const
Returns the number of sampled states.
Definition RandomGeometricGraph.cpp:380
void setMaxNumberOfGoals(unsigned int maxNumberOfGoals)
Sets the maximum number of goals EIT* will sample from sampleable goal regions.
Definition RandomGeometricGraph.cpp:660
std::shared_ptr< State > registerStartState(const ompl::base::State *start)
Sets the start state.
Definition RandomGeometricGraph.cpp:447
bool addStates(std::size_t numStates, const ompl::base::PlannerTerminationCondition &terminationCondition)
Samples random states and adds them to the graph.
Definition RandomGeometricGraph.cpp:545
unsigned int getNumberOfValidSamples() const
Returns the number of valid samples.
Definition RandomGeometricGraph.cpp:385
void clear()
Clears all internal planner structures but retains settings. Subsequent calls to solve() will start f...
Definition RandomGeometricGraph.cpp:104
void registerInvalidEdge(const Edge &edge) const
Registers an invalid edge.
Definition RandomGeometricGraph.cpp:424
bool isMultiqueryEnabled() const
Returns Whether multiquery usage of the graph is enabled.
Definition RandomGeometricGraph.cpp:645
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:194
void enableMultiquery(bool multiquery)
Enable multiquery usage of the graph.
Definition RandomGeometricGraph.cpp:640
ompl::base::Cost minPossibleCost() const
Returns the minimum possible cost for the current problem, using admissible cost estimates to calcula...
Definition RandomGeometricGraph.cpp:345
bool isPruningEnabled() const
Returns Whether pruning is enabled.
Definition RandomGeometricGraph.cpp:635
std::shared_ptr< State > registerGoalState(const ompl::base::State *goal)
Sets the goal state.
Definition RandomGeometricGraph.cpp:467
unsigned int inadmissibleEffortToCome(const std::shared_ptr< State > &state) const
Returns the inadmissible effort to come.
Definition RandomGeometricGraph.cpp:905
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:71
~RandomGeometricGraph()=default
Destricts this random geometric graph.
void setRadiusFactor(double factor)
Sets the radius factor (eta in the paper).
Definition RandomGeometricGraph.cpp:350
This namespace contains code that is specific to planning under geometric constraints.
Definition GeneticSearch.h:48
Main namespace. Contains everything in this library.
Definition MultiLevelPlanarManipulatorDemo.cpp:66