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
KnowrobWrapper Class Reference

Class KnowrobWrapperCommunications contains all the necessary knowrob wrapper functions. More...

#include <knowrob_wrapper.h>

Public Member Functions

 KnowrobWrapper (ros::NodeHandle nh)
 Default constructor. More...
 
rapp_platform_ros_communications::assertRetractAttributeSrv::Response assertAttributeValue (rapp_platform_ros_communications::assertRetractAttributeSrv::Request req)
 Implements the assertRetractAttribute ROS service. More...
 
rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Response clear_user_cognitive_tests_performance_records (rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request req)
 Implements the clear_user_cognitive_tests_performance_records ROS service. More...
 
rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response cognitive_tests_of_type (rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request req)
 Implements the cognitive_tests_of_type ROS service. More...
 
rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response create_cognitve_tests (rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request req)
 Implements the create_cognitve_tests ROS service. More...
 
rapp_platform_ros_communications::createOntologyAliasSrv::Response create_ontology_alias (rapp_platform_ros_communications::createOntologyAliasSrv::Request req)
 Implements the create_ontology_alias ROS service. More...
 
std::string create_ontology_alias_for_new_user (std::string user_id)
 Creates a new ontology alias for a user. More...
 
rapp_platform_ros_communications::createInstanceSrv::Response createInstanceQuery (rapp_platform_ros_communications::createInstanceSrv::Request req)
 Implements the createInstance ROS service. More...
 
void dump_ontology_now ()
 Dumps the ontology to default path. More...
 
rapp_platform_ros_communications::ontologyLoadDumpSrv::Response dumpOntologyQuery (rapp_platform_ros_communications::ontologyLoadDumpSrv::Request req)
 Implements the dumpOntology ROS service. More...
 
std::string get_ontology_alias (std::string user_id)
 Returns the ontology alias of the user. More...
 
rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response isSubSuperclassOfQuery (rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request req)
 Implements the isSubSuperclass ROS service. More...
 
rapp_platform_ros_communications::ontologyLoadDumpSrv::Response loadOntologyQuery (rapp_platform_ros_communications::ontologyLoadDumpSrv::Request req)
 Implements the loadOntology ROS service. More...
 
rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Response record_user_cognitive_tests_performance (rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Request req)
 Implements the record_user_cognitive_tests_performance ROS service. More...
 
rapp_platform_ros_communications::registerImageObjectToOntologySrv::Response register_image_object_to_ontology (rapp_platform_ros_communications::registerImageObjectToOntologySrv::Request req)
 Implements the register_image_object_to_ontology ROS service. More...
 
rapp_platform_ros_communications::retractUserOntologyAliasSrv::Response retract_user_ontology_alias (rapp_platform_ros_communications::retractUserOntologyAliasSrv::Request req)
 Implements the retract_user_ontology_alias ROS service. More...
 
rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response subclassesOfQuery (rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request req)
 Implements the subclassesOf ROS service. More...
 
rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response superclassesOfQuery (rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request req)
 Implements the superclassesOf ROS service. More...
 
rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response user_instances_of_class (rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request req)
 Implements the returnUserInstancesOfClass ROS service. More...
 
rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response user_performance_cognitve_tests (rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request req)
 Implements the user_performance_cognitve_tests ROS service. More...
 

Private Attributes

ros::ServiceClient mysql_get_user_ontology_alias_client
 
ros::ServiceClient mysql_register_user_ontology_alias_client
 
ros::NodeHandle nh_
 
json_prolog::Prolog pl
 

Detailed Description

Class KnowrobWrapperCommunications contains all the necessary knowrob wrapper functions.

Definition at line 49 of file knowrob_wrapper.h.

Constructor & Destructor Documentation

KnowrobWrapper::KnowrobWrapper ( ros::NodeHandle  nh)

Default constructor.

Definition at line 30 of file knowrob_wrapper.cpp.

Member Function Documentation

rapp_platform_ros_communications::assertRetractAttributeSrv::Response KnowrobWrapper::assertAttributeValue ( rapp_platform_ros_communications::assertRetractAttributeSrv::Request  req)

Implements the assertRetractAttribute ROS service.

Parameters
req[rapp_platform_ros_communications::assertRetractAttributeSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::assertRetractAttributeSrv::Response&] The ROS service response
rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Response KnowrobWrapper::clear_user_cognitive_tests_performance_records ( rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request  req)

Implements the clear_user_cognitive_tests_performance_records ROS service.

