}
PoseRange
-ParkingSlot::fe()
+ParkingSlot::fe(BicycleCar c, unsigned int& max)
{
assert(this->parallel());
assert(this->right());
- BicycleCar c;
c.h(this->h());
double clen = this->offset_ + this->len() - c.df();
double cw = this->offset_ + c.w() / 2.0;
this->curb_.intersects_with(b3, c.len());
double max_to_slot;
auto const& rr = c.rr();
- auto const& i1 = this->curb_.in1();
- auto const& i2 = this->curb_.in2();
+ auto const& i1 = this->curb_.i1();
+ auto const& i2 = this->curb_.i2();
if (rr.edist(i1) < rr.edist(i2)) {
max_to_slot = rr.min_angle_between(b3, i1);
} else {
starts.push_back(c);
}
std::vector<std::vector<BicycleCar>> entries;
- unsigned int max_cusp = 10;
for (auto s: starts) {
- auto r = this->drive_in_slot(s, max_cusp);
+ auto r = this->drive_in_slot(s, max);
if (r.size() > 0) {
entries.push_back(r);
}
Line li2(b2, e2);
li1.intersects_with(li2);
PoseRange pr;
- pr.x(li1.in1().x());
- pr.y(li1.in1().y());
+ pr.x(li1.i1().x());
+ pr.y(li1.i1().y());
pr.b(b);
pr.e(e);
return pr;