Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Distance calculation

Hello,
- in most cases the distance between the cartesian coordinates is an appropriate basis (for exceptions, see https://sumo.dlr.de/docs/Simulation/Distances.html)
- the positions indicate the center of each vehicle's front bumper. To compute the distance between the vehicle bodies you need to factor in the vehicle angles (you could get these from fcd-output by looking at the corresponding time step) and the vehicle lengths and widths.

regards,
Jakob

Am Mi., 19. Aug. 2020 um 18:29 Uhr schrieb Ishan Dindorkar <ishandindorkar333@xxxxxxxxx>:
Dear SUMO Community,

I am trying to calculate distance between ego and foe vehicle based on there position coordinates(Cartesian) captured in SSM output file. I was wondering if anyone has tried this before and can share details about how to precisely calculate distance.
I am aware of distance calculation formula using 2 coordinates but I was wondering if that would be the correct approach in this case. Please provide your suggestions.
I would greatly appreciate.

Thank you.

Sincerely,
Ishan Dindorkar

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top