facebookresearch / nocturne

A data-driven, fast driving simulator for multi-agent coordination under partial observability.
MIT License
258 stars 29 forks source link

Problems with rendering.py #25

Closed roggirg closed 2 years ago

roggirg commented 2 years ago

Hi, Thanks for sharing this awesome environment.

I'm trying to run rendering.py and end up with IndexError. It's happening at the third video creation with the following error: source=scenario.getObjectsThatMoved()[3], IndexError: list index out of range

Same thing happens with the fourth video creation. It seems as though changing the index to -1 for both works but I'm not sure if this is a sound change.

Thanks!

eugenevinitsky commented 2 years ago

Hi @roggirg ! Thanks for catching this. The only point of rendering.py is to show you how to make videos / images of the scenes so that change is totally sound but we'll also push a fix so that that doesn't happen again.

roggirg commented 2 years ago

Awesome thanks, I'll let you close this issue when you see fit.

eugenevinitsky commented 2 years ago

Thank you for catching this as well! Also, the autobots project is great so I'm excited to see you all looking into this repo.