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
image_registration_to_ontology.ImageRegistrationToOntology Class Reference

Contains the necessary functions for registering images to the ontology. More...

Public Member Functions

def getUserOntologyAlias
 Gets the users ontology alias and if it doesnt exist it creates it. More...
 
def registerImage
 Implements the getCloudAgentServiceTypeAndHostPort service main function. More...
 
def registerImageToOntology
 Calls the knowrob_wrapper service that registers the image to the ontology. More...
 

Detailed Description

Contains the necessary functions for registering images to the ontology.

Definition at line 44 of file image_registration_to_ontology.py.

Member Function Documentation

def image_registration_to_ontology.ImageRegistrationToOntology.getUserOntologyAlias (   self,
  username 
)

Gets the users ontology alias and if it doesnt exist it creates it.

Parameters
username[string] The user's username
Returns
ontologyAlias [string] The user's ontology alias
Exceptions
ExceptionAppError

Definition at line 93 of file image_registration_to_ontology.py.

def image_registration_to_ontology.ImageRegistrationToOntology.registerImage (   self,
  req 
)

Implements the getCloudAgentServiceTypeAndHostPort service main function.

Parameters
req[rapp_platform_ros_communications::registerImageToOntologySrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::registerImageToOntologySrvResponse::Response&] The ROS service response
Exceptions
ExceptionIndexError
ExceptionIOError
ExceptionAppError
ExceptionKeyError

Definition at line 54 of file image_registration_to_ontology.py.

def image_registration_to_ontology.ImageRegistrationToOntology.registerImageToOntology (   self,
  req,
  baseDestinationFolder 
)

Calls the knowrob_wrapper service that registers the image to the ontology.

Parameters
req[rapp_platform_ros_communications::registerImageToOntologySrvRequest::Request&] The ROS service request
baseDestinationFolder[string] The path to the image
Returns
registerImageObjectToOntologyResponse.object_entry [string] The ontology alias image entry
Exceptions
ExceptionAppError

Definition at line 109 of file image_registration_to_ontology.py.


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