motional / nuplan-devkit

The devkit of the nuPlan dataset.
https://www.nuplan.org
Other
673 stars 129 forks source link

Are reactive agents working reliably in closed-loop simulations? #268

Closed d451gon closed 1 year ago

d451gon commented 1 year ago

I've just started running some simulations with the SimplePlanner to test the different settings, and I'm getting very odd behaviors when using reactive agents in closed-loop simulations (see gifs below):

near_multiple_vehicles_SimplePlanner_6cc3a86c636d566d stationary_in_traffic_SimplePlanner_68c52fcabbf35ff4

Using the latest release (1.1). Code to generate the first gif:

python run_simulations.py +simulation=closed_loop_reactive_agents scenario_filter.limit_total_scenarios=10 scenario_filter.timestamp_threshold_s=70

The first gif corresponds to the only scenario of type "near_multiple_vehicles" that results from running the code above (note that this is from the log 2021.07.16.20.45.29_veh-35_01095_01486, in the mini dataset, as per the default config).

The second gif is from a different log, just to double check.

Additionally, the number of vehicles surrounding the ego-vehicle in these simulations appears to be suspiciously low, although this might be a coincidence.

Thanks in advance for any insights!

patk-motional commented 1 year ago

Hi @d451gon,

I tried it myself but I don't seem to be able to recreate the issue. I was able to generate the gif below.

closed-loop-reactive-agents

d451gon commented 1 year ago

Same as in #254 downgrading numpy from 1.24.2 to 1.23.4 solved the issue.

Thanks @patk-motional !