Hi Hriday,
 
your braking distance formula seems alright. "egoDist" and "foeDist" refer 
to different vehicles and by consequence to different distances to a common 
conflict area. "egoExitDist" and "foeExitDist" refer to the exit of the 
common conflict area along the respective vehicle path.
 
Best regards
Mirko
 
 
 
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Braking distance used for getJunctionFoes - 
explained
Datum: 2024-01-05T14:35:51+0100
Von: "Hriday Sanghvi" <[email protected]>
An: "Mirko Barthauer" <[email protected]>
 
 
 
Thank you Mirko, what about the braking distance calculation? Am I 
recalculating something SUMO already calculates and doing it incorrectly? 
Then, does SUMO provide this information for a vehicle?

Still confused about the exact meaning of some variables, could you clarify 
please? My understanding of the meaning of the variables:
 
foeId: ID of the vehicle that is considered as a foe (eg., conflicting flow 
at the intersection)
egoDist: Distance of ego vehicle to the intersection + intersection to foe 
vehicle
foeDist: Distance of foe vehicle to the intersection + intersection to the 
ego vehicle (shouldn't this be the same as egoDist then?)
egoExitDist: Distance of ego vehicle to the exit of the conflict area / 
intersection 
foeExitDist: Distance of foe vehicle to the exit of the conflict area / 
intersection (which may be the exit of the junction or more upstream - but 
how can I control this?) 
egoLane: Internal lane ID of the ego vehicle at this intersection/conflict 
area
foeLane: Internal lane ID of the foe vehicle at this intersection/conflict 
area
egoResponse: True if foe vehicle has right of way or if ego vehicle is 
yielding, otherwise False
foeResponse: True if ego vehicle has right of way or if foe vehicle is 
yielding, otherwise False
 
Please advise.
 
Sincerely,
Hriday

On Thu, 4 Jan 2024 at 07:16, Mirko Barthauer <[email protected]
<mailto:[email protected]> > wrote:
  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]
  <mailto:[email protected]> >
  An: "Sumo project User discussions" <[email protected]
  <mailto:[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