this->nodes_.reserve(20000);
this->nodes_.push_back(this->root_);
this->add_iy(this->root_);
+ this->add_ixy(this->root_);
}
RRTBase::RRTBase(RRTNode *init, RRTNode *goal):
this->nodes_.reserve(20000);
this->nodes_.push_back(init);
this->add_iy(init);
+ this->add_ixy(init);
}
// getter
} else {
this->nodes().push_back(ns);
this->add_iy(ns);
+ this->add_ixy(ns);
pn->add_child(ns, this->cost(pn, ns));
pn = ns;
}
delete ns;
en_add = false;
} else {
+ this->add_ixy(ns);
// rewire
this->rewire(nvs, ns);
pn = ns;
delete ns;
en_add = false;
} else {
+ this->add_ixy(ns);
// rewire
this->rewire(nvs, ns);
pn = ns;
delete ns;
en_add = false;
} else {
+ this->add_ixy(ns);
this->ocost(ns);
pn = ns;
if (this->goal_found(pn, CO)) {
delete ns;
en_add = false;
} else {
+ this->add_ixy(ns);
this->ocost(ns);
pn = ns;
if (this->goal_found(pn, CO)) {