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

Supervisor to manage requests to modify lane states #218

Open
Yadunund opened this issue Jul 1, 2022 · 0 comments
Open

Supervisor to manage requests to modify lane states #218

Yadunund opened this issue Jul 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Yadunund
Copy link
Member

Yadunund commented Jul 1, 2022

There may be two more nodes in a deployment that seek to modify the states of lanes in fleet adapters. Modifications presently include opening/closing lanes along with modifications to their speed limits.

if one requests the lane to be closed based on one set of conditions while the other deems to okay to be opened now based on another set of conditions, there is a mismatch.

Solution:
Implement a lane_state_supervisor similar to door and lift state supervisors that subscribe to requests from multiple sources and then decides what the state of the lane should be based on configurable business logic.
It would probably require us to add a string requester_id field to LaneRequest and SpeedLimitRequest messages which would break API. Alternatively we could create a new msg that encapsulates the requester_id and these messages. The nodes would publish the new message. The lane_state_supervisor would publish the original request messages.

@Yadunund Yadunund added the enhancement New feature or request label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant