Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Discussion: RoadLane connectivity for traffic simulation #261

@antonkurkin

Description

@antonkurkin

Related to my PR #260 and discussions from it

To make road lane agents capable of moving on the road without colliding (and with minimal processing cost) we need some extension of the current road lanes. I think current approach (with 1.5D roads) is good and seemingly extendable enough to get there.
in the PR I already have the code that works pretty well for moving on one lane

Image

Here is my plan for lane merging - basically having one primary lane which is used to sync the agents - and secondaries that are merging to it
merging and diverging is really the same thing - but for the start or the end of the lane

Image

To make intersections work - in addition to lane merging/diverging we need to also have intersection of 2 lanes.

Image

and then the intersection as a whole would look like this

Image

Also for both-direction lanes, like turn lanes, overtakes on the reverse lane, etc - we could do the same thing with primary/secondary for 2 lanes in both directions - and look for obstacles there when we decide if we could use the lane. I didn't look at it too closely though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions