RoboAide
Project to improve a DIY robotic arm used for mobility assistance
Public Member Functions | Public Attributes | Private Attributes | List of all members
ui.RoboAide.Motor Class Reference

Public Member Functions

def __init__ (self, mainWindow=None, name="", goalPosition=0, status=False)
 
def setGoalPosition (self, pos)
 
def getGoalPosition (self)
 
def setCurrentPosition (self, pos)
 
def getCurrentPosition (self)
 
def setName (self, name)
 
def getName (self)
 
def setStatus (self, status)
 
def isEnabled (self)
 

Public Attributes

 mu
 

Private Attributes

 __name
 The main window of the ui. More...
 
 __goalPosition
 The goal position of the motor. More...
 
 __currentPosition
 The current position of the motor. More...
 
 __status
 The status of the motor. More...
 
 __window
 The main window of the ui. More...
 

Detailed Description

Class for a motor which has a position, a name and a status

Definition at line 728 of file RoboAide.py.

Constructor & Destructor Documentation

def ui.RoboAide.Motor.__init__ (   self,
  mainWindow = None,
  name = "",
  goalPosition = 0,
  status = False 
)
Initialization
:param mainWindow: The main window of the ui
:param name: The name of the motor
:param pos: The position of the motor
:param status: the status of the motor

Definition at line 732 of file RoboAide.py.

Member Function Documentation

def ui.RoboAide.Motor.getCurrentPosition (   self)
Accessor of the current position
:return: The current position of the motor

Definition at line 783 of file RoboAide.py.

def ui.RoboAide.Motor.getGoalPosition (   self)
Accessor of the goal position
:return: The goal position of the motor

Definition at line 764 of file RoboAide.py.

def ui.RoboAide.Motor.getName (   self)
Accessor of the name
:return: The name of the motor

Definition at line 801 of file RoboAide.py.

def ui.RoboAide.Motor.isEnabled (   self)
Accessor of the status
:return: The status

Definition at line 816 of file RoboAide.py.

def ui.RoboAide.Motor.setCurrentPosition (   self,
  pos 
)
Setter of the current position
:return: No return

Definition at line 774 of file RoboAide.py.

def ui.RoboAide.Motor.setGoalPosition (   self,
  pos 
)
Setter of the goal positon
:param pos: the position
:return: No return

Definition at line 752 of file RoboAide.py.

def ui.RoboAide.Motor.setName (   self,
  name 
)
Setter of the name of the motor
:param name: The name of the motor
:return: No return

Definition at line 793 of file RoboAide.py.

def ui.RoboAide.Motor.setStatus (   self,
  status 
)
Setter of the status of the motor
:param status: The status
:return: No return

Definition at line 808 of file RoboAide.py.

Member Data Documentation

ui.RoboAide.Motor.__currentPosition
private

The current position of the motor.

Definition at line 745 of file RoboAide.py.

ui.RoboAide.Motor.__goalPosition
private

The goal position of the motor.

Definition at line 743 of file RoboAide.py.

ui.RoboAide.Motor.__name
private

The main window of the ui.

Definition at line 741 of file RoboAide.py.

ui.RoboAide.Motor.__status
private

The status of the motor.

Definition at line 747 of file RoboAide.py.

ui.RoboAide.Motor.__window
private

The main window of the ui.

Definition at line 749 of file RoboAide.py.

ui.RoboAide.Motor.mu

Definition at line 750 of file RoboAide.py.


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