Classes | Functions | Variables
arm Namespace Reference

Classes

class  Arm
 
class  ArmException
 

Functions

def ending_in (s, li)
 
def r12_serial_port (port)
 
def search_for_port (port_glob, req, expected_res)
 

Variables

int BAUD_RATE = 19200
 
 BYTE_SIZE = serial.EIGHTBITS
 
string CMD_ERROR = 'ABORTED'
 
string CMD_SUCCESS = 'OK'
 
string OUTPUT_ENCODING = 'latin_1'
 
string OUTPUT_STRIP_CHARS = string.whitespace + '>'
 
 PARITY = serial.PARITY_NONE
 
float READ_SLEEP_TIME = 0.05
 
float READ_TIMEOUT = 0.1
 
list RESPONSE_END_WORDS = [CMD_SUCCESS, CMD_ERROR]
 
 STOP_BITS = serial.STOPBITS_TWO
 

Function Documentation

◆ ending_in()

def arm.ending_in (   s,
  li 
)
If s ends with an element of the list li, that element will be
returned. If multiple elements match, the first will be returned. If no
elements match, returns None. 

Definition at line 80 of file arm.py.

◆ r12_serial_port()

def arm.r12_serial_port (   port)
Create a serial connect to the arm. 

Definition at line 37 of file arm.py.

◆ search_for_port()

def arm.search_for_port (   port_glob,
  req,
  expected_res 
)
Find the serial port the arm is connected to. 

Definition at line 43 of file arm.py.

Variable Documentation

◆ BAUD_RATE

int arm.BAUD_RATE = 19200

Definition at line 11 of file arm.py.

◆ BYTE_SIZE

arm.BYTE_SIZE = serial.EIGHTBITS

Definition at line 14 of file arm.py.

◆ CMD_ERROR

string arm.CMD_ERROR = 'ABORTED'

Definition at line 24 of file arm.py.

◆ CMD_SUCCESS

string arm.CMD_SUCCESS = 'OK'

Definition at line 23 of file arm.py.

◆ OUTPUT_ENCODING

string arm.OUTPUT_ENCODING = 'latin_1'

Definition at line 16 of file arm.py.

◆ OUTPUT_STRIP_CHARS

string arm.OUTPUT_STRIP_CHARS = string.whitespace + '>'

Definition at line 29 of file arm.py.

◆ PARITY

arm.PARITY = serial.PARITY_NONE

Definition at line 12 of file arm.py.

◆ READ_SLEEP_TIME

float arm.READ_SLEEP_TIME = 0.05

Definition at line 21 of file arm.py.

◆ READ_TIMEOUT

float arm.READ_TIMEOUT = 0.1

Definition at line 20 of file arm.py.

◆ RESPONSE_END_WORDS

list arm.RESPONSE_END_WORDS = [CMD_SUCCESS, CMD_ERROR]

Definition at line 25 of file arm.py.

◆ STOP_BITS

arm.STOP_BITS = serial.STOPBITS_TWO

Definition at line 13 of file arm.py.



r12_hardware_interface
Author(s): Andreas Hogstrand
autogenerated on Mon Feb 28 2022 23:20:33