I want to get the position of cars in flow.
I know using both self.k.vehicle.get_position
and self.k.vehicle.get_x_by_id
can get longitudinal position.
I checked methods in flow/core/kernel/vehicle/traci.py
,there are get_edge
get_lane
get_headway
, but it seems like there is no method to return the lateral position or the relative lateral distance between cars.
I wonder how can I get lateral position in flow.
If anyone get any idea of this, please tell me!
Thank you and happy new year!