I am trying to create a rule for controlling forklift traffic in a warehouse aisle.
The aisle is unidirectional by default but can temporarily allow two-way traffic under certain conditions. Specifically, I want to implement the following logic:
- When there are no forklifts in the aisle, it can become two-directional to allow a forklift to enter from the opposite direction. like number 2 above
- Once a second forklift enters the aisle, it should revert to being unidirectional again to avoid congestion or deadlock with two way. like number 1 above
- Here is another example answer by @Jason Lightfoot but this one is using time which is not the case here. @Felix Möhlmann do you have suggestion or solution to this problem. Thank you!
Here is my model loading-1.fsm