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

Lane-connector quick-setup - phase 2 #788

Open
kianzarrin opened this issue Mar 16, 2020 · 4 comments
Open

Lane-connector quick-setup - phase 2 #788

kianzarrin opened this issue Mar 16, 2020 · 4 comments
Labels
feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors triage Awaiting issue categorisation

Comments

@kianzarrin
Copy link
Collaborator

kianzarrin commented Mar 16, 2020

continuation of #703

Things to conisder

Stay In Lane

A) Better support for lane changes where number of lanes change more than +-1: see #788 (comment)
B) support for two way inner connected road: Ill explain in comments.

CrissCross

This requires a different hot-key
we should go for one of the options shown in the screenshot:
Screenshot (690)

For + junctions The implementation of this is going to depend wildly on personal preferences. That's a problem. Several possibilities are
Screenshot (692)

In some of the screenshots above I didn't connect lane arrows because I was hopping maybe we can program the cars to prefer to go into lanes that do not have lane connection. If this is already the case I would not know. Any way some thing like this would be useful:
#41 (comment)

@kianzarrin kianzarrin added feature A new distinct feature triage Awaiting issue categorisation labels Mar 16, 2020
@originalfoo originalfoo changed the title lane-connector quick-setup phas2 Lane-connector quick-setup - phase 2 Mar 16, 2020
@originalfoo
Copy link
Member

I much prefer criss-cross option 1 from the first image.

For second image, bottom left seems to be good balance between clarity of what will happen and minimising lane connector spam. Or it could be given a state machine to cycle through some variants?

@kianzarrin
Copy link
Collaborator Author

kianzarrin commented Mar 16, 2020

Currently I try to play with the rounding approach (float to integer can be rounded up down or to nearest) in order to prefer inner/middle/outer lanes as explained in #706

The result is the two pictures bellow:
Screenshot (701)
Screenshot (699)

The first one is OK but in the case of the latter one I prefer it to be like this:
Screenshot (700)

I am not sure if it is worth our effort to do so though because as you can see from the first screenshot this is a very unusual and extreme case.

@kianzarrin
Copy link
Collaborator Author

Screenshot (694)
in review #706 if a road connected to the inner side of a one-way road stay-in-lane creates the connections as shown in the junction to the left.. we want the connections to be like the junction to the right.

This is not really stay in lane sense the connections are criss-crossing and anyway to user should not connect a two way road from inside. so I don't think its worth our time to fix this (I say that every time but the doing the math is so fun it proves to be irresistible!)

@kianzarrin
Copy link
Collaborator Author

@aubergine10 I much prefer criss-cross option 1 from the first image.

I knew you would say that! but what if its a 3 lane road?
Screenshot (702)
Its always easier to look at the one particular easy case when you start planning things out but when you want to program it for all possible cases things prove to be more difficult.

For second image, bottom left seems to be good balance between clarity of what will happen and minimising lane connector spam. Or it could be given a state machine to cycle through some variants?

I like the state machine idea. also solves the problem with the 3 lane T junction.

BUT, do the cars prefer lanes that have no lane connections? If not is there any plans to do this as part of #41 (comment) ? The answer to that question could be very useful to the decisions we make.

@kianzarrin kianzarrin added the LANE ROUTING Feature: Lane arrows / connectors label Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors triage Awaiting issue categorisation
Projects
None yet
Development

No branches or pull requests

2 participants