39 #include <ompl/multilevel/datastructures/metrics/BundleSpaceMetric.h>
41 ompl::multilevel::BundleSpaceMetric::BundleSpaceMetric(BundleSpaceGraph *bundleSpaceGraph)
42 : bundleSpaceGraph_(bundleSpaceGraph)
44 if (bundleSpaceGraph_->getBaseDimension() > 0)
46 xBaseStartTmp_ = bundleSpaceGraph_->getBase()->allocState();
47 xBaseDestTmp_ = bundleSpaceGraph_->getBase()->allocState();
50 ompl::multilevel::BundleSpaceMetric::~BundleSpaceMetric()
52 if (bundleSpaceGraph_->getBaseDimension() > 0)
54 bundleSpaceGraph_->getBase()->freeState(xBaseStartTmp_);
55 bundleSpaceGraph_->getBase()->freeState(xBaseDestTmp_);
59 void ompl::multilevel::BundleSpaceMetric::clear()
66 interpolateBundle(q_from, q_to, 1.0, q_interp);
71 interpolateBundle(q_from, q_to, q_to);