maliput / delphyne

Scenario and search based Ego/Ado Car traffic simulations
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fixes bug in LaneLocationProvider. #813

Closed francocipollone closed 3 years ago

francocipollone commented 3 years ago

resolves https://github.com/ToyotaResearchInstitute/delphyne_demos/issues/30

When the step_count is zero because the step_size is less than the length of the lane then it generates a lane_position at the beginning of the lane, in contrast with the old behavior where none lane position was generated in that case, occasioning an error downstream.

Why did we miss it in bionic?

delphyne_city demo was working on bionic(python 3.6.9) because the random lanes that were being selected were always the same (because the seed was the same) and it happened that, luckily, none lane without available lane_position was selected. When running in focal(python 3.8.10), the selected random lanes changed and now some lanes, which no lane_position were generated, were now selected.