double time_ = 0.0;
double last_goal_cc_ = 0.0;
std::vector<RRTNode> last_path_;
+ void recompute_cc(RRTNode* g);
void recompute_path_cc();
double min_gamma_eta() const;
bool should_continue() const;
this->join_steered(&f);
t.p(this->nodes_.back());
t.c(this->cost_build(this->nodes_.back(), t));
- this->recompute_path_cc();
+ this->recompute_cc(&t);
if (!this->dn_[i].vi()) {
pq.push(this->dn_[i]);
}
}
}
}
+ this->recompute_path_cc();
}
void
}
void
-RRTS::recompute_path_cc()
+RRTS::recompute_cc(RRTNode* g)
{
this->path_.clear();
- RRTNode* g = &this->goal_;
while (g != nullptr) {
this->path_.push_back(g);
g = g->p();
}
}
+void
+RRTS::recompute_path_cc()
+{
+ this->recompute_cc(&this->goal_);
+}
+
double
RRTS::min_gamma_eta() const
{