rodrigoqueiroz / geoscenarioserver

8 stars 1 forks source link

Fixed Broken Code Due to Upgrade of Lanelet2 #33

Closed mchlswyr closed 3 years ago

mchlswyr commented 3 years ago

kill_python38() { killall python3.8 }

for scenario in $scenarios; do read -p "Press ENTER to run next scenario:" trap kill_python38 SIGINT python3.8 GSServer.py -s "scenarios/test_scenarios/${scenario}" trap - SIGINT done


- Press `Enter` to run the next scenario, or `Ctrl + C` while this text it being displayed to exit the test
- While a scenario is running, you can end it with `Ctrl + C`, and go on to the next one
mchlswyr commented 3 years ago

Notes

rodrigoqueiroz commented 3 years ago

About the crash with SimTraffic 239. It is trying to log the trajectories after the simulation run. It crashes because it can't find the folder eval/trajlog/ This is supposed to happen only for evaluation. Change this flag to False in the SimConfig. WRITE_TRAJECTORIES = False

rodrigoqueiroz commented 3 years ago
  • E0209 17:22:03.193989 15153 ScenarioSetup.py:93] Route generation failed for route north_route. Traceback (most recent call last): File "GSServer.py", line 97, in start_server(args) File "GSServer.py", line 33, in start_server res = load_geoscenario_from_file(args.gsfile, traffic, sim_config, lanelet_map) File "/home/ms/anm_unreal_sim/submodules/geoscenarioserver/ScenarioSetup.py", line 94, in load_geoscenario_from_file raise e File "/home/ms/anm_unreal_sim/submodules/geoscenarioserver/ScenarioSetup.py", line 90, in load_geoscenario_from_file sim_config.lanelet_routes[vid] = lanelet_map.get_route_via(lanelets_in_route) File "/home/ms/anm_unreal_sim/submodules/geoscenarioserver/mapping/LaneletMap.py", line 110, in get_route_via assert route AssertionError

This is a common error. The lanelet library is trying to build a route based on the vehicle location + every point along the route. Usually it fails because one of the points is outside a valid lanelet, or there is not a valid connection between lanelets (either there is no route or the map does not have the tags right)

Our ringroad map was converted from lanelet1 to lanelet2. and it is not fully compatible. Different versions of the library can be more or less strict to some of these problems.

mchlswyr commented 3 years ago

Update