// see https://courses.cs.washington.edu/courses/cse326/03su/homework/hw3/bfs.html
// RRTNode.s() works as iteration level
std::queue<BicycleCar *, std::list<BicycleCar *>> q;
+ std::queue<BicycleCar *, std::list<BicycleCar *>> empty;
// TODO add init nodes
// for now just copy fpose()
delete c; // not in q and collide
}
}
+ std::swap(q, empty);
return;
createcuspandfinish:
std::vector<RRTNode *> cusp;
}
std::reverse(cusp.begin(), cusp.end());
this->cusp().push_back(cusp);
- std::queue<BicycleCar *, std::list<BicycleCar *>> empty;
std::swap(q, empty);
}