return asin((this->length_ + this->wheel_base_) /
(2 * this->out_radi()));
}
+
+bool BicycleCar::drivable(RRTNode *n)
+{
+ bool drivable = true;
+ RRTNode *ccl = this->ccl();
+ RRTNode *ccr = this->ccr();
+ if (pow(ccl->x() - n->x(), 2) + pow(ccl->y() - n->y(), 2) <=
+ pow(this->turning_radius_, 2))
+ drivable = false;
+ if (pow(ccr->x() - n->x(), 2) + pow(ccr->y() - n->y(), 2) <=
+ pow(this->turning_radius_, 2))
+ drivable = false;
+ return drivable;
+}