SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Section.Section Class Reference

A class that stores a group of gaits which can finish a small task. More...

Public Member Functions

def __init__
 Constructor. More...
 
def RecordCurrentPosition
 Keep a record of all the joints angles. More...
 
def AddGaitToSection
 Add a gait to current section. More...
 
def AddNewChangedModuleToFrame
 Add a module in the current section module list. More...
 
def EmptyTheContainer
 Clear current section. More...
 
def AddGaitToModule
 Add empty GaitEntry before the given gait to align all the gait that executes at the same time. More...
 
def FindLastPisitionOfACondition
 Find the last appearance of a condition string. More...
 

Public Attributes

 FrameID
 Section identity string.
 
 GaitEntries
 List of the GaitEntry in the current section.
 
 InitialPosition
 Liast of inital joint states.
 
 ModulesInThisFrame
 List of modules in this section.
 
 GaitStrListOfModule
 List of the gait strings in this section.
 
 GaitObjListOfModule
 List of GaitEntry object in this section.
 

Detailed Description

A class that stores a group of gaits which can finish a small task.

Constructor & Destructor Documentation

def Section.Section.__init__ (   self,
  frame_id 
)

Constructor.

Parameters
selfObject pointer
frame_idSection identity string

Member Function Documentation

def Section.Section.AddGaitToModule (   self,
  a_gait,
  list_idx = -1 
)

Add empty GaitEntry before the given gait to align all the gait that executes at the same time.

Parameters
selfObject pointer
a_gaitA GaitEntry object
list_idxIndex of the position of the given gait
def Section.Section.AddGaitToSection (   self,
  a_gait 
)

Add a gait to current section.

Parameters
selfObject pointer
a_gaitA GaitEntry object
def Section.Section.AddNewChangedModuleToFrame (   self,
  a_gait 
)

Add a module in the current section module list.

Parameters
selfObject pointer
a_gaitAn GaitEntry object
def Section.Section.EmptyTheContainer (   self)

Clear current section.

Parameters
selfObject pointer
def Section.Section.FindLastPisitionOfACondition (   self,
  a_condition 
)

Find the last appearance of a condition string.

Parameters
selfObject pointer
a_conditionA condition string
Returns
The position of the last GaitEntry object
def Section.Section.RecordCurrentPosition (   self,
  module_list 
)

Keep a record of all the joints angles.

Parameters
selfObject pointer
module_listA list of Module object

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