RAPP Platform  v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
 All Classes Namespaces Files Functions Variables Macros
mysql_wrapper.MySQLdbWrapper Class Reference

The mysql wrapper ros node. More...

Public Member Functions

def __init__
 Default contructor. More...
 
def addStoreTokenToDevice
 Implements the addStoreTokenToDevice service main function. More...
 
def addStoreTokenToDeviceDataHandler
 The addStoreTokenToDeviceSrv service callback. More...
 
def checkActiveApplicationToken
 Implements the checkActiveRobotSession service main function. More...
 
def checkActiveApplicationTokenDataHandler
 The checkActiveApplicationTokenSrv service callback. More...
 
def checkActiveRobotSession
 Implements the checkActiveRobotSession service main function. More...
 
def checkActiveRobotSessionDataHandler
 The checkActiveRobotSessionSrv service callback. More...
 
def checkConnection
 Checks connectivity to the DB. More...
 
def checkIfUserExists
 Implements the checkIfUserExists service main function. More...
 
def checkIfUserExistsDataHandler
 The checkIfUserExistsSrv service callback. More...
 
def createNewApplicationToken
 Implements the createNewApplicationToken service main function. More...
 
def createNewApplicationTokenDataHandler
 The createNewApplicationTokenSrv service callback. More...
 
def createNewCloudAgent
 Implements the createNewCloudAgent service main function. More...
 
def createNewCloudAgentDataHandler
 The createNewCloudAgentSrv service callback. More...
 
def createNewCloudAgentService
 Implements the createNewCloudAgentService service main function. More...
 
def createNewCloudAgentServiceDataHandler
 The createNewCloudAgentServiceSrv service callback. More...
 
def createNewPlatformUser
 Implements the createNewPlatformUser service main function. More...
 
def createNewPlatformUserDataHandler
 The createNewPlatformUserSrv service callback. More...
 
def getCloudAgentServiceTypeAndHostPort
 Implements the getCloudAgentServiceTypeAndHostPort service main function. More...
 
def getCloudAgentServiceTypeAndHostPortDataHandler
 The getCloudAgentServiceTypeAndHostPortSrv service callback. More...
 
def getLogin
 Loads login details from file. More...
 
def getTableColumnNames
 Gets the columns of the table. More...
 
def getUserLanguage
 Implements the getUserLanguage service main function. More...
 
def getUserLanguageDataHandler
 The getUserLanguage service callback. More...
 
def getUsernameAssociatedWithApplicationToken
 Implements the getUsernameAssociatedWithApplicationToken service main function. More...
 
def getUsernameAssociatedWithApplicationTokenDataHandler
 The getUsernameAssociatedWithApplicationTokenSrv service callback. More...
 
def getUserOntologyAlias
 Implements the getUserOntologyAlias service main function. More...
 
def getUserOntologyAliasDataHandler
 The getUserOntologyAlias service callback. More...
 
def getUserPassword
 Implements the getUserPassword service main function. More...
 
def getUserPasswordDataHandler
 The getUserPasswordSrv service callback. More...
 
def registerNewTokenDataHandler
 The registerNewTokenSrv service callback. More...
 
def registerUserOntologyAlias
 Implements the registerUserOntologyAlias service main function. More...
 
def registerUserOntologyAliasDataHandler
 The registerUserOntologyAliasSrv service callback. More...
 
def removePlatformUser
 Implements the removePlatformUser service main function. More...
 
def removePlatformUserDataHandler
 The removePlatformUserSrv service callback. More...
 
def validateExistingPlatformDeviceToken
 Implements the validateExistingPlatformDeviceToken service main function. More...
 
def validateExistingPlatformDeviceTokenDataHandler
 The validateExistingPlatformDeviceTokenSrv service callback. More...
 
def validateUserRole
 Implements the validateUserRole service main function. More...
 
def validateUserRoleDataHandler
 The validateUserRoleSrv service callback. More...
 

Public Attributes

 serv
 
 serv_topic
 

Detailed Description

The mysql wrapper ros node.

Definition at line 79 of file mysql_wrapper.py.

Constructor & Destructor Documentation

def mysql_wrapper.MySQLdbWrapper.__init__ (   self)

Default contructor.

Declares the callbacks of the node's services

Definition at line 84 of file mysql_wrapper.py.

Member Function Documentation

def mysql_wrapper.MySQLdbWrapper.addStoreTokenToDevice (   self,
  req 
)

Implements the addStoreTokenToDevice service main function.

