Variables | |
string | __author__ = 'Antons Rebguns' |
string | __copyright__ = 'Copyright (c) 2010-2011 Antons Rebguns' |
string | __email__ = 'anton@email.arizona.edu' |
string | __license__ = 'BSD' |
string | __maintainer__ = 'Antons Rebguns' |
args | |
baudrate = options.baud | |
default | |
string | desc_msg = 'Turns the torque of specified Dynamixel servo motor on or off.' |
dxl_io = dynamixel_io.DynamixelIO(port, baudrate) | |
string | epi_msg = 'Example: %s --port=/dev/ttyUSB1 --baud=57600 1 Off' |
help | |
metavar | |
motor_id = int(args[1]) | |
options | |
parser = OptionParser(usage=usage_msg, description=desc_msg, epilog=epi_msg) | |
port = options.port | |
torque_on = args[2] | |
type | |
string | usage_msg = 'Usage: %prog [options] ID [On|Off]' |
|
private |
Definition at line 37 of file set_torque.py.
|
private |
Definition at line 38 of file set_torque.py.
|
private |
Definition at line 42 of file set_torque.py.
|
private |
Definition at line 40 of file set_torque.py.
|
private |
Definition at line 41 of file set_torque.py.
set_torque.args |
Definition at line 64 of file set_torque.py.
set_torque.baudrate = options.baud |
Definition at line 71 of file set_torque.py.
set_torque.default |
Definition at line 59 of file set_torque.py.
string set_torque.desc_msg = 'Turns the torque of specified Dynamixel servo motor on or off.' |
Definition at line 55 of file set_torque.py.
Definition at line 76 of file set_torque.py.
Definition at line 56 of file set_torque.py.
set_torque.help |
Definition at line 60 of file set_torque.py.
set_torque.metavar |
Definition at line 59 of file set_torque.py.
set_torque.motor_id = int(args[1]) |
Definition at line 72 of file set_torque.py.
set_torque.options |
Definition at line 64 of file set_torque.py.
Definition at line 58 of file set_torque.py.
set_torque.port = options.port |
Definition at line 70 of file set_torque.py.
bool set_torque.torque_on = args[2] |
Definition at line 73 of file set_torque.py.
set_torque.type |
Definition at line 61 of file set_torque.py.
string set_torque.usage_msg = 'Usage: %prog [options] ID [On|Off]' |
Definition at line 54 of file set_torque.py.