for (auto n: this->nodes_)
if (n != this->root_)
delete n;
+ for (auto n: this->dnodes_)
+ if (n != this->root_ && n != this->goal_)
+ delete n;
for (auto s: this->samples_)
if (s != this->goal_)
delete s;
return this->nodes_;
}
+std::vector<RRTNode *> &RRTBase::dnodes()
+{
+ return this->dnodes_;
+}
+
std::vector<RRTNode *> &RRTBase::samples()
{
return this->samples_;
RRTNode *goal_ = nullptr;
std::vector<RRTNode *> nodes_;
+ std::vector<RRTNode *> dnodes_;
std::vector<RRTNode *> samples_;
std::vector<CircleObstacle> *cobstacles_;
std::vector<SegmentObstacle> *sobstacles_;
RRTNode *root();
RRTNode *goal();
std::vector<RRTNode *> &nodes();
+ std::vector<RRTNode *> &dnodes();
std::vector<RRTNode *> &samples();
std::vector<RRTNode *> iy_[IYSIZE];
std::vector<CircleObstacle> *cos();