InformedStateSampler.h
158 void commonConstructor(const GetCurrentCostFunc &costFunc, const InformedSamplerPtr &infSampler);
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:48
An abstract class for the concept of using information about the state space and the current solution...
Definition: InformedStateSampler.h:61
virtual double getInformedMeasure(const Cost ¤tCost) const =0
The measure of the subset of the state space defined by the current solution cost that is being searc...
OptimizationObjectivePtr opt_
A copy of the optimization objective.
Definition: InformedStateSampler.h:115
unsigned int getMaxNumberOfIters() const
Definition: InformedStateSampler.cpp:115
virtual bool sampleUniform(State *statePtr, const Cost &maxCost)=0
Sample uniformly in the subset of the state space whose heuristic solution estimates are less than th...
virtual Cost heuristicSolnCost(const State *statePtr) const
A helper function to calculate the heuristic estimate of the solution cost for a given state using th...
Definition: InformedStateSampler.cpp:77
virtual bool sampleUniform(State *statePtr, const Cost &minCost, const Cost &maxCost)=0
Sample uniformly in the subset of the state space whose heuristic solution estimates are between the ...
ProblemDefinitionPtr probDefn_
A copy of the problem definition.
Definition: InformedStateSampler.h:113
unsigned int numIters_
The number of iterations I'm allowed to attempt.
Definition: InformedStateSampler.h:119
virtual bool hasInformedMeasure() const =0
Whether the sampler can provide a measure of the informed subset.
ProblemDefinitionPtr getProblemDefn() const
Definition: InformedStateSampler.cpp:110
A wrapper class that allows an InformedSampler to be used as a StateSampler.
Definition: InformedStateSampler.h:124
void sampleUniform(State *statePtr) override
Sample uniformly in the subset of the state space whose heuristic solution estimates are less than th...
Definition: InformedStateSampler.cpp:154
std::function< Cost()> GetCurrentCostFunc
The definition of a function pointer for querying the current solution cost.
Definition: InformedStateSampler.h:127
void sampleUniformNear(State *statePtr, const State *near, double distance) override
By default sampleUniformNear throws. This can be overloaded by a specific informed sampler if desired...
Definition: InformedStateSampler.cpp:171
InformedStateSampler(const ProblemDefinitionPtr &probDefn, unsigned int maxNumberCalls, const GetCurrentCostFunc &costFunc)
Construct a sampler that only generates states with a heuristic solution estimate that is less than t...
Definition: InformedStateSampler.cpp:123
void sampleGaussian(State *statePtr, const State *mean, double stdDev) override
By default sampleGaussian throws. This can be overloaded by a specific informed sampler if desired.
Definition: InformedStateSampler.cpp:178
A shared pointer wrapper for ompl::base::OptimizationObjective.
A shared pointer wrapper for ompl::base::ProblemDefinition.
A shared pointer wrapper for ompl::base::StateSampler.
A shared pointer wrapper for ompl::base::StateSpace.
Main namespace. Contains everything in this library.
Definition: ConstrainedSpaceInformation.h:53