]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Estimate if should run path optimization
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Fri, 10 Sep 2021 10:42:39 +0000 (12:42 +0200)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Fri, 15 Oct 2021 08:16:07 +0000 (10:16 +0200)
src/rrtext13.cc

index 63c2b26aea251f4bd022ad1032748b6662a43b95..cbb1e96e229a84607412ca74d1fea600a69ac577 100644 (file)
@@ -215,8 +215,8 @@ RRTExt13::compute_path()
        if (this->goal_.cc() == 0.0 || this->path_.size() == 0) {
                return;
        }
-#if 0 // TODO 0.59 should work for sc4-1-0 only.
-       if (this->goal_.cc() * 0.59 > this->last_goal_cc_
+#if 1 // TODO 0.59 should work for sc4-1-0 only.
+       if (this->goal_.cc() * 0.8 > this->last_goal_cc_
                        && this->last_goal_cc_ != 0.0) {
                return;
        }