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
knowrob_wrapper_communications.h
Go to the documentation of this file.
1 /******************************************************************************
2 Copyright 2015 RAPP
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 
16  Author: Athanassios Kintsakis
17  contact: akintsakis@issel.ee.auth.gr
18 
19 ******************************************************************************/
20 
22 #include <ros/ros.h>
23 
29 {
30  private:
32  ros::NodeHandle nh_;
33 
36 
38  ros::ServiceServer subclasses_of_service_;
39 
42 
44  ros::ServiceServer superclasses_of_service_;
47 
49  ros::ServiceServer is_subsuperclass_of_service_;
52 
54  ros::ServiceServer createInstanceService_;
57 
59  ros::ServiceServer dumpOntologyService_;
62 
64  ros::ServiceServer loadOntologyService_;
67 
72 
74  ros::ServiceServer create_ontology_alias_service_;
77 
82 
84  ros::ServiceServer create_cognitve_tests_service_;
87 
92 
97 
102 
107 
112  //ros::ServiceServer userInstancesFromClassService_;
113  //std::string userInstancesFromClassServiceTopic_;
114 
115  //ros::ServiceServer assignAttributeValueService_;
116  //std::string assignAttributeValueServiceTopic_;
117  //ros::ServiceServer instanceFromClassService_;
118  //std::string instanceFromClassServiceTopic_;
119 
120  public:
121 
126 
134  rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request& req,
135  rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response& res);
136 
144  rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request& req,
145  rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response& res);
146 
154  rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request& req,
155  rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response& res);
156 
164  rapp_platform_ros_communications::createInstanceSrv::Request& req,
165  rapp_platform_ros_communications::createInstanceSrv::Response& res);
166 
174  rapp_platform_ros_communications::ontologyLoadDumpSrv::Request& req,
175  rapp_platform_ros_communications::ontologyLoadDumpSrv::Response& res);
176 
184  rapp_platform_ros_communications::ontologyLoadDumpSrv::Request& req,
185  rapp_platform_ros_communications::ontologyLoadDumpSrv::Response& res);
186 
194  rapp_platform_ros_communications::createOntologyAliasSrv::Request& req,
195  rapp_platform_ros_communications::createOntologyAliasSrv::Response& res);
196 
204  rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request& req,
205  rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response& res);
206 
214  rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request& req,
215  rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response& res);
216 
224  rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request& req,
225  rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response& res);
226 
234  rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request& req,
235  rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response& res);
236 
244  rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Request& req,
245  rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Response& res);
246 
254  rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request& req,
255  rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Response& res);
256 
264  rapp_platform_ros_communications::retractUserOntologyAliasSrv::Request& req,
265  rapp_platform_ros_communications::retractUserOntologyAliasSrv::Response& res);
266 
274  rapp_platform_ros_communications::registerImageObjectToOntologySrv::Request& req,
275  rapp_platform_ros_communications::registerImageObjectToOntologySrv::Response& res);
276 
277 };
bool clear_user_cognitive_tests_performance_records_callback(rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Request &req, rapp_platform_ros_communications::clearUserPerformanceCognitveTestsSrv::Response &res)
Serves the clear_user_cognitive_tests_performance_records ROS service callback.
bool retract_user_ontology_alias_callback(rapp_platform_ros_communications::retractUserOntologyAliasSrv::Request &req, rapp_platform_ros_communications::retractUserOntologyAliasSrv::Response &res)
Serves the retract_user_ontology_alias ROS service callback.
ros::ServiceServer clear_user_cognitive_tests_performance_records_service_
bool create_cognitve_tests_callback(rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Request &req, rapp_platform_ros_communications::createCognitiveExerciseTestSrv::Response &res)
Serves the create_cognitve_tests ROS service callback.
bool loadOntologyCallback(rapp_platform_ros_communications::ontologyLoadDumpSrv::Request &req, rapp_platform_ros_communications::ontologyLoadDumpSrv::Response &res)
Serves the loadOntology ROS service callback.
bool record_user_cognitive_tests_performance_callback(rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Request &req, rapp_platform_ros_communications::recordUserPerformanceCognitiveTestsSrv::Response &res)
Serves the record_user_cognitive_tests_performance ROS service callback.
bool dumpOntologyCallback(rapp_platform_ros_communications::ontologyLoadDumpSrv::Request &req, rapp_platform_ros_communications::ontologyLoadDumpSrv::Response &res)
Serves the dumpOntology ROS service callback.
bool subclassesOfCallback(rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request &req, rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response &res)
Serves the subclassesOf ROS service callback.
bool create_ontology_alias_callback(rapp_platform_ros_communications::createOntologyAliasSrv::Request &req, rapp_platform_ros_communications::createOntologyAliasSrv::Response &res)
Serves the create_ontology_alias ROS service callback.
bool cognitive_tests_of_type_callback(rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Request &req, rapp_platform_ros_communications::cognitiveTestsOfTypeSrv::Response &res)
Serves the cognitive_tests_of_type ROS service callback.
bool createInstanceCallback(rapp_platform_ros_communications::createInstanceSrv::Request &req, rapp_platform_ros_communications::createInstanceSrv::Response &res)
Serves the createInstance ROS service callback.
ros::ServiceServer register_image_object_to_ontology_service_
ros::ServiceServer user_performance_cognitve_tests_service_
bool user_performance_cognitve_tests_callback(rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Request &req, rapp_platform_ros_communications::userPerformanceCognitveTestsSrv::Response &res)
Serves the user_performance_cognitve_tests ROS service callback.
ros::ServiceServer record_user_cognitive_tests_performance_service_
bool user_instances_of_class_callback(rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Request &req, rapp_platform_ros_communications::returnUserInstancesOfClassSrv::Response &res)
Serves the user_instances_of_class ROS service callback.
Class KnowrobWrapperCommunications uptakes the task of handling the ROS service callbacks.
Class KnowrobWrapperCommunications contains all the necessary knowrob wrapper functions.
bool superclassesOfCallback(rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Request &req, rapp_platform_ros_communications::ontologySubSuperClassesOfSrv::Response &res)
Serves the superlassesOf ROS service callback.
bool isSubSuperclassOfCallback(rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Request &req, rapp_platform_ros_communications::ontologyIsSubSuperClassOfSrv::Response &res)
Serves the isSubSuperclassOf ROS service callback.
bool register_image_object_to_ontology_callback(rapp_platform_ros_communications::registerImageObjectToOntologySrv::Request &req, rapp_platform_ros_communications::registerImageObjectToOntologySrv::Response &res)
Serves the register_image_object_to_ontology ROS service callback.