/*! \brief Run next RRT* iteration.
*/
bool next();
+ /*! \brief Set sampling info.
+
+ There is normal distribution sampling for `x`, `y`, and
+ `h` parameters of RRT node.
+
+ \param mx Mean x value.
+ \param dx Standard deviation of x.
+ \param my Mean y value.
+ \param dy Standard deviation of y.
+ \param mh Mean h value.
+ \param dh Standard deviation of h.
+ */
+ void set_sample(
+ double mx, double dx,
+ double my, double dy,
+ double mh, double dh
+ );
// getters, setters
std::vector<RRTNode> &goals() { return this->goals_; }
return next;
}
+void RRTS::set_sample(
+ double mx, double dx,
+ double my, double dy,
+ double mh, double dh
+)
+{
+ this->ndx_ = std::normal_distribution<double>(mx, dx);
+ this->ndy_ = std::normal_distribution<double>(my, dy);
+ this->ndh_ = std::normal_distribution<double>(mh, dh);
+}
+
RRTS::RRTS()
: gen_(std::random_device{}())
{