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
|
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 |
Class KnowrobWrapperCommunications contains all the necessary knowrob wrapper functions.
Definition at line 49 of file knowrob_wrapper.h.
KnowrobWrapper::KnowrobWrapper | ( | ros::NodeHandle | nh | ) |
Default constructor.
Definition at line 30 of file knowrob_wrapper.cpp.
rapp_platform_ros_communications::assertRetractAttributeSrv::Response KnowrobWrapper::assertAttributeValue | ( | rapp_platform_ros_communications::assertRetractAttributeSrv::Request | req | ) |
Implements the assertRetractAttribute ROS service.
req | [rapp_platform_ros_communications::assertRetractAttributeSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::createOntologyAliasSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::createOntologyAliasSrv::Request&] The ROS service request |
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.
user_id | [string] The username of the user |
username | [string] The username of the user |
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.
req | [rapp_platform_ros_communications::createInstanceSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::createInstanceSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request |
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.
user_id | [string] The username of the user |
username | [string] The username of the user |
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.
req | [rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::ontologyLoadDumpSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::registerImageObjectToOntologySrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::retractUserOntologyAliasSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request&] The ROS service request |
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.
req | [rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request&] The ROS service request |
req | [rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request&] The ROS service request |
AppError |
Definition at line 387 of file knowrob_wrapper.cpp.
|
private |
The mysql update tblUser client server
Definition at line 62 of file knowrob_wrapper.h.
|
private |
The mysql fetch from tblUser client server
Definition at line 59 of file knowrob_wrapper.h.
|
private |
< The ROS node handle The json prolog handle
Definition at line 53 of file knowrob_wrapper.h.
|
private |
The mysql write to tblUser client server
Definition at line 56 of file knowrob_wrapper.h.