From fd7c4a12dda5d10fab43a5022b837f0c93219be7 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Wed, 11 Jan 2023 16:09:45 +0100 Subject: [PATCH] When reset, reset bc, too --- src/rrts.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rrts.cc b/src/rrts.cc index 107594b..03787b1 100644 --- a/src/rrts.cc +++ b/src/rrts.cc @@ -458,6 +458,9 @@ RRTS::reset() this->nodes_.erase(this->nodes_.begin() + 1, this->nodes_.end()); this->nv_.clear(); this->nn_ = nullptr; + this->bc_.x(0); + this->bc_.y(0); + this->bc_.h(0); } } // namespace rrts -- 2.39.2