GithubHelp home page GithubHelp logo

mros_modes_observer's People

Contributors

marioney avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

rezenders

mros_modes_observer's Issues

Observe mode events

Currently, the mode observer observes all /{node}/transition_event topics to observe state transition, e.g., going to active, inactive or error-processing. This way it is observing all state transitions, however, it is missing all mode changes.

The observer should additionally observe /{node}/mode_event topics to observe mode changes, e.g., a node going from normal mode to degraded mode. Messages sent on this topic are of type ModeEvent and very close to the TransitionEvent messages.

Extend observed transitions

According to the documentation, the observer is only listening to transition from TRANSITION_STATE_ERRORPROCESSING to PRIMARY_STATE_UNCONFIGURED to set a node status to false. Instead resp. in addition to that we suggest to observe the following transitions and set the status accordingly:

  1. Status: true, if

    • goal_state is PRIMARY_STATE_UNCONFIGURED - we consider the node available for metacontrol once it is in its unconfigured state, i.e. it can now be configured and activated
  2. Status: false, if

    • goal_state is TRANSITION_STATE_ERRORPROCESSING - once the node enters errorprocessing, it is no longer considered available for metacontrol, unless it enters unconfigured (see 1.)
    • goal_state is PRIMARY_STATE_FINALIZED - once the node enters finalized, because it is offline after this transition

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.