|
RTC Toolkit 6.0.0-pre2
|
Status Estimator Extension. More...
Protected Member Functions | |
| std::string | ApplyEstimationHeuristic (const std::map< std::string, std::string > &states) override |
| The actual system status estimation algorithm. | |
Additional Inherited Members | |
Public Member Functions inherited from rtctk::rtcSupervisor::StatusEstimator | |
| StatusEstimator () | |
| virtual | ~StatusEstimator ()=default |
| void | Reset () |
| Reset internal state of the StatusEstimator object. | |
| std::string | EstimateStatus (const std::string &name, const std::string &state) |
| Public method to estimate system status. | |
Protected Attributes inherited from rtctk::rtcSupervisor::StatusEstimator | |
| std::map< std::string, std::string > | m_states |
| std::map< std::string, std::string > | m_prev_states |
| std::string | m_prev_status |
Status Estimator Extension.
This class is intended to show how to customise the StatusEstimator.
|
inlineoverrideprotectedvirtual |
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;
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.
Reimplemented from rtctk::rtcSupervisor::StatusEstimator.