BicycleCar bc_;
RRTGoal goal_;
unsigned int icnt_ = 0;
+ unsigned int _imax = 1000;
Ter ter_;
std::default_random_engine gen_;
std::vector<RRTNode> nodes_;
public:
RRTS();
+ /*! Set internal bicycle car. */
+ BicycleCar &bc();
+
+ /*! Set maximum number of iterations before reset. */
+ void set_imax_reset(unsigned int i);
+
+ /*! Set goal. */
+ void set_goal(double x, double y, double b, double e);
+
+ /*! Set start. */
+ void set_start(double x, double y, double h);
+
+ /*! Get path. */
+ std::vector<Pose> get_path() const;
+
+ /*! Get path cost. */
+ double get_path_cost() const;
+
/*! Get iterations counter. */
unsigned int icnt() const;
/*! Return elapsed time. */
double scnt() const;
+ double eta() const;
+ void eta(double e);
+
/*! Generate JSON output. */
Json::Value json() const;