idsc-frazzoli / dg-commons

Driving games common tools
GNU General Public License v3.0
24 stars 6 forks source link

Finished agents are not removed from observation #126

Closed ysli16 closed 1 month ago

ysli16 commented 1 month ago

If I understand it correctly, the finished players are removed from sim_context.players in function _remove_finished_players() in file dg_commons/sim/simulator.py. However when constructing the observations in function pre_update(), all players in sim_context.model are included. Does it make more sense if we only include the players that are still in sim_context.players?