Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpla relies on consistent lane index across edges for lane change commands #11276

Closed
sushmareddy569 opened this issue Aug 3, 2022 · 6 comments

Comments

@sushmareddy569
Copy link

I'm using Simpla as reference to create a platoon. In my case, I have three edges, when the platoon is moving from one edge to another edge, at the junction the vehicles are shifting to other lanes in the next edge. How do i stop the vehicles from lane changing and make them travel in the same lane from first edge to the last edge?

@m-kro m-kro added the question label Aug 3, 2022
@m-kro
Copy link
Contributor

m-kro commented Aug 3, 2022

Once a platoon of multiple vehicles has formed, the followers will change lanes if the leader does. So the question is rather how to restrict vehicles to certain lanes in general:

  • allow certain vehicle classes only on the wanted lanes or
  • add waypoints to the route (see docs)

@sushmareddy569
Copy link
Author

In my case, even if the leader does not change the lane, the follower is switching into other lanes after entering into second edge through a junction.

Here I'm uploading my file which has network files, route files, cfg files.
Hello.zip

Could you please go through them and suggest how to restrict the vehicles from switching lanes when they pass from one edge to other edge?

@m-kro
Copy link
Contributor

m-kro commented Aug 4, 2022

Was working with SUMO v.1.9.0. Followers change lanes starting with v.1.10.0.

@m-kro m-kro added bug and removed question labels Aug 4, 2022
@m-kro m-kro changed the title How to stop lane changing in Simpla Simpla relies on consistent lane index across edges for lane change commands Aug 4, 2022
@m-kro
Copy link
Contributor

m-kro commented Aug 4, 2022

Problem was hidden before this commit. When the edge downstream has more lanes and the leader naturally switches from laneIndex 0 to 1 by driving straight, followers may change to lane 1 on the upstream edge and break the platoon.

@m-kro m-kro self-assigned this Aug 4, 2022
@m-kro m-kro added this to the 1.15.0 milestone Aug 4, 2022
@namdre
Copy link
Contributor

namdre commented Aug 9, 2022

Suggestion: if there is a direct connection from the follower lane to the leader lane, then the follower should stay on their lane (the check is a bit more involved if there are intermediate edges between leader and follower)

@m-kro
Copy link
Contributor

m-kro commented Aug 19, 2022

Can't reproduce the problem with the current SUMO dev version anymore, because it was solved through merge of #9252 . I'll take the suggestions to create more advanced lane change to a new ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants