Added comments

This commit is contained in:
Axel 2021-07-12 11:05:25 +02:00 committed by bernat
parent a34e12f4f4
commit 9c2d8aef94
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,7 @@ namespace road {
} else {
distance_to_signal = waypoint.s - signal->GetDistance();
}
// check that the signal affects the waypoint
bool is_valid = false;
for (auto &validity : signal->GetValidities()) {
if (waypoint.lane_id >= validity._from_lane &&
@ -379,6 +380,7 @@ namespace road {
} else {
distance_to_signal = waypoint.s - signal->GetDistance();
}
// check that the signal affects the waypoint
bool is_valid = false;
for (auto &validity : signal->GetValidities()) {
if (waypoint.lane_id >= validity._from_lane &&