c.rotate(rc, this->delta_angle_to_slot_);
starts.push_back(c);
}
- std::vector<std::vector<BicycleCar>> entries;
for (auto s: starts) {
auto r = this->drive_in_slot(s);
if (r.size() > 0) {
- entries.push_back(r);
+ this->_entries.push_back(r);
}
}
- if (entries.size() == 0) {
+ if (this->_entries.size() == 0) {
return PoseRange(Pose(0.0, 0.0, 0.0), Pose(0.0, 0.0, 0.0));
}
- if (entries.size() == 1) {
- auto f = entries.front().front();
+ if (this->_entries.size() == 1) {
+ auto f = this->_entries.front().front();
return PoseRange(f, f);
}
- auto& c1 = entries.front().front();
- auto& c2 = entries.back().front();
+ auto& c1 = this->_entries.front().front();
+ auto& c2 = this->_entries.back().front();
PoseRange p(c1, c2);
if (swapped) {
this->swap_side();