]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/blobdiff - src/rrts.cc
Add start and goal setters
[hubacji1/rrts.git] / src / rrts.cc
index 8e175a27ff787335c10337175a3c24c498c6bd7f..46f289eb2b08f68ae69893e70f7a68895b01409f 100644 (file)
@@ -278,6 +278,20 @@ RRTS::set_imax_reset(unsigned int i)
        this->_imax = i;
 }
 
+void
+RRTS::set_goal(double x, double y, double b, double e)
+{
+       this->goal_ = RRTGoal(x, y, b, e);
+}
+
+void
+RRTS::set_start(double x, double y, double h)
+{
+       this->nodes_.front().x(x);
+       this->nodes_.front().y(y);
+       this->nodes_.front().h(h);
+}
+
 unsigned int
 RRTS::icnt() const
 {