return true;
}
+bool RRTBase::add_ixy(RRTNode *n)
+{
+ int ix = IXI(n->x());
+ if (ix < 0)
+ ix = 0;
+ if (ix >= IXSIZE)
+ ix = IXSIZE - 1;
+ int iy = IYI(n->y());
+ if (iy < 0)
+ iy = 0;
+ if (iy >= IYSIZE)
+ iy = IYSIZE - 1;
+ this->ixy_[ix][iy].add_node(n);
+ return true;
+}
+
bool RRTBase::goal_found(bool f)
{
this->goal_found_ = f;
std::vector<RRTNode *> &dnodes();
std::vector<RRTNode *> &samples();
std::vector<RRTNode *> iy_[IYSIZE];
+ Cell ixy_[IXSIZE][IYSIZE];
std::vector<CircleObstacle> *co();
std::vector<SegmentObstacle> *so();
std::vector<float> &clog();
std::vector<CircleObstacle> *cobstacles,
std::vector<SegmentObstacle> *sobstacles);
bool add_iy(RRTNode *n);
+ bool add_ixy(RRTNode *n);
bool goal_found(bool f);
// other