Public Member Functions | Public Attributes | List of all members
OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick Class Reference

Public Member Functions

def __init__ (self, bsock=None)
 
def close (self)
 
def getMotors (self)
 
def getSensors (self)
 
def resetPosition (self, relative=0)
 
def setMotors (self, vels)
 

Public Attributes

 motors
 
 sensors
 
 sock
 

Detailed Description

Definition at line 10 of file NXTBrick.py.

Constructor & Destructor Documentation

def OpenRTM_aist.examples.NXTRTC.NXTBrick.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 NXTBrick.py.

Member Function Documentation

def OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.close (   self)
Finalizing connection with NXT brick.

Definition at line 32 of file NXTBrick.py.

def OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.getMotors (   self)
Getting motors' angle (degrees)

Definition at line 59 of file NXTBrick.py.

def OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.getSensors (   self)
Getting sensors' values. Data will be returned as array.

Definition at line 83 of file NXTBrick.py.

def OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.resetPosition (   self,
  relative = 0 
)
Resetting encoders of NXT motors

Definition at line 38 of file NXTBrick.py.

def OpenRTM_aist.examples.NXTRTC.NXTBrick.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 NXTBrick.py.

Member Data Documentation

OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.motors

Definition at line 22 of file NXTBrick.py.

OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.sensors

Definition at line 26 of file NXTBrick.py.

OpenRTM_aist.examples.NXTRTC.NXTBrick.NXTBrick.sock

Definition at line 18 of file NXTBrick.py.


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


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:36