38 #include <ompl/multilevel/planners/qrrt/QRRTImpl.h>
39 #include <ompl/multilevel/datastructures/graphsampler/GraphSampler.h>
40 #include <ompl/tools/config/SelfConfig.h>
41 #include <boost/foreach.hpp>
43 #define foreach BOOST_FOREACH
45 ompl::multilevel::QRRTImpl::QRRTImpl(
const base::SpaceInformationPtr &si, BundleSpace *parent_) : BaseT(si, parent_)
48 setImportance(
"exponential");
49 setGraphSampler(
"randomvertex");
50 getGraphSampler()->disableSegmentBias();
53 ompl::multilevel::QRRTImpl::~QRRTImpl()
69 sampleBundleGoalBias(xRandom_->state);
75 Configuration *xNext = extendGraphTowards_Range(xNearest, xRandom_);
78 if (xNext && !hasSolution_)
83 bool satisfied = getGoalPtr()->isSatisfied(xNext->state, &dist);
84 if (dist < bestCost_.value())
90 goalConfigurations_.push_back(xNext);
96 bool satisfied = getGoalPtr()->isSatisfied(xNext->state);
99 goalConfigurations_.push_back(xNext);