public:
std::vector<std::vector<BicycleCar>> _ispaths;
std::vector<BicycleCar> _entries;
+ std::vector<BicycleCar> _starts;
/*! \brief Set parking slot.
\param p Point with `x`, `y` coordinates of entry side's corner.
} else {
max_to_slot = rr.min_angle_between(rc, i2);
}
- std::vector<BicycleCar> starts;
double a_to_slot = 0.0;
while (a_to_slot < max_to_slot) {
a_to_slot += this->_delta_angle_to_slot;
c.rotate(rc, this->_delta_angle_to_slot);
- starts.push_back(c);
+ this->_starts.push_back(c);
}
- for (auto s: starts) {
+ for (auto s: this->_starts) {
auto r = this->drive_in_slot(s);
if (r.size() > 0) {
this->_ispaths.push_back(r);