Script dynamixel_config_py :: Class dynamixelConfigurator
[hide private]
[frames] | no frames]

Class dynamixelConfigurator

source code

SOME USEFUL DESCRIPTION

Instance Methods [hide private]
 
__init__(self, argv, cur_nid=0x01, cfg=None)
Initialize the dynamixelConfigurator, the configurator reads in arguments and sets servo paramters accordingly
source code
 
usage(self) source code
 
parseArgs(self, argv)
Parse input arguments, handle if sensible
source code
 
_defaultPort(self) source code
 
scanAll(self)
A utility function that will scan all baudrates and return all nodes found.
source code
 
_safe_nid(self, nid)
Check to ensure that we don't try to overwrite another nid
source code
 
write_nid(self, nid_old, nid_new)
Write old node id to new node id
source code
 
write_config(self, nid, opaque=False)
Write node parameters as defined by config (cfg)
source code
 
read_type(self, nid)
Read the servo type, returned upon scanAll, ...
source code
 
_baudPlan(self)
(private) plan order in which baudrates are scanned
source code
 
scan(self, nid, timeout=0.5, retries=1)
Check if a given node id exists on any baudrates, returns nid if successful, None if not
source code
 
reset_nid(self)
Reset servo at cur_nid
source code
 
run(self)
Read in and parse arguments, perform necessary configuration
source code
Method Details [hide private]

scanAll(self)

source code 

A utility function that will scan all baudrates and return all nodes found. Exits upon completion

write_config(self, nid, opaque=False)

source code 

Write node parameters as defined by config (cfg)

INPUT:
  nid -- int -- node ID
  opaque -- bool -- if true, configuration is not shown on stdout

read_type(self, nid)

source code 

Read the servo type, returned upon scanAll, ... maybe scan?

scan(self, nid, timeout=0.5, retries=1)

source code 

Check if a given node id exists on any baudrates, returns nid if successful, None if not

INPUTS: p -- object -- protocol object nid -- int -- node id to scan for