]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/commitdiff
Add setters for bc, imax
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Tue, 31 May 2022 14:20:17 +0000 (16:20 +0200)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Tue, 31 May 2022 14:29:13 +0000 (16:29 +0200)
incl/rrts.hh
src/rrts.cc

index 74077df208fb3c0030424e13a8986988c1954a26..d4f4719aca9026f3eb847a121348d44df927040c 100644 (file)
@@ -108,6 +108,12 @@ protected:
 public:
        RRTS();
 
+       /*! Set internal bicycle car. */
+       BicycleCar &bc();
+
+       /*! Set maximum number of iterations before reset. */
+       void set_imax_reset(unsigned int i);
+
        /*! Get iterations counter. */
        unsigned int icnt() const;
 
index e08fed97acef4c9c42a4a861b785fc6a5ffd5a25..2212e597b2eca7e6d32adeb5a8f6f8b175a39443 100644 (file)
@@ -266,6 +266,18 @@ RRTS::RRTS() : gen_(std::random_device{}()), goal_(0.0, 0.0, 0.0, 0.0)
        this->store(RRTNode()); // root
 }
 
+BicycleCar &
+RRTS::bc()
+{
+       return this->bc_;
+}
+
+void
+RRTS::set_imax_reset(unsigned int i)
+{
+       this->_imax = i;
+}
+
 unsigned int
 RRTS::icnt() const
 {