Classes | Public Types | Public Member Functions | Public Attributes | List of all members
prbt_hardware_support::StoStateMachine_ Class Reference

Front-end state machine. More...

#include <sto_state_machine.h>

Inheritance diagram for prbt_hardware_support::StoStateMachine_:
Inheritance graph
[legend]

Classes

struct  EnableRequestedDuringStop
 
struct  Enabling
 
struct  halt_done
 
struct  halt_start
 Pushes the halt-task on the task queue. More...
 
struct  hold_done
 
struct  hold_start
 Pushes the hold-task on the task queue. More...
 
struct  recover_done
 
struct  recover_start
 Pushes the recover-task on the task queue. More...
 
struct  RobotActive
 
struct  RobotInactive
 
struct  sto_false
 
struct  sto_true
 
struct  sto_updated
 Holds the updated sto value. More...
 
struct  Stopping
 
struct  StopRequestedDuringEnable
 
struct  transition_table
 
struct  unhold_done
 
struct  unhold_start
 Pushes the unhold-task on the task queue. More...
 

Public Types

typedef RobotInactive initial_state
 Initial state. More...
 

Public Member Functions

 StoStateMachine_ (const TServiceCallFunc &recover_operation, const TServiceCallFunc &halt_operation, const TServiceCallFunc &hold_operation, const TServiceCallFunc &unhold_operation)
 Construct the front-end state machine. Store the required task execution functions. More...
 

Public Attributes

TServiceCallFunc halt_op_
 The halt operation. More...
 
TServiceCallFunc hold_op_
 The hold operation. More...
 
TServiceCallFunc recover_op_
 The recover operation. More...
 
StoTaskQueue task_queue_
 The task queue. More...
 
TServiceCallFunc unhold_op_
 The unhold operation. More...
 

Detailed Description

Front-end state machine.

Defines states, events, guards, actions and transitions. Pushes AsyncStoTask's on a task queue.

Note
This code is not thread-safe.

Definition at line 101 of file sto_state_machine.h.

Member Typedef Documentation

◆ initial_state

Initial state.

Definition at line 211 of file sto_state_machine.h.

Constructor & Destructor Documentation

◆ StoStateMachine_()

prbt_hardware_support::StoStateMachine_::StoStateMachine_ ( const TServiceCallFunc recover_operation,
const TServiceCallFunc halt_operation,
const TServiceCallFunc hold_operation,
const TServiceCallFunc unhold_operation 
)
inline

Construct the front-end state machine. Store the required task execution functions.

Parameters
recover_operationThe execution function of the recover-task.
halt_operationThe execution function of the halt-task.
hold_operationThe execution function of the hold-task.
unhold_operationThe execution function of the unhold-task.

Definition at line 112 of file sto_state_machine.h.

Member Data Documentation

◆ halt_op_

TServiceCallFunc prbt_hardware_support::StoStateMachine_::halt_op_

The halt operation.

Definition at line 365 of file sto_state_machine.h.

◆ hold_op_

TServiceCallFunc prbt_hardware_support::StoStateMachine_::hold_op_

The hold operation.

Definition at line 368 of file sto_state_machine.h.

◆ recover_op_

TServiceCallFunc prbt_hardware_support::StoStateMachine_::recover_op_

The recover operation.

Definition at line 362 of file sto_state_machine.h.

◆ task_queue_

StoTaskQueue prbt_hardware_support::StoStateMachine_::task_queue_

The task queue.

Definition at line 359 of file sto_state_machine.h.

◆ unhold_op_

TServiceCallFunc prbt_hardware_support::StoStateMachine_::unhold_op_

The unhold operation.

Definition at line 371 of file sto_state_machine.h.


The documentation for this class was generated from the following file:


prbt_hardware_support
Author(s):
autogenerated on Tue Feb 25 2020 03:19:31