Functions | Variables
serial_read Namespace Reference

Functions

def ByteToHex (byteStr)
 
def ByteToInt (byteStr)
 
def HexMsgLen (data)
 
def HexToByte (hexStr)
 
def HexTopID (topic_num)
 
def LCheckSum (data)
 
def signal_handler (signal, frame)
 
def TCheckSum (topic_id, data)
 

Variables

 buffer_size
 
 data
 
float freq = 1.0
 
 l_checksum = LCheckSum(sub_topic_data)
 
 len_high
 
 len_low
 
string MD5_Int32 = "da5909fbe378aeaf85e547e830cc1bb7"
 
string MD5_Int8 = "27ffa0c9c4b8fb8492252bcad9e5c57b"
 
string MD5_ServoMsg = "1bdf7d827c361b33ed3b4360c70ce4c0"
 
string MD5_ServoMsgArray = "320c8def1674d51423fb942c56a6619b"
 
string MD5_String = "992ce8a1687cec8c8bd883ec73ca41d1"
 
 md5sum
 
 message_type
 
 msg_data = pub_msg_buffer.getvalue()
 
 pub_buffer = StringIO.StringIO()
 
bool pub_init = False
 
 pub_msg = String()
 
 pub_msg_buffer = StringIO.StringIO()
 
 pub_topic_data = pub_buffer.getvalue()
 
 pub_topic_info = TopicInfo()
 
bool ready = False
 
string ROS_ACK = "\xff\xfe\x00\x00\xff\x00\x00\xff"
 
string ROS_RESP = "\xff\xfe"
 
 s_header = ByteToHex(ROS_RESP)+len_low+len_high+l_checksum+tid_low+tid_high
 
 ser
 
 sub_buffer = StringIO.StringIO()
 
bool sub_init = False
 
 sub_topic_data = sub_buffer.getvalue()
 
 sub_topic_info = TopicInfo()
 
 t_checksum = TCheckSum(TopicInfo.ID_SUBSCRIBER, sub_topic_data)
 
int test_pub_id = 0
 
int test_sub_id = 1
 
 tid_high
 
 tid_low
 
 topic_id
 
 topic_name
 
 x = ser.readline()
 

Function Documentation

def serial_read.ByteToHex (   byteStr)

Definition at line 33 of file serial_read.py.

def serial_read.ByteToInt (   byteStr)

Definition at line 38 of file serial_read.py.

def serial_read.HexMsgLen (   data)

Definition at line 66 of file serial_read.py.

def serial_read.HexToByte (   hexStr)

Definition at line 46 of file serial_read.py.

def serial_read.HexTopID (   topic_num)

Definition at line 72 of file serial_read.py.

def serial_read.LCheckSum (   data)

Definition at line 56 of file serial_read.py.

def serial_read.signal_handler (   signal,
  frame 
)

Definition at line 25 of file serial_read.py.

def serial_read.TCheckSum (   topic_id,
  data 
)

Definition at line 61 of file serial_read.py.

Variable Documentation

serial_read.buffer_size

Definition at line 99 of file serial_read.py.

serial_read.data

Definition at line 102 of file serial_read.py.

float serial_read.freq = 1.0

Definition at line 22 of file serial_read.py.

serial_read.l_checksum = LCheckSum(sub_topic_data)

Definition at line 157 of file serial_read.py.

serial_read.len_high

Definition at line 154 of file serial_read.py.

serial_read.len_low

Definition at line 154 of file serial_read.py.

string serial_read.MD5_Int32 = "da5909fbe378aeaf85e547e830cc1bb7"

Definition at line 18 of file serial_read.py.

string serial_read.MD5_Int8 = "27ffa0c9c4b8fb8492252bcad9e5c57b"

Definition at line 17 of file serial_read.py.

string serial_read.MD5_ServoMsg = "1bdf7d827c361b33ed3b4360c70ce4c0"

Definition at line 19 of file serial_read.py.

string serial_read.MD5_ServoMsgArray = "320c8def1674d51423fb942c56a6619b"

Definition at line 20 of file serial_read.py.

string serial_read.MD5_String = "992ce8a1687cec8c8bd883ec73ca41d1"

Definition at line 16 of file serial_read.py.

serial_read.md5sum

Definition at line 98 of file serial_read.py.

serial_read.message_type

Definition at line 97 of file serial_read.py.

serial_read.msg_data = pub_msg_buffer.getvalue()

Definition at line 124 of file serial_read.py.

serial_read.pub_buffer = StringIO.StringIO()

Definition at line 117 of file serial_read.py.

bool serial_read.pub_init = False

Definition at line 133 of file serial_read.py.

serial_read.pub_msg = String()

Definition at line 101 of file serial_read.py.

serial_read.pub_msg_buffer = StringIO.StringIO()

Definition at line 122 of file serial_read.py.

serial_read.pub_topic_data = pub_buffer.getvalue()

Definition at line 119 of file serial_read.py.

serial_read.pub_topic_info = TopicInfo()

Definition at line 94 of file serial_read.py.

bool serial_read.ready = False

Definition at line 132 of file serial_read.py.

string serial_read.ROS_ACK = "\xff\xfe\x00\x00\xff\x00\x00\xff"

Definition at line 11 of file serial_read.py.

string serial_read.ROS_RESP = "\xff\xfe"

Definition at line 13 of file serial_read.py.

Definition at line 159 of file serial_read.py.

serial_read.ser
Initial value:
1 = serial.Serial(
2  port='/dev/ttyUSB0',
3  baudrate = 115200,
4  parity=serial.PARITY_NONE,
5  stopbits=serial.STOPBITS_ONE,
6  bytesize=serial.EIGHTBITS,
7  timeout=0
8 )

Definition at line 84 of file serial_read.py.

serial_read.sub_buffer = StringIO.StringIO()

Definition at line 127 of file serial_read.py.

bool serial_read.sub_init = False

Definition at line 134 of file serial_read.py.

serial_read.sub_topic_data = sub_buffer.getvalue()

Definition at line 129 of file serial_read.py.

serial_read.sub_topic_info = TopicInfo()

Definition at line 105 of file serial_read.py.

serial_read.t_checksum = TCheckSum(TopicInfo.ID_SUBSCRIBER, sub_topic_data)

Definition at line 158 of file serial_read.py.

int serial_read.test_pub_id = 0

Definition at line 136 of file serial_read.py.

int serial_read.test_sub_id = 1

Definition at line 137 of file serial_read.py.

serial_read.tid_high

Definition at line 156 of file serial_read.py.

serial_read.tid_low

Definition at line 156 of file serial_read.py.

serial_read.topic_id

Definition at line 95 of file serial_read.py.

serial_read.topic_name

Definition at line 96 of file serial_read.py.

serial_read.x = ser.readline()

Definition at line 142 of file serial_read.py.



ros_marty
Author(s): Alejandro Bordallo
autogenerated on Fri Jul 21 2017 14:51:45