3 from flexbe_core
import EventState, Logger
8 @author: Philipp Schillinger 13 A state that can log a predefined message to precisely inform the operator about what happened to the behavior. 15 -- text string The message to be logged to the terminal. 16 -- severity uint8 Type of logging (Logger.REPORT_INFO / WARN / HINT / ERROR) 18 <= done Indicates that the message has been logged. 22 def __init__(self, text, severity = Logger.REPORT_HINT):
24 super(LogState, self).
__init__(outcomes=[
'done'])
31 '''Execute this state''' 38 '''Log upon entering the state.'''
def execute(self, userdata)
def on_enter(self, userdata)
def __init__(self, text, severity=Logger.REPORT_HINT)