This will be used when reset of planner is needed.
- Compound extensions.
- JSON output.
- Should continue method.
+- Deinit method -- get ready for planner reset.
[cute c2]: https://github.com/RandyGaul/cute_headers/blob/master/cute_c2.h
void RRTExt2::deinit()
{
+ this->c2_obstacles().clear();
+ RRTS::deinit();
}
std::tuple<bool, unsigned int, unsigned int>
void RRTS::deinit()
{
+ this->nodes().clear();
+ this->samples().clear();
+ this->steered().clear();
+ this->store_node(RRTNode()); // root
+ this->icnt_ = 0;
+ this->scnt_ = 0;
+ this->pcnt_ = 0;
+ this->gf_ = false;
}
std::vector<RRTNode *> RRTS::path()