RejectionInfSampler.cpp
45 RejectionInfSampler::RejectionInfSampler(const ProblemDefinitionPtr &probDefn, unsigned int maxNumberCalls)
54 OMPL_WARN("RejectionInfSampler: The optimization objective does not have a cost-to-go heuristic "
70 bool RejectionInfSampler::sampleUniform(State *statePtr, const Cost &minCost, const Cost &maxCost)
112 double RejectionInfSampler::getInformedMeasure(const Cost & /*minCost*/, const Cost & /*maxCost*/) const
117 bool RejectionInfSampler::sampleUniform(State *statePtr, const Cost &maxCost, unsigned int *iterPtr)
123 // Make numIters_ attempts at finding a sample whose heuristic estimate of solution cost through the sample
134 }
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:111
bool sampleUniform(State *statePtr, const Cost &maxCost) override
Sample uniformly in the subset of the state space whose heuristic solution estimates are less than th...
Definition: RejectionInfSampler.cpp:124
A shared pointer wrapper for ompl::base::ProblemDefinition.
OptimizationObjectivePtr opt_
A copy of the optimization objective.
Definition: InformedStateSampler.h:179
RejectionInfSampler(const ProblemDefinitionPtr &probDefn, unsigned int maxNumberCalls)
Construct a rejection sampler that only generates states with a heuristic solution estimate that is l...
Definition: RejectionInfSampler.cpp:109
unsigned int numIters_
The number of iterations I'm allowed to attempt.
Definition: InformedStateSampler.h:183
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:141
double getInformedMeasure(const Cost &) const override
The measure of the subset of the state space defined by the current solution cost that is being searc...
Definition: RejectionInfSampler.cpp:171
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65
bool hasInformedMeasure() const override
Whether the sampler can provide a measure of the informed subset.
Definition: RejectionInfSampler.cpp:166