delete this->goal_;
}
-RRTBase::RRTBase():
- root_(new RRTNode()),
- goal_(new RRTNode()),
- gen_(std::random_device{}())
+RRTBase::RRTBase()
+ : root_(new RRTNode())
+ , goal_(new RRTNode())
+ , gen_(std::random_device{}())
{
this->nodes_.reserve(NOFNODES);
this->nodes_.push_back(this->root_);
this->add_ixy(this->root_);
}
-RRTBase::RRTBase(RRTNode *init, RRTNode *goal):
- root_(init),
- goal_(goal),
- gen_(std::random_device{}())
+RRTBase::RRTBase(RRTNode *init, RRTNode *goal)
+ : root_(init)
+ , goal_(goal)
+ , gen_(std::random_device{}())
{
this->nodes_.reserve(NOFNODES);
this->nodes_.push_back(init);
srand(static_cast<unsigned>(time(0)));
}
-Karaman2011::Karaman2011(RRTNode *init, RRTNode *goal):
- RRTBase(init, goal)
+Karaman2011::Karaman2011(RRTNode *init, RRTNode *goal)
+ : RRTBase(init, goal)
{
srand(static_cast<unsigned>(time(0)));
}