22 from test_selector
import TestSelector
23 from recordUserCognitiveTestPerformance
import RecordUserCognitiveTestPerformance
24 from cognitive_test_creator
import CognitiveTestCreator
25 from userScoresForAllCategories
import UserScoresForAllCategories
26 from userScoreHistoryForAllCategories
import UserScoreHistoryForAllCategories
27 from returnTestsOfTypeSubtypeDiffuclty
import ReturnTests
29 from rapp_platform_ros_communications.srv
import (
31 testSelectorSrvResponse,
32 createOntologyAliasSrv,
33 createOntologyAliasSrvRequest,
34 createOntologyAliasSrvResponse,
35 recordUserCognitiveTestPerformanceSrv,
36 recordUserCognitiveTestPerformanceSrvResponse,
37 cognitiveTestCreatorSrv,
38 cognitiveTestCreatorSrvResponse,
39 userScoreHistoryForAllCategoriesSrv,
40 userScoreHistoryForAllCategoriesSrvResponse,
41 userScoresForAllCategoriesSrv,
42 userScoresForAllCategoriesSrvResponse,
43 returnTestsOfTypeSubtypeDifficultySrv,
44 returnTestsOfTypeSubtypeDifficultySrvResponse
57 self.
serv_topic = rospy.get_param(
'rapp_knowrob_wrapper_create_ontology_alias')
59 rospy.logerror(
"rapp_knowrob_wrapper_create_ontology_alias param not found")
62 self.
serv_topic = rospy.get_param(
'rapp_mysql_wrapper_get_user_language_service_topic')
64 rospy.logerror(
"rapp_mysql_wrapper_get_user_language_service_topic param not found")
67 self.
serv_topic = rospy.get_param(
'rapp_knowrob_wrapper_user_performance_cognitve_tests')
69 rospy.logerror(
"rapp_knowrob_wrapper_user_performance_cognitve_tests topic not foud")
72 serv_topic = rospy.get_param(
'rapp_knowrob_wrapper_cognitive_tests_of_type')
74 rospy.logerror(
"rapp_knowrob_wrapper_cognitive_tests_of_type not found")
77 serv_topic = rospy.get_param(
'rapp_knowrob_wrapper_record_user_cognitive_tests_performance')
79 rospy.logerror(
"rapp_knowrob_wrapper_record_user_cognitive_tests_performance not found")
80 rospy.wait_for_service(serv_topic)
82 serv_topic = rospy.get_param(
'rapp_knowrob_wrapper_create_cognitve_tests')
84 rospy.logerror(
"rapp_knowrob_wrapper_create_cognitve_tests not found")
85 rospy.wait_for_service(serv_topic)
88 self.
serv_topic = rospy.get_param(
"rapp_cognitive_exercise_chooser_topic")
90 rospy.logerror(
"rapp_cognitive_exercise_chooser_topic not found")
93 self.
serv_topic = rospy.get_param(
"rapp_cognitive_exercise_record_user_cognitive_test_performance_topic")
95 rospy.logerror(
"rapp_cognitive_exercise_record_user_cognitive_test_performance_topic not found")
98 self.
serv_topic = rospy.get_param(
"rapp_cognitive_test_creator_topic")
100 rospy.logerror(
"rapp_cognitive_test_creator_topic not found")
103 self.
serv_topic = rospy.get_param(
"rapp_cognitive_exercise_user_all_categories_score_topic")
105 rospy.logerror(
"rapp_cognitive_exercise_user_all_categories_score_topic not found")
108 self.
serv_topic = rospy.get_param(
"rapp_cognitive_exercise_user_all_categories_history_topic")
110 rospy.logerror(
"rapp_cognitive_exercise_user_all_categories_history_topic not found")
113 self.
serv_topic = rospy.get_param(
"rapp_cognitive_exercise_return_tests_of_type_subtype_difficulty_topic")
115 rospy.logerror(
"rapp_cognitive_exercise_return_tests_of_type_subtype_difficulty_topic not found")
124 res = testSelectorSrvResponse()
126 res=it.chooserFunction(req)
133 res = recordUserCognitiveTestPerformanceSrvResponse()
134 it = RecordUserCognitiveTestPerformance()
135 res=it.recordPerformance(req)
142 res = cognitiveTestCreatorSrvResponse()
143 it = CognitiveTestCreator()
144 res=it.testCreator(req)
151 res = userScoresForAllCategoriesSrvResponse()
153 res=it.returnUserScores(req)
160 res = userScoreHistoryForAllCategoriesSrvResponse()
162 res=it.returnUserHistory(req)
169 res = returnTestsOfTypeSubtypeDifficultySrvResponse()
171 res=it.returnTestsFunction(req)
def cognitiveTestCreatorDataHandler
The cognitive test creator service callback.
Provides the necessary functions for returning the user scores.
def __init__
Default contructor.
def returnTestsOfTypeSubtypeDifficultyDataHandler
The returnTestsOfTypeSubtypeDifficultyDataHandler service callback.
def chooserDataHandler
The cognitive exercise chooser service callback.
def recordUserCognitiveTestPerformanceDataHandler
The record user cognitive test performance service callback.
def userScoreHistoryForAllCategoriesDataHandler
The userScoreHistoryForAllCategories service callback.
Provides the necessary functions for returning the history of user scores.
def userScoresForAllCategoriesDataHandler
The userScoresForAllCategories service callback.
The Cognitive exercise ros node.