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
ontology_class_bridge.OntologyClassBridge Class Reference

Contains the necessary functions for translating caffe classes to ontology classes. More...

Public Member Functions

def getOntologyClassEquivalent
 Implements the getOntologyClassEquivalent service main function. More...
 
def loadMappingIntoDictionary
 Loads the caffeToOntologyClasses file into a dictionary. More...
 

Detailed Description

Contains the necessary functions for translating caffe classes to ontology classes.

Definition at line 31 of file ontology_class_bridge.py.

Member Function Documentation

def ontology_class_bridge.OntologyClassBridge.getOntologyClassEquivalent (   self,
  req 
)

Implements the getOntologyClassEquivalent service main function.

Parameters
req[rapp_platform_ros_communications::ontologyClassBridgeSrvRequest::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyClassBridgeSrvResponse::Response&] The ROS service response
Exceptions
ExceptionKeyError

Definition at line 38 of file ontology_class_bridge.py.

def ontology_class_bridge.OntologyClassBridge.loadMappingIntoDictionary (   self,
  mapFilePath 
)

Loads the caffeToOntologyClasses file into a dictionary.

Parameters
mapFilePath[string] The path to the file containing the caffe to ontology classes equivalencies
Returns
caffeToOntologyClassesDict [dictionary] The dictionary containing the caffe to ontology classes

Definition at line 61 of file ontology_class_bridge.py.


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