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

generateRailSignalConstraints.py: derive constraints for ordering bidirectional track use #11709

Closed
namdre opened this issue Sep 27, 2022 · 1 comment

Comments

@namdre
Copy link
Contributor

namdre commented Sep 27, 2022

  • disposition needs a single constraint that encompasses the possibility of an order-swap
    • this implies that the outermost signals to a bidi-section must be found to avoid redundant constraints
  • potentially the logic for traci.trafficlight.swapConstraints must be adapted (in this case we probably require a new constraint type)

Algorithm outline:

The following situation (structurally corresponding to a mergingSwitch) must be identified

  • routes A and B share different directions of a sequence of bidi-edge-pairs x0,x1,x2,...,xn (reverse is -xn,..,-x2,-x1-x0)
  • entry signal for A is first signal before x0
  • entry signal for B is first signal before -xn
  • ordering is based on arrival/started time at the first stop after the bidi-sequence
@namdre namdre self-assigned this Sep 27, 2022
namdre added a commit that referenced this issue Sep 30, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 6, 2022
namdre added a commit that referenced this issue Oct 11, 2022
namdre added a commit that referenced this issue Oct 12, 2022
namdre added a commit that referenced this issue Oct 12, 2022
@namdre
Copy link
Contributor Author

namdre commented Oct 14, 2022

Open issue: if the next stop after the bidi section is on another ocp (much further away) compared to the point where the foe vehicle enters the bidi section, the the arrival-timing must take the travel time into account or the ordering is wrong.

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

1 participant