3 from flexbe_core
import EventState, Logger
8 @author: Philipp Schillinger 13 A state that can log a predefined message including an input key to precisely inform the operator about what happened to the behavior. 15 -- text string The message to be logged to the terminal Example: 'Counter value: {}'. 16 -- severity uint8 Type of logging (Logger.REPORT_INFO / WARN / HINT / ERROR) 18 #> data object The data provided to be printed in the message. The exact type depends on the request. 20 <= done Indicates that the message has been logged. 24 def __init__(self, text, severity = Logger.REPORT_HINT):
35 '''Execute this state''' 42 '''Log upon entering the state.''' 44 Logger.log(self._text.format(userdata.data), self.
_severity)
def on_enter(self, userdata)
def execute(self, userdata)
def __init__(self, text, severity=Logger.REPORT_HINT)