kusanagi
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
kusanagi.shell.plant.SerialPlant Class Reference
Inheritance diagram for kusanagi.shell.plant.SerialPlant:
Inheritance graph
[legend]
Collaboration diagram for kusanagi.shell.plant.SerialPlant:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def apply_control
 
def step
 
def state_from_serial
 
def reset_state
 
def stop
 
- Public Member Functions inherited from kusanagi.shell.plant.Plant
def __init__
 
def apply_control
 
def get_state
 
def run
 
def start
 
def stop
 
def step
 
def reset_state
 

Public Attributes

 port
 
 baud_rate
 
 serial
 
 state_indices
 
 U_scaling
 
 t
 
 u
 
- Public Attributes inherited from kusanagi.shell.plant.Plant
 name
 
 params
 
 x0
 
 S0
 
 x
 
 u
 
 t
 
 dt
 
 noise
 
 async
 
 plant_thread
 

Static Public Attributes

list cmds = ['RESET_STATE','GET_STATE','APPLY_CONTROL','CMD_OK','STATE']
 
tuple cmds = dict(zip(cmds,[str(i) for i in xrange(len(cmds))]))
 

Constructor & Destructor Documentation

def kusanagi.shell.plant.SerialPlant.__init__ (   self,
  params,
  x0,
  S0 = None,
  dt = 0.1,
  noise = None,
  name = 'SerialPlant',
  baud_rate = 115200,
  port = '/dev/ttyACM0',
  state_indices = None,
  maxU = None 
)

Member Function Documentation

def kusanagi.shell.plant.SerialPlant.apply_control (   self,
  u 
)
def kusanagi.shell.plant.SerialPlant.reset_state (   self)
def kusanagi.shell.plant.SerialPlant.state_from_serial (   self)
def kusanagi.shell.plant.SerialPlant.step (   self,
  dt = None 
)
def kusanagi.shell.plant.SerialPlant.stop (   self)

Member Data Documentation

kusanagi.shell.plant.SerialPlant.baud_rate
list kusanagi.shell.plant.SerialPlant.cmds = ['RESET_STATE','GET_STATE','APPLY_CONTROL','CMD_OK','STATE']
static
tuple kusanagi.shell.plant.SerialPlant.cmds = dict(zip(cmds,[str(i) for i in xrange(len(cmds))]))
static
kusanagi.shell.plant.SerialPlant.port
kusanagi.shell.plant.SerialPlant.serial
kusanagi.shell.plant.SerialPlant.state_indices
kusanagi.shell.plant.SerialPlant.t
kusanagi.shell.plant.SerialPlant.u
kusanagi.shell.plant.SerialPlant.U_scaling

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