Class for system status estimation.
More...
#include <statusEstimator.hpp>
Class for system status estimation.
◆ StatusEstimator()
| rtctk::rtcSupervisor::StatusEstimator::StatusEstimator |
( |
| ) |
|
◆ ~StatusEstimator()
| virtual rtctk::rtcSupervisor::StatusEstimator::~StatusEstimator |
( |
| ) |
|
|
virtualdefault |
◆ ApplyEstimationHeuristic()
| std::string rtctk::rtcSupervisor::StatusEstimator::ApplyEstimationHeuristic |
( |
const std::map< std::string, std::string > & | states | ) |
|
|
protectedvirtual |
The actual system status estimation algorithm.
Override this method in case you need a custom status estimation algorithm. For more complicated algorithms you can also take the map keys (component names) and the protected member variables of this class m_prev_status and m_rev_states into account;
- Returns
- One of the status string constants defined above, e.g.: STATUS_NOT_READY
Note, we are returning a string here on purpuse to keep the method open for future extension where individual consortia may want to return a richer set of status strings.
◆ EstimateStatus()
| std::string rtctk::rtcSupervisor::StatusEstimator::EstimateStatus |
( |
const std::string & | name, |
|
|
const std::string & | state ) |
Public method to estimate system status.
This method is NOT thrad safe, it is supposed to be called sequentially from a single callback thread in StateSubscriber.
- Parameters
-
| name | component name |
| state | component state |
- Returns
- One of the status string constants defined above, e.g.: STATUS_NOT_READY
Note, we are returning a string here on purpuse to keep the method open for future extension where individual consortia may want to return a richer set of status strings.
◆ Reset()
| void rtctk::rtcSupervisor::StatusEstimator::Reset |
( |
| ) |
|
◆ m_prev_states
| std::map<std::string, std::string> rtctk::rtcSupervisor::StatusEstimator::m_prev_states |
|
protected |
◆ m_prev_status
| std::string rtctk::rtcSupervisor::StatusEstimator::m_prev_status |
|
protected |
◆ m_states
| std::map<std::string, std::string> rtctk::rtcSupervisor::StatusEstimator::m_states |
|
protected |
The documentation for this class was generated from the following files: