Public Member Functions | Public Attributes
rcommander.tool_utils.StateBase Class Reference
Inheritance diagram for rcommander.tool_utils.StateBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
 Base construction for a state.
def get_name
 Gets the name of this object.
def get_smach_state
 Returns an object that implements smach.State, needed by RCommander to create the final state machine.
def is_runnable
 Checks to see whether this node is executable.
def output_names
 Returns a list of names of all declared outputs variables (same as the output variables in SMACH).
def output_type
 Gives the type (class) of output with the given name.
def remapping_for
 Gets the name of an output variable of another node in the state machine that maps to the input var_name in this node.
def set_name
 Sets the name of this action, used when user sets name in the GUI's Connections tab.
def set_remapping_for
 Sets the name of an output variable of another node in the state machine that maps to the input var_name in this node.
def set_runnable
 Identifies whether this node is executable or not (almost always this should be True.

Public Attributes

 name
 outputs
 remapping
 runnable

Detailed Description

Definition at line 403 of file tool_utils.py.


Constructor & Destructor Documentation

def rcommander.tool_utils.StateBase.__init__ (   self,
  name,
  outputs = {} 
)

Base construction for a state.

Parameters:
namename of this state
outputsa dictionary mapping names (strings) to Python classes.

Reimplemented in rcommander.tool_utils.EmbeddableState.

Definition at line 410 of file tool_utils.py.


Member Function Documentation

Gets the name of this object.

Definition at line 442 of file tool_utils.py.

Returns an object that implements smach.State, needed by RCommander to create the final state machine.

Reimplemented in rcommander.tool_utils.SimpleStateBase, and rcommander.tool_utils.EmptyState.

Definition at line 480 of file tool_utils.py.

Checks to see whether this node is executable.

Definition at line 465 of file tool_utils.py.

Returns a list of names of all declared outputs variables (same as the output variables in SMACH).

Definition at line 420 of file tool_utils.py.

def rcommander.tool_utils.StateBase.output_type (   self,
  name 
)

Gives the type (class) of output with the given name.

Used by RCommander to match node's input with other node's outputs.

Parameters:
namestring, name of output whose class we are interested in.

Definition at line 428 of file tool_utils.py.

def rcommander.tool_utils.StateBase.remapping_for (   self,
  var_name 
)

Gets the name of an output variable of another node in the state machine that maps to the input var_name in this node.

Parameters:
var_namean input variable for this state

Definition at line 450 of file tool_utils.py.

def rcommander.tool_utils.StateBase.set_name (   self,
  name 
)

Sets the name of this action, used when user sets name in the GUI's Connections tab.

Parameters:
namestring

Definition at line 436 of file tool_utils.py.

def rcommander.tool_utils.StateBase.set_remapping_for (   self,
  var,
  remapped 
)

Sets the name of an output variable of another node in the state machine that maps to the input var_name in this node.

Parameters:
varinput variable for this node.
remappedoutput variable of another node.

Definition at line 459 of file tool_utils.py.

Identifies whether this node is executable or not (almost always this should be True.

Parameters:
vboolean value

Definition at line 473 of file tool_utils.py.


Member Data Documentation

Definition at line 410 of file tool_utils.py.

Definition at line 410 of file tool_utils.py.

Definition at line 410 of file tool_utils.py.

Definition at line 410 of file tool_utils.py.


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


rcommander
Author(s): Hai Nguyen (haidai@gmail.com)
autogenerated on Thu Nov 28 2013 11:46:34