Package ckbot :: Module dynamixel :: Class Request
[hide private]
[frames] | no frames]

Class Request

source code


( internal concrete )
DESCRIPTION:
-- The Request message class represents holds information about a message
   request
RESPONSIBILITIES:
-- hold nid, cmd, and params of message
-- keep track of retries remaining
-- hold a timestamp 
-- hold a promise to be updated after dynamixel.Protocol.update()
OWNERSHIP:
-- owned by the dynamixel module
THEORY:
-- An Request object serves a way to keep track of requests. In the case
   of the dynamixel.Protocol it is appended to a queue and handled at update
CONSTRAINTS:
-- Request objects are specific to those messages handled by the 
   dynamixel.Protocol and dynamixel.Bus

Instance Methods [hide private]
 
__init__(self, nid, cmd, pars='', ts=None, tout=0.05, attempts=4)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setError(self, msg) source code
 
setResponse(self, dat) source code
 
sendArgs(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, nid, cmd, pars='', ts=None, tout=0.05, attempts=4)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)