hbp_nrp_excontrol.StateMachineRunner module¶
This module contains the start script of a state machine process
-
class
StateMachineRunner
(sm_id, path)[source]¶ Bases:
object
Class encapsulating a running application to expose a state machine
-
static
get_state
(request)[source]¶ Gets the current state machines current state
- Parameters
request – The mandatory ROS request parameter
-
initialize_sm
(request)[source]¶ Initializes the current state machine
- Parameters
request – The mandatory ROS request parameter
-
restart
(request)[source]¶ Restarts the current state machine
- Parameters
request – The mandatory ROS request parameter
-
send_error
(msg, error_type, severity=1, line_number=- 1, offset=- 1, line_text='')[source]¶ Sends an error message to clients
- Parameters
msg – The error message
severity – The severity of the error
error_type – The error type, e.g. “Compile”
line_number – The line number where the error occurred
offset – The offset
line_text – The text of the line causing the error
-
static