Public Member Functions | |
def | __init__ |
def | close |
def | getMotors |
def | getSensors |
def | resetPosition |
def | setMotors |
Public Attributes | |
motors | |
sensors | |
sock |
Definition at line 10 of file NXTBrick20.py.
def OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.__init__ | ( | self, | |
bsock = None |
|||
) |
Ctor Connecting to NXT brick and creating motor object, sensor object and so on. Motor encoders will be reset.
Definition at line 11 of file NXTBrick20.py.
Finalizing connection with NXT brick.
Definition at line 32 of file NXTBrick20.py.
Getting motors' angle (degrees)
Definition at line 55 of file NXTBrick20.py.
Getting sensors' values. Data will be returned as array.
Definition at line 79 of file NXTBrick20.py.
def OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.resetPosition | ( | self, | |
relative = 0 |
|||
) |
Resetting encoders of NXT motors
Definition at line 38 of file NXTBrick20.py.
def OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.setMotors | ( | self, | |
vels | |||
) |
This operation receives array and set them as motor power. If the number of vels items does not match with the number of motors, smaller number of them will be taken and set respectively.
Definition at line 45 of file NXTBrick20.py.
Definition at line 15 of file NXTBrick20.py.
Definition at line 15 of file NXTBrick20.py.
Definition at line 15 of file NXTBrick20.py.