Farama-Foundation / HighwayEnv

A minimalist environment for decision-making in autonomous driving

Home Page:https://highway-env.farama.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the Collision Problem of Multiple Control Vehicles(mutil-agent)

HaoChenga opened this issue · comments

commented

Hello, thank you for your excellent work.
When testing on multiple agents, I encountered a problem with multi-control vehicle collision detection. Regarding the collision of a single vehicle, I can check whether there is a collision from the info['crashed'] returned by env. step(), but when the action contains multiple vehicles, the info value returned is still for a single vehicle, so how can I get the collision information of other controlled vehicles? Looking forward to your reply~ @eleurent

The definition of collision needs to be modified. In the default environment, the definition of reward and collision is only derived from the first car.

commented

Thank you for your reply. I have already written the code for the vehicle collision and have now closed the issue.