def SetState(self, request, context):
     try:
         self.rosbridge.set_state(state_msg=request)
         return robot_server_pb2.Success(success=1)
     except:
         rospy.logerr('Failed to set state', exc_info=True)
         return robot_server_pb2.Success(success=0)
示例#2
0
 def SendAction(self, request, context):
     try:
         executed_action = self.rosbridge.publish_env_arm_cmd(
             request.action)
         return robot_server_pb2.Success(success=1)
     except:
         return robot_server_pb2.Success(success=0)
示例#3
0
 def SendAction(self, request, context):
     try:
         lin_vel, ang_vel = self.rosbridge.publish_env_cmd_vel(
             request.action[0], request.action[1])
         return robot_server_pb2.Success(success=1)
     except:
         return robot_server_pb2.Success(success=0)
 def SendAction(self, request, context):
     try:
         executed_action = self.rosbridge.publish_env_arm_cmd(request.action)
         return robot_server_pb2.Success(success=1)
     except:
         rospy.logerr('Failed to send action', exc_info=True)
         return robot_server_pb2.Success(success=0)
 def SendAction(self, request, context):
     try:
         result = self.rosbridge.call_move_base(request.action[0],
                                                request.action[1],
                                                request.action[2])
         return robot_server_pb2.Success(success=1)
     except:
         return robot_server_pb2.Success(success=0)
 def SetState(self, request, context):
     try:
         s = self.rosbridge.set_state(state_msg=request)
         return robot_server_pb2.Success(success=1)
     except:
         return robot_server_pb2.Success(success=0)