]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/blobdiff - api/rrts.h
Implement naive steer
[hubacji1/rrts.git] / api / rrts.h
index 910b3e41de87b06904aa8c5b95b886e69ff9f7c9..b18858643c9806b0ea71e35f1b2fcbd605aee6d2 100644 (file)
@@ -41,6 +41,7 @@ class RRTS {
                 std::vector<RRTNode> goals_;
                 std::vector<RRTNode> nodes_;
                 std::vector<RRTNode> samples_;
+                std::vector<RRTNode> steered_;
 
                 // RRT procedures
                 bool collide();
@@ -59,7 +60,7 @@ class RRTS {
         public:
                 /*! \brief Return path found by RRT*.
                 */
-                std::vector<std::reference_wrapper<RRTNode>> path();
+                std::vector<RRTNode *> path();
                 /*! \brief Run next RRT* iteration.
                 */
                 bool next();
@@ -68,6 +69,7 @@ class RRTS {
                 std::vector<RRTNode> &goals() { return this->goals_; }
                 std::vector<RRTNode> &nodes() { return this->nodes_; }
                 std::vector<RRTNode> &samples() { return this->samples_; }
+                std::vector<RRTNode> &steered() { return this->steered_; }
 
                 RRTS();
 };