]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Finish after 2 seconds
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 9 Nov 2020 11:51:58 +0000 (12:51 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 9 Nov 2020 11:54:18 +0000 (12:54 +0100)
Do not finish when goal found, try to find better solution yet.

src/rrts.cc

index 5d7e76766b1e8dd7623c1fd837a8e959b2953bc2..413ed185da455a9c26f8c996fbf894e9db016234 100644 (file)
@@ -64,8 +64,8 @@ bool RRTS::should_finish()
 {
         // decide finish conditions (maybe comment some lines)
         //if (this->icnt_ > 999) return true;
-        if (this->scnt_ > 10) return true;
-        if (this->gf()) return true;
+        if (this->scnt_ > 2) return true;
+        //if (this->gf()) return true;
         // but continue by default
         return false;
 }