Parameters
req[rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 444 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response KnowrobWrapper::cognitive_tests_of_type ( rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request  req)

Implements the cognitive_tests_of_type ROS service.

Parameters
req[rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 329 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response KnowrobWrapper::create_cognitve_tests ( rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request  req)

Implements the create_cognitve_tests ROS service.

Parameters
req[rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 271 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::createOntologyAliasSrv::Response KnowrobWrapper::create_ontology_alias ( rapp_platform_ros_communications::createOntologyAliasSrv::Request  req)

Implements the create_ontology_alias ROS service.

Parameters
req[rapp_platform_ros_communications::createOntologyAliasSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createOntologyAliasSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::createOntologyAliasSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createOntologyAliasSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 132 of file knowrob_wrapper.cpp.

std::string KnowrobWrapper::create_ontology_alias_for_new_user ( std::string  username)

Creates a new ontology alias for a user.

Parameters
user_id[string] The username of the user
Returns
ontology_alias [string] The ontology_alias of the user or possible error
Parameters
username[string] The username of the user
Returns
ontology_alias [string] The ontology_alias of the user or possible error
Exceptions
AppError

Definition at line 183 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::createInstanceSrv::Response KnowrobWrapper::createInstanceQuery ( rapp_platform_ros_communications::createInstanceSrv::Request  req)

Implements the createInstance ROS service.

Parameters
req[rapp_platform_ros_communications::createInstanceSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createInstanceSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::createInstanceSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::createInstanceSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 633 of file knowrob_wrapper.cpp.

void KnowrobWrapper::dump_ontology_now ( )

Dumps the ontology to default path.

Definition at line 39 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::ontologyLoadDumpSrv::Response KnowrobWrapper::dumpOntologyQuery ( rapp_platform_ros_communications::ontologyLoadDumpSrv::Request  req)

Implements the dumpOntology ROS service.

Parameters
req[rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyLoadDumpSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyLoadDumpSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 682 of file knowrob_wrapper.cpp.

std::string KnowrobWrapper::get_ontology_alias ( std::string  username)

Returns the ontology alias of the user.

Parameters
user_id[string] The username of the user
Returns
ontology_alias [string] The ontology_alias of the user or possible error
Parameters
username[string] The username of the user
Returns
ontology_alias [string] The ontology_alias of the user or possible error
Exceptions
AppError

Definition at line 161 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response KnowrobWrapper::isSubSuperclassOfQuery ( rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request  req)

Implements the isSubSuperclass ROS service.

Parameters
req[rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 580 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::ontologyLoadDumpSrv::Response KnowrobWrapper::loadOntologyQuery ( rapp_platform_ros_communications::ontologyLoadDumpSrv::Request  req)

Implements the loadOntology ROS service.

Parameters
req[rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyLoadDumpSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologyLoadDumpSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 723 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Response KnowrobWrapper::record_user_cognitive_tests_performance ( rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Request  req)

Implements the record_user_cognitive_tests_performance ROS service.

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

Definition at line 226 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::registerImageObjectToOntologySrv::Response KnowrobWrapper::register_image_object_to_ontology ( rapp_platform_ros_communications::registerImageObjectToOntologySrv::Request  req)

Implements the register_image_object_to_ontology ROS service.

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

Definition at line 804 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::retractUserOntologyAliasSrv::Response KnowrobWrapper::retract_user_ontology_alias ( rapp_platform_ros_communications::retractUserOntologyAliasSrv::Request  req)

Implements the retract_user_ontology_alias ROS service.

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

Definition at line 853 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response KnowrobWrapper::subclassesOfQuery ( rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request  req)

Implements the subclassesOf ROS service.

Parameters
req[rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 486 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response KnowrobWrapper::superclassesOfQuery ( rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request  req)

Implements the superclassesOf ROS service.

Parameters
req[rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 533 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response KnowrobWrapper::user_instances_of_class ( rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request  req)

Implements the returnUserInstancesOfClass ROS service.

Parameters
req[rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 759 of file knowrob_wrapper.cpp.

rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response KnowrobWrapper::user_performance_cognitve_tests ( rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request  req)

Implements the user_performance_cognitve_tests ROS service.

Parameters
req[rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response&] The ROS service response
Parameters
req[rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request&] The ROS service request
Returns
res [rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response&] The ROS service response
Exceptions
AppError

Definition at line 387 of file knowrob_wrapper.cpp.

Member Data Documentation

ros::ServiceClient KnowrobWrapper::mysql_get_user_ontology_alias_client
private

The mysql update tblUser client server

Definition at line 62 of file knowrob_wrapper.h.

ros::ServiceClient KnowrobWrapper::mysql_register_user_ontology_alias_client
private

The mysql fetch from tblUser client server

Definition at line 59 of file knowrob_wrapper.h.

ros::NodeHandle KnowrobWrapper::nh_
private

< The ROS node handle The json prolog handle

Definition at line 53 of file knowrob_wrapper.h.

json_prolog::Prolog KnowrobWrapper::pl
private

The mysql write to tblUser client server

Definition at line 56 of file knowrob_wrapper.h.


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