Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » Eclipse Sumo » getLeader command at a merge(getting Leader ID when two lanes merge into one)
getLeader command at a merge [message #1826780] Thu, 30 April 2020 10:56
Sharon Hornstein is currently offline Sharon HornsteinFriend
Messages: 1
Registered: April 2020
Junior Member
I have created a merge scenario of two highway lanes that merge into one. The scenario is modeled in SUMO using the NetEdit tool.
I am running SUMO from matlab using traci4matlab and retrieve the cars' parameters using the traci4matlab commands.
Specifically, I have cars that are born at the edge of the highway, which includes 2 lanes, they have ~1km to drive until there is a merge, and after the merge they have only one lane.
I use the command getLeader in order to know who is the leader of each car. When the cars drive in each of the parallel lanes, there is no problem. However, as soon as one car enters the merge, I expect to get that this car is the leader of its immediate followers. Instead, I have one car with no leader and only one car gets the leader that appears in the merge area.
Please look at the images, and the following explanations:

I have the following cars in the image "merge1.jpg" -
"human.0" is the rightmost car in the merge.
"human.1" on the bottom left before the merge.
"human.2" on the top left before the merge.

I expect getLeader("human.1") to be "human.0"
getLeader("human.2") to be "human.0"

but instead, I get getLeader("human.2") = "" - no leader for this car.
I do not understand why SUMO doesn't show that the leader of "human.2" is "Human.0".

Any ideas?

Thanks a lot,
Sharon Hornstein

  • Attachment: merge1.JPG
    (Size: 18.07KB, Downloaded 50 times)
Previous Topic:Public Transport Modeling in SUMO
Next Topic:Modelling Public Transport Line (or fixed Route)
Goto Forum:

Current Time: Fri Mar 01 23:20:30 GMT 2024

Powered by FUDForum. Page generated in 0.02731 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top