DataPortStatus.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: euc-jp -*-
3 
4 
18 
19 
20 
48  """
49  """
50 
51  def __init__(self):
52  pass
53 
54 
140  PORT_OK = 0
141  PORT_ERROR = 1
142  BUFFER_ERROR = 2
143  BUFFER_FULL = 3
144  BUFFER_EMPTY = 4
145  BUFFER_TIMEOUT = 5
146  SEND_FULL = 6
147  SEND_TIMEOUT = 7
148  RECV_EMPTY = 8
149  RECV_TIMEOUT = 9
150  INVALID_ARGS = 10
151  PRECONDITION_NOT_MET = 11
152  CONNECTION_LOST = 12
153  UNKNOWN_ERROR = 13
154 
155 
178  def toString(status):
179  str = ["PORT_OK",
180  "PORT_ERROR",
181  "BUFFER_ERROR",
182  "BUFFER_FULL",
183  "BUFFER_EMPTY",
184  "BUFFER_TIMEOUT",
185  "SEND_FULL",
186  "SEND_TIMEOUT",
187  "RECV_EMPTY",
188  "RECV_TIMEOUT",
189  "INVALID_ARGS",
190  "PRECONDITION_NOT_MET",
191  "CONNECTION_LOST",
192  "UNKNOWN_ERROR"]
193  return str[status]
194 
195  toString = staticmethod(toString)


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:34