37 #include <ompl/base/goals/GoalSampleableRegion.h>
54 void sampleGoal(ompl::base::State* st)
const override;
69 double distanceGoal(
const ompl::base::State* st)
const override;
78 void print(std::ostream& out = std::cout)
const override;
81 std::vector<ompl::base::GoalPtr>
goals_;
void startSampling()
If there are any member lazy samplers, start them.
bool couldSample() const override
Query if sampler could find a sample in the future.
~GoalSampleableRegionMux() override
double distanceGoal(const ompl::base::State *st) const override
Find the distance of this state from the goal.
virtual bool canSample() const
Query if sampler can find any sample.
unsigned int maxSampleCount() const override
Get the max sample count.
GoalSampleableRegionMux(const std::vector< ompl::base::GoalPtr > &goals)
Constructor.
void print(std::ostream &out=std::cout) const override
Pretty print goal information.
void sampleGoal(ompl::base::State *st) const override
Sample a goal.
bool isSatisfied(const ompl::base::State *st, double *distance) const override
Is the goal satisfied for this state (given a distance)
std::vector< ompl::base::GoalPtr > goals_
void stopSampling()
If there are any member lazy samplers, stop them.
The MoveIt interface to OMPL.
double distance(const urdf::Pose &transform)