unsigned int ss = this->steered_.size();
this->join_steered(&this->nodes_.back());
RRTNode* just_added = &this->nodes_.back();
+ bool gf = false;
while (ss > 0 && just_added->p() != nullptr) {
//if (!this->goal_drivable_from(*just_added)) {
// ss--;
|| ncc < this->goal_.cc()) {
this->goal_.p(this->nodes_.back());
this->goal_.c(nc);
- this->compute_path();
+ gf = true;
}
}
ss--;
*just_added));
}
#endif
+ if (gf) {
+ this->compute_path();
+ }
////if (!this->goal_drivable_from(this->nodes_.back())) {
//// return this->should_continue();
////}