getLeader command at a merge [message #1826780] |
Thu, 30 April 2020 10:56 |
Eclipse User |
|
|
|
Hello,
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"
and
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 66 times)
|
|
|
Powered by
FUDForum. Page generated in 0.02246 seconds