]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Finish only after 5 secs, do not break
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 3 Jan 2020 14:01:55 +0000 (15:01 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 3 Jan 2020 14:13:28 +0000 (15:13 +0100)
src/rrts.cc

index ecb66490d8e2b3a704eb75df6e54af527406b1b2..1facda2ff1caea40cc4580ac1a35849878179c15 100644 (file)
@@ -45,8 +45,8 @@ bool RRTS::should_stop()
 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->icnt_ > 999) return true;
+        if (this->scnt_ > 5) return true;
         if (this->gf()) return true;
         // but continue by default
         return false;
@@ -55,7 +55,7 @@ bool RRTS::should_finish()
 bool RRTS::should_break()
 {
         // decide break conditions (maybe comment some lines)
-        if (this->scnt_ - this->pcnt_ > 2) return true;
+        //if (this->scnt_ - this->pcnt_ > 2) return true;
         // but continue by default
         return false;
 }