Public Member Functions | Public Attributes | Static Public Attributes
patlite.Patlite Class Reference

List of all members.

Public Member Functions

def __enter__
def __exit__
def __init__
def blue
def buzzer
def clear
def close
def green
def open
def read
def red
def white
def write
def yellow

Public Attributes

 bufsize
 host
 port
 sock
 state
 timeout

Static Public Attributes

string ACK = '\x06'
string CLEAR = '\x58\x58\x43\x00\x00\x00'
string NAK = '\x15'
string READ = '\x58\x58\x47\x00\x00\x00'
string WRITE_HEADER = '\x58\x58\x53\x00\x00\x06'

Detailed Description

This is a controller for a network patlite 

Definition at line 108 of file patlite.py.


Constructor & Destructor Documentation

def patlite.Patlite.__init__ (   self,
  host,
  port = 10000,
  timeout = 1 
)

Definition at line 123 of file patlite.py.


Member Function Documentation

def patlite.Patlite.__enter__ (   self)

Definition at line 131 of file patlite.py.

def patlite.Patlite.__exit__ (   self,
  exc_type,
  exc_value,
  traceback 
)

Definition at line 134 of file patlite.py.

def patlite.Patlite.blue (   self,
  value 
)

Definition at line 195 of file patlite.py.

def patlite.Patlite.buzzer (   self,
  value 
)

Definition at line 205 of file patlite.py.

def patlite.Patlite.clear (   self)

Definition at line 168 of file patlite.py.

def patlite.Patlite.close (   self)

Definition at line 143 of file patlite.py.

def patlite.Patlite.green (   self,
  value 
)

Definition at line 190 of file patlite.py.

def patlite.Patlite.open (   self)

Definition at line 138 of file patlite.py.

def patlite.Patlite.read (   self)

Definition at line 159 of file patlite.py.

def patlite.Patlite.red (   self,
  value 
)

Definition at line 180 of file patlite.py.

def patlite.Patlite.white (   self,
  value 
)

Definition at line 200 of file patlite.py.

def patlite.Patlite.write (   self,
  state = None 
)

Definition at line 146 of file patlite.py.

def patlite.Patlite.yellow (   self,
  value 
)

Definition at line 185 of file patlite.py.


Member Data Documentation

string patlite.Patlite::ACK = '\x06' [static]

Definition at line 114 of file patlite.py.

Definition at line 123 of file patlite.py.

string patlite.Patlite::CLEAR = '\x58\x58\x43\x00\x00\x00' [static]

Definition at line 121 of file patlite.py.

Definition at line 123 of file patlite.py.

string patlite.Patlite::NAK = '\x15' [static]

Definition at line 115 of file patlite.py.

Definition at line 123 of file patlite.py.

string patlite.Patlite::READ = '\x58\x58\x47\x00\x00\x00' [static]

Definition at line 118 of file patlite.py.

Definition at line 123 of file patlite.py.

Definition at line 123 of file patlite.py.

Definition at line 123 of file patlite.py.

string patlite.Patlite::WRITE_HEADER = '\x58\x58\x53\x00\x00\x06' [static]

Definition at line 112 of file patlite.py.


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


rospatlite
Author(s): Takuya Nakaoka
autogenerated on Sat Sep 9 2017 02:33:41