Esempio n. 1
0
 def get_warnings(self):
     '''
     :return: DiagnosticArray
     :rtype: DiagnosticArray
     '''
     request = mmsg.Empty()
     response = self.mm_stub.GetWarnings(request,
                                         timeout=settings.GRPC_TIMEOUT)
     return ros_msg(response)
Esempio n. 2
0
 def KillProcess(self, request, context):
     os.kill(request.pid, signal.SIGKILL)
     reply = mmsg.Empty()
     return reply
Esempio n. 3
0
 def get_user(self):
     '''
     '''
     request = mmsg.Empty()
     response = self.mm_stub.GetUser(request, timeout=settings.GRPC_TIMEOUT)
     return response.user