Fixed excluded lanes

This commit is contained in:
Axel 2021-07-12 11:01:32 +02:00 committed by bernat
parent 2f488b6efe
commit a34e12f4f4
1 changed files with 4 additions and 4 deletions

View File

@ -345,8 +345,8 @@ namespace road {
}
bool is_valid = false;
for (auto &validity : signal->GetValidities()) {
if (waypoint.lane_id > validity._from_lane &&
waypoint.lane_id < validity._to_lane) {
if (waypoint.lane_id >= validity._from_lane &&
waypoint.lane_id <= validity._to_lane) {
is_valid = true;
break;
}
@ -381,8 +381,8 @@ namespace road {
}
bool is_valid = false;
for (auto &validity : signal->GetValidities()) {
if (waypoint.lane_id > validity._from_lane &&
waypoint.lane_id < validity._to_lane) {
if (waypoint.lane_id >= validity._from_lane &&
waypoint.lane_id <= validity._to_lane) {
is_valid = true;
break;
}