#include <queue>
#include "rrtext.h"
-#include <iostream>
+
+void RRTExt13::reset()
+{
+ RRTS::reset();
+ this->orig_path().clear();
+ this->first_optimized_path().clear();
+ this->orig_path_cost_ = 9999.9;
+ this->first_optimized_path_cost_ = 9999.9;
+}
+
void RRTExt13::first_path_optimization()
{
if (this->orig_path().size() == 0) {
jbc.y(op[j]->y());
jbc.h(op[j]->h());
if (!jbc.drivable(ibc)) {
- //std::cerr<<*op[i];
- //std::cerr<<" to ";
- //std::cerr<<*op[j];
- //std::cerr<<std::endl;
dn.push_back(DijkstraNode(*op[j-1]));
dn.back().cc = op[j-1]->cc;
dn.back().s = &dn.back();
jbc.y(op[j]->y());
jbc.h(op[j]->h());
if (!jbc.drivable(ibc)) {
- //std::cerr<<*op[i];
- //std::cerr<<" to ";
- //std::cerr<<*op[j];
- //std::cerr<<std::endl;
dn.push_back(DijkstraNode(*op[j-1]));
dn.back().cc = op[j-1]->cc;
dn.back().s = &dn.back();