]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/blobdiff - src/rrtext17.cc
Update readme
[hubacji1/rrts.git] / src / rrtext17.cc
index d791b6d6f2aa5104181587ef948ca523ae8c72ce..9512f2084be60616f9f92f8f232cb2fbe9783650 100644 (file)
@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2021 Jiri Vlasak <jiri.vlasak.2@cvut.cz>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
 #include "rrtext.hh"
 
 namespace rrts {
@@ -5,7 +11,7 @@ namespace rrts {
 bool
 RRTExt17::should_finish() const
 {
-       return this->goal_.p() != nullptr || this->icnt_ > 1000;
+       return this->goal_.p() != nullptr || this->icnt_ > this->_imax;
 }
 
 } // namespace rrts