Public Member Functions | Public Attributes | Static Public Attributes | List of all members
patlite.Patlite Class Reference
Inheritance diagram for patlite.Patlite:
Inheritance graph
[legend]

Public Member Functions

def __enter__ (self)
 
def __exit__ (self, exc_type, exc_value, traceback)
 
def __init__ (self, host, port=10000, timeout=1)
 
def blue (self, value)
 
def buzzer (self, value)
 
def clear (self)
 
def close (self)
 
def green (self, value)
 
def open (self)
 
def read (self)
 
def red (self, value)
 
def white (self, value)
 
def write (self, state=None)
 
def yellow (self, value)
 

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.

patlite.Patlite.bufsize

Definition at line 127 of file patlite.py.

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

Definition at line 121 of file patlite.py.

patlite.Patlite.host

Definition at line 124 of file patlite.py.

string patlite.Patlite.NAK = '\x15'
static

Definition at line 115 of file patlite.py.

patlite.Patlite.port

Definition at line 125 of file patlite.py.

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

Definition at line 118 of file patlite.py.

patlite.Patlite.sock

Definition at line 128 of file patlite.py.

patlite.Patlite.state

Definition at line 129 of file patlite.py.

patlite.Patlite.timeout

Definition at line 126 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 Wed Jul 10 2019 03:47:15