Hi Hriday,
 
regarding your questions:
a: Distances are sums of euclidean distances of single net elements / 
stretches between subsequent geometry points along the routes of the 
vehicles.
b: They give the distance to the exit of the conflict area, which may be 
the exit of the junction (or more upstream)
c: It is the right-of-way information like defined here
<https://sumo.dlr.de/docs/Networks/SUMO_Road_Networks.html#requests> in the 
docs. True => yield
 
Best regards
Mirko
 
 
 
 
-----Original-Nachricht-----
Betreff: [sumo-user] Braking distance used for getJunctionFoes - explained
Datum: 2024-01-03T18:05:43+0100
Von: "Hriday Sanghvi via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
 
 
 
Hello,
 
>From TraCI's vehicle domain, I am trying to make use of:
 
getJunctionFoes(self, vehID, dist=0.0)
Return list of junction foes [(foeId, egoDist, foeDist, egoExitDist, 
foeExitDist, egoLane, foeLane, egoResponse, foeResponse), ...] within the 
given distance to the given vehicle
 
 
 
1. For the dist parameter, I am calculating maximum braking distance for my 
ego vehicle as:
square(current_speed) / (2 * max_deceleration_ability) so that ego vehicle 
can decide to stop in time.
(from the v^2 - u^2 = 2aS formula, assuming constant maximum deceleration 
and final velocity to be 0). Does that make sense?
 
 
 
2. Sample output that I got using this method:
 
(('flow_btt.0', 38.19626194106837, 31.700000000000003, 41.396261941068374, 
34.900000000000006, ':intersection_2_0', ':intersection_1_0', True, False), 
...)
 
>From that, 
a. Just to confirm, are all the distances calculated using the Euclidean 
distance formula?
b. I assume the egoExitDist and foeExitDist are the distance till the 
"exit" of the junction?
c. What is egoResponse and foeRespone?

Thank you,
Sincerely,
Hriday
 

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to