Parameters
req[rapp_platform_ros_communications::addStoreTokenToDeviceSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::addStoreTokenToDeviceSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 507 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.addStoreTokenToDeviceDataHandler (   self,
  req 
)

The addStoreTokenToDeviceSrv service callback.

Parameters
req[rapp_platform_ros_communications::addStoreTokenToDeviceSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::addStoreTokenToDeviceSrvResponse::Response&] The ROS service response

Definition at line 924 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkActiveApplicationToken (   self,
  req 
)

Implements the checkActiveRobotSession service main function.

Parameters
req[rapp_platform_ros_communications::checkActiveRobotSessionSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::checkActiveRobotSessionSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 613 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkActiveApplicationTokenDataHandler (   self,
  req 
)

The checkActiveApplicationTokenSrv service callback.

Parameters
req[rapp_platform_ros_communications::checkActiveApplicationTokenSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::checkActiveApplicationTokenSrvRequest::Response&] The ROS service response

Definition at line 908 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkActiveRobotSession (   self,
  req 
)

Implements the checkActiveRobotSession service main function.

Parameters
req[rapp_platform_ros_communications::checkActiveRobotSessionSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::checkActiveRobotSessionSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 576 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkActiveRobotSessionDataHandler (   self,
  req 
)

The checkActiveRobotSessionSrv service callback.

Parameters
req[rapp_platform_ros_communications::checkActiveRobotSessionSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::checkActiveRobotSessionSrvResponse::Response&] The ROS service response

Definition at line 916 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkConnection (   self)

Checks connectivity to the DB.

Returns
[ void ] Connection performed successfully

Definition at line 821 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkIfUserExists (   self,
  req 
)

Implements the checkIfUserExists service main function.

Parameters
req[rapp_platform_ros_communications::checkIfUserExistsSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::checkIfUserExistsSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 291 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.checkIfUserExistsDataHandler (   self,
  req 
)

The checkIfUserExistsSrv service callback.

Parameters
req[rapp_platform_ros_communications::checkIfUserExistsSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::checkIfUserExistsSrvRequest::Response&] The ROS service response

Definition at line 868 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewApplicationToken (   self,
  req 
)

Implements the createNewApplicationToken service main function.

Parameters
req[rapp_platform_ros_communications::createNewApplicationTokenSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewApplicationTokenSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 472 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewApplicationTokenDataHandler (   self,
  req 
)

The createNewApplicationTokenSrv service callback.

Parameters
req[rapp_platform_ros_communications::createNewApplicationTokenSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewApplicationTokenSrvRequest::Response&] The ROS service response

Definition at line 900 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewCloudAgent (   self,
  req 
)

Implements the createNewCloudAgent service main function.

Parameters
req[rapp_platform_ros_communications::createNewCloudAgentSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewCloudAgentSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 688 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewCloudAgentDataHandler (   self,
  req 
)

The createNewCloudAgentSrv service callback.

Parameters
req[rapp_platform_ros_communications::createNewCloudAgentSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewCloudAgentSrvResponse::Response&] The ROS service response

Definition at line 956 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewCloudAgentService (   self,
  req 
)

Implements the createNewCloudAgentService service main function.

Parameters
req[rapp_platform_ros_communications::createNewCloudAgentServiceSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewCloudAgentServiceSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 723 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewCloudAgentServiceDataHandler (   self,
  req 
)

The createNewCloudAgentServiceSrv service callback.

Parameters
req[rapp_platform_ros_communications::createNewCloudAgentServiceSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewCloudAgentServiceSrvResponse::Response&] The ROS service response

Definition at line 964 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewPlatformUser (   self,
  req 
)

Implements the createNewPlatformUser service main function.

Parameters
req[rapp_platform_ros_communications::createNewPlatformUserSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewPlatformUserSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 402 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.createNewPlatformUserDataHandler (   self,
  req 
)

The createNewPlatformUserSrv service callback.

Parameters
req[rapp_platform_ros_communications::createNewPlatformUserSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createNewPlatformUserSrvRequest::Response&] The ROS service response

Definition at line 892 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getCloudAgentServiceTypeAndHostPort (   self,
  req 
)

Implements the getCloudAgentServiceTypeAndHostPort service main function.

Parameters
req[rapp_platform_ros_communications::getCloudAgentServiceTypeAndHostPortSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getCloudAgentServiceTypeAndHostPortSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 759 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getCloudAgentServiceTypeAndHostPortDataHandler (   self,
  req 
)

The getCloudAgentServiceTypeAndHostPortSrv service callback.

Parameters
req[rapp_platform_ros_communications::getCloudAgentServiceTypeAndHostPortSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getCloudAgentServiceTypeAndHostPortSrvResponse::Response&] The ROS service response

Definition at line 972 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getLogin (   self)

Loads login details from file.

Returns
db_username [string] the login username
db_password [string] the login password

Definition at line 811 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getTableColumnNames (   self,
  tblName 
)

Gets the columns of the table.

Parameters
tblName[string] the name of the table
Returns
Columns [list] the columns of the table

Definition at line 794 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUserLanguage (   self,
  req 
)

Implements the getUserLanguage service main function.

Parameters
req[rapp_platform_ros_communications::getUserLanguageSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUserLanguageSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 252 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUserLanguageDataHandler (   self,
  req 
)

The getUserLanguage service callback.

Parameters
req[rapp_platform_ros_communications::getUserLanguageSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUserLanguageSrvRequest::Response&] The ROS service response

Definition at line 852 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUsernameAssociatedWithApplicationToken (   self,
  req 
)

Implements the getUsernameAssociatedWithApplicationToken service main function.

Parameters
req[rapp_platform_ros_communications::getUsernameAssociatedWithApplicationTokenSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUsernameAssociatedWithApplicationTokenSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 365 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUsernameAssociatedWithApplicationTokenDataHandler (   self,
  req 
)

The getUsernameAssociatedWithApplicationTokenSrv service callback.

Parameters
req[rapp_platform_ros_communications::getUsernameAssociatedWithApplicationTokenSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUsernameAssociatedWithApplicationTokenSrvRequest::Response&] The ROS service response

Definition at line 884 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUserOntologyAlias (   self,
  req 
)

Implements the getUserOntologyAlias service main function.

Parameters
req[rapp_platform_ros_communications::getUserOntologyAliasSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUserOntologyAliasSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 179 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUserOntologyAliasDataHandler (   self,
  req 
)

The getUserOntologyAlias service callback.

Parameters
req[rapp_platform_ros_communications::getUserOntologyAliasSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUserOntologyAliasSrvRequest::Response&] The ROS service response

Definition at line 836 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUserPassword (   self,
  req 
)

Implements the getUserPassword service main function.

Parameters
req[rapp_platform_ros_communications::getUserPasswordSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUserPasswordSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 328 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.getUserPasswordDataHandler (   self,
  req 
)

The getUserPasswordSrv service callback.

Parameters
req[rapp_platform_ros_communications::getUserPasswordSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::getUserPasswordSrvRequest::Response&] The ROS service response

Definition at line 876 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.registerNewTokenDataHandler (   self,
  req 
)

The registerNewTokenSrv service callback.

Parameters
req[rapp_platform_ros_communications::registerNewTokenSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::registerNewTokenSrvRequest::Response&] The ROS service response

Definition at line 860 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.registerUserOntologyAlias (   self,
  req 
)

Implements the registerUserOntologyAlias service main function.

Parameters
req[rapp_platform_ros_communications::registerUserOntologyAliasSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::registerUserOntologyAliasSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 216 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.registerUserOntologyAliasDataHandler (   self,
  req 
)

The registerUserOntologyAliasSrv service callback.

Parameters
req[rapp_platform_ros_communications::registerUserOntologyAliasSrvResponse::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::registerUserOntologyAliasSrvRequest::Response&] The ROS service response

Definition at line 844 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.removePlatformUser (   self,
  req 
)

Implements the removePlatformUser service main function.

Parameters
req[rapp_platform_ros_communications::removePlatformUserSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::removePlatformUserSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 437 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.removePlatformUserDataHandler (   self,
  req 
)

The removePlatformUserSrv service callback.

Parameters
req[rapp_platform_ros_communications::removePlatformUserSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::removePlatformUserSrvResponse::Response&] The ROS service response

Definition at line 948 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.validateExistingPlatformDeviceToken (   self,
  req 
)

Implements the validateExistingPlatformDeviceToken service main function.

Parameters
req[rapp_platform_ros_communications::validateExistingPlatformDeviceTokenSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::validateExistingPlatformDeviceTokenSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 650 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.validateExistingPlatformDeviceTokenDataHandler (   self,
  req 
)

The validateExistingPlatformDeviceTokenSrv service callback.

Parameters
req[rapp_platform_ros_communications::validateExistingPlatformDeviceTokenSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::validateExistingPlatformDeviceTokenSrvResponse::Response&] The ROS service response

Definition at line 940 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.validateUserRole (   self,
  req 
)

Implements the validateUserRole service main function.

Parameters
req[rapp_platform_ros_communications::validateUserRoleSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::validateUserRoleSrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionmdbError

Definition at line 543 of file mysql_wrapper.py.

def mysql_wrapper.MySQLdbWrapper.validateUserRoleDataHandler (   self,
  req 
)

The validateUserRoleSrv service callback.

Parameters
req[rapp_platform_ros_communications::validateUserRoleSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::validateUserRoleSrvResponse::Response&] The ROS service response

Definition at line 932 of file mysql_wrapper.py.

Member Data Documentation

mysql_wrapper.MySQLdbWrapper.serv

Definition at line 89 of file mysql_wrapper.py.

mysql_wrapper.MySQLdbWrapper.serv_topic

Definition at line 86 of file mysql_wrapper.py.


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