double eta_ = 0.5;
double time_ = 0.0;
double last_goal_cc_ = 0.0;
+ void recompute_path_cc();
double min_gamma_eta() const;
bool should_continue() const;
void join_steered(RRTNode* f);
return this == &n;
}
+void
+RRTS::recompute_path_cc()
+{
+ this->path_.clear();
+ RRTNode* g = &this->goal_;
+ while (g != nullptr) {
+ this->path_.push_back(g);
+ g = g->p();
+ }
+ std::reverse(this->path_.begin(), this->path_.end());
+ for (unsigned int i = 1; i < this->path_.size(); i++) {
+ this->path_[i]->c(this->cost_build(*this->path_[i - 1],
+ *this->path_[i]));
+ }
+}
+
double
RRTS::min_gamma_eta() const
{