Exemple #1
0
 def _ros_service_get_interaction(self, request):
     '''
       Handle incoming requests for a single app.
     '''
     response = interaction_srvs.GetInteractionResponse()
     response.interaction = self.interactions_table.find(request.hash)
     response.result = False if response.interaction is None else True
     return response
Exemple #2
0
 def _ros_service_get_interaction(self, request):
     '''
       Handle incoming requests for a single interaction's details.
     '''
     response = interaction_srvs.GetInteractionResponse()
     interaction = self.interactions_table.find(request.hash)
     if interaction is None:
         response.interaction = interaction_msgs.Interaction()
         response.result = False
     else:
         response.interaction = interaction.msg
         response.result = True
     return response