23 #include <json_prolog/prolog.h>
24 #include <rapp_platform_ros_communications/registerUserOntologyAliasSrv.h>
25 #include <rapp_platform_ros_communications/getUserOntologyAliasSrv.h>
26 #include <rapp_platform_ros_communications/StringArrayMsg.h>
27 #include <rapp_platform_ros_communications/createInstanceSrv.h>
28 #include <rapp_platform_ros_communications/ontologyInstancesOfSrv.h>
29 #include <rapp_platform_ros_communications/ontologyLoadDumpSrv.h>
30 #include <rapp_platform_ros_communications/ontologySubSuperClassesOfSrv.h>
31 #include <rapp_platform_ros_communications/assertRetractAttributeSrv.h>
32 #include <rapp_platform_ros_communications/ontologyIsSubSuperClassOfSrv.h>
33 #include <rapp_platform_ros_communications/returnUserInstancesOfClassSrv.h>
34 #include <rapp_platform_ros_communications/createOntologyAliasSrv.h>
35 #include <rapp_platform_ros_communications/userPerformanceCognitveTestsSrv.h>
36 #include <rapp_platform_ros_communications/createCognitiveExerciseTestSrv.h>
37 #include <rapp_platform_ros_communications/cognitiveTestsOfTypeSrv.h>
38 #include <rapp_platform_ros_communications/recordUserPerformanceCognitiveTestsSrv.h>
39 #include <rapp_platform_ros_communications/clearUserPerformanceCognitveTestsSrv.h>
40 #include <rapp_platform_ros_communications/registerImageObjectToOntologySrv.h>
41 #include <rapp_platform_ros_communications/retractUserOntologyAliasSrv.h>
42 #include <rapp_platform_ros_communications/registerImageObjectToOntologySrv.h>
56 json_prolog::Prolog
pl;
98 rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response
subclassesOfQuery(rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request req);
105 rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response
superclassesOfQuery(rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request req);
112 rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response
isSubSuperclassOfQuery(rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request req);
119 rapp_platform_ros_communications::createInstanceSrv::Response
createInstanceQuery(rapp_platform_ros_communications::createInstanceSrv::Request req);
126 rapp_platform_ros_communications::ontologyLoadDumpSrv::Response
dumpOntologyQuery(rapp_platform_ros_communications::ontologyLoadDumpSrv::Request req);
133 rapp_platform_ros_communications::ontologyLoadDumpSrv::Response
loadOntologyQuery(rapp_platform_ros_communications::ontologyLoadDumpSrv::Request req);
140 rapp_platform_ros_communications::assertRetractAttributeSrv::Response
assertAttributeValue(rapp_platform_ros_communications::assertRetractAttributeSrv::Request req);
147 rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response
user_instances_of_class(rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request req);
154 rapp_platform_ros_communications::createOntologyAliasSrv::Response
create_ontology_alias(rapp_platform_ros_communications::createOntologyAliasSrv::Request req);
161 rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response
user_performance_cognitve_tests(rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request req);
168 rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response
create_cognitve_tests(rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request req);
175 rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response
cognitive_tests_of_type(rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request req);
182 rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Response
record_user_cognitive_tests_performance(rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Request req);
196 rapp_platform_ros_communications::registerImageObjectToOntologySrv::Response
register_image_object_to_ontology(rapp_platform_ros_communications::registerImageObjectToOntologySrv::Request req);
203 rapp_platform_ros_communications::retractUserOntologyAliasSrv::Response
retract_user_ontology_alias(rapp_platform_ros_communications::retractUserOntologyAliasSrv::Request req);
std::string get_ontology_alias(std::string user_id)
Returns the ontology alias of the user.
rapp_platform_ros_communications::createInstanceSrv::Response createInstanceQuery(rapp_platform_ros_communications::createInstanceSrv::Request req)
Implements the createInstance ROS service.
rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response user_instances_of_class(rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request req)
Implements the returnUserInstancesOfClass ROS service.
rapp_platform_ros_communications::assertRetractAttributeSrv::Response assertAttributeValue(rapp_platform_ros_communications::assertRetractAttributeSrv::Request req)
Implements the assertRetractAttribute ROS service.
rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response create_cognitve_tests(rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request req)
Implements the create_cognitve_tests ROS service.
rapp_platform_ros_communications::ontologyLoadDumpSrv::Response loadOntologyQuery(rapp_platform_ros_communications::ontologyLoadDumpSrv::Request req)
Implements the loadOntology ROS service.
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.
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.
KnowrobWrapper(ros::NodeHandle nh)
Default constructor.
rapp_platform_ros_communications::createOntologyAliasSrv::Response create_ontology_alias(rapp_platform_ros_communications::createOntologyAliasSrv::Request req)
Implements the create_ontology_alias ROS service.
ros::ServiceClient mysql_get_user_ontology_alias_client
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.
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.
rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response subclassesOfQuery(rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request req)
Implements the subclassesOf ROS service.
rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response superclassesOfQuery(rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request req)
Implements the superclassesOf ROS service.
void dump_ontology_now()
Dumps the ontology to default path.
ros::ServiceClient mysql_register_user_ontology_alias_client
rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response isSubSuperclassOfQuery(rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request req)
Implements the isSubSuperclass ROS service.
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.
rapp_platform_ros_communications::ontologyLoadDumpSrv::Response dumpOntologyQuery(rapp_platform_ros_communications::ontologyLoadDumpSrv::Request req)
Implements the dumpOntology ROS service.
Class KnowrobWrapperCommunications contains all the necessary knowrob wrapper functions.
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.
std::string create_ontology_alias_for_new_user(std::string user_id)
Creates a new ontology alias for a user.