huawei-noah / SMARTS

Scalable Multi-Agent RL Training School for Autonomous Driving
MIT License
954 stars 190 forks source link

[Help Request] How to get events of neighborhood_vehicle as it in ego vehicle observation #2150

Closed astral705 closed 7 months ago

astral705 commented 7 months ago

High Level Description

I need to compute the rewards for neighboring vehicles, therefore I require events such as "reached_goal" or "collided" as present in the observation of the ego vehicle. However, I'm unable to directly extract these events from the observation of neighboring vehicle states.

Version

SMARTS v2.0.1

Operating System

ubuntu 20.04

Problems

No response

Adaickalavan commented 7 months ago

Hi @astral705,

1) It is not reasonable to have detailed knowledge of neighbourhood vehicles' trajectory in real life, hence detailed neighbourhood vehicle information is not provided in the observation of an ego agent. 2) If an ego agent collides with a non-ego vehicle, the collision event should be recorded and available in the ego agent's observation agent_obs["events"]["collisions"]. 3) The concept of "goal" does not exist for non-ego vehicles, hence "reached_goal" is undefined for non-ego neighbourhood vehicles.