Closed yotamitai closed 3 years ago
Hi yotamitai, I think that there are several ways this could be implemented.
KinematicsObservation
to include an additional id
field. This must be filled in the Vehicle.to_dict()
method, and added to the observation configuration. Instead of vehicle id, you could also directly put the lane index information.env.road.vehicles
I was hoping there would be some indication of which vehicles are shown on the screen at a given moment, i.e. as a feature of the state/observation. But I guess I can simply prune all cars from the observation that have a relative x distance from the agent that is greater than the width of the screen.
Thank you.
Hi! Is there a way to obtain the ID of the IDM vehicles that are present in the current observation? What I'd really like is to know how many cars are in each lane in the current observed state. If I knew which cars (by ID) appear in the observation i could simply extract their lane index. I can obtain this info from the observations themselves but was wondering if there isn't some simple method that exists for this.
Thanks