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

Class DynamixelMemMap

source code


DESCRIPTION:
  Abstract superclass of all DynamixelMemMap classes. Provides
  shared functionality, while the concrete subclasses provide the
  actual memory map details.

  NOTE: this is intentionally an "old style class", to ensure that tab completion
    does not list a gazzilion irrelevant builtin methods.

RESPONSIBILITIES: 
  -- Provide human readable names for addresses in the dynamixel control table
OWNERSHIP:
  -- owned by the dynamixel module
THEORY: 
  -- create a dictionary _ADDR_DCR_ that holds the memory location, name, and type (B, >H)
     generate a set of properties with the commmand name and it equivalent location

Class Methods [hide private]
 
_prepare(cls)
(protected) Set up all the _ADDR_DCR names as class attributes This classmethod must be called on every subclass after it is declared
source code
Class Variables [hide private]
  _ADDR_DCR = {'\x00':("model", "<H")}
  MODEL_ADDR = pack('B', 0)
Address of model number, shared for all models
  MODEL_ADDR_LEN = 2
Length of model number