Keep vehicles on the vehicle path line
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
-
I have Confirmed this bug myself. -
I have checked the documentation and found no answer. -
I checked to make sure that this issue has not already been filed.
- Prerequisites
- What is the current bug behaviour?
- Steps to reproduce the bug
- What is the expected correct behaviour?
- Relevant logs and/or screenshots
- Context for bugs on live / demo environments
- Confirmation
- Possible fixes
What is the current bug behaviour?
Vehicles can sometimes travel into lanes that they shouldn't be in. Vehicles currently travel by finding the next node along the path of nodes. If there is two nodes far apart from each other, vehicles may travel in the wrong lane until it has reached the next node. This can also happen when turning across junctions where some vehicles are temporarily in another vehicles lane.
Steps to reproduce the bug
- Import an OSM Map (this can happen on any map but its more prevalent in OSM).
- Find a sharp turning or a turning with less nodes to follow.
- Wait until you find a vehicle that moves into an incorrect lane.
What is the expected correct behaviour?
The vehicle should be able to smoothly turn back into its lane as soon as possible or limit going into another lane in the first place.
Relevant logs and/or screenshots
Context for bugs on live / demo environments
If the bug was found on a live or demo deployment, state the time and date on which it occurred (this helps in searching web server or operating system logs for more information).
-
The simulation was run on Windows. -
The simulation was run on Linux. -
The simulation was run on MacOS (unsupported). -
The simulation was run on iOS (unsupported). -
The simulation was run on Android (unsupported).
Please also state the version number of your platform.
Confirmation
Please provide any relevant context about this bug report.
-
Marked with Priority:High, Priority:Medium, or Priority:Low, according to the needs of the client. -
This bug has been reported by the client or product owner. -
This bug has been reported by an end-user (who is not the client). -
This bug has been Confirmed, by a developer, running the develop branch locally. -
This bug has been Confirmed, by a developer, on the live system. -
This bug has been Confirmed, by a developer, on the demo deployment.
Possible fixes
Could try to make the vehicles follow the line directly instead of looking to the next node.