Public Member Functions | Public Attributes
OpenRTM_aist.examples.NXTRTC.NXTBrick20.NXTBrick Class Reference

List of all members.

Public Member Functions

def __init__
def close
def getMotors
def getSensors
def resetPosition
def setMotors

Public Attributes

 motors
 sensors
 sock

Detailed Description

Definition at line 10 of file NXTBrick20.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Resetting encoders of NXT motors

Definition at line 38 of file NXTBrick20.py.

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.


Member Data Documentation

Definition at line 15 of file NXTBrick20.py.

Definition at line 15 of file NXTBrick20.py.

Definition at line 15 of file NXTBrick20.py.


The documentation for this class was generated from the following file:


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:29