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.
def OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.close |
( |
|
self | ) |
|
Finalizing connection with NXT brick.
Definition at line 32 of file NXTBrick20.py.
def OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.getMotors |
( |
|
self | ) |
|
Getting motors' angle (degrees)
Definition at line 55 of file NXTBrick20.py.
def OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.getSensors |
( |
|
self | ) |
|
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.
OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.motors |
OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.sensors |
OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick.sock |
The documentation for this class was generated from the following file: