\param goals The vector of goal nodes.
\param nodes The vector of all nodes in RRT data structure.
\param samples The vector of all samples of RRT algorithm.
+\param sample_dist_type Random distribution type for sampling function (0 -
+normal, 1 - uniform)
*/
class RRTS {
private:
double scnt_ = 0;
double pcnt_ = 0;
bool gf_ = false;
+ int sample_dist_type_ = 0;
std::vector<RRTNode> goals_;
std::vector<RRTNode> nodes_;
double scnt() const { return this->scnt_; }
bool gf() const { return this->gf_; }
void gf(bool f) { this->gf_ = f; }
+ int sample_dist_type() const { return this->sample_dist_type_;}
+ void sample_dist_type(int t) { this->sample_dist_type_ = t; }
std::vector<RRTNode> &goals() { return this->goals_; }
std::vector<RRTNode> &nodes() { return this->nodes_; }
std::vector<Obstacle> &obstacles() { return this->obstacles_; }