Example #1
0
 def get_docking_state_async(self, **kwargs):
     """Async version of get_docking_state()."""
     req = docking_pb2.GetDockingStateRequest()
     return self.call_async(self._stub.GetDockingState, req,
                            self._docking_state_from_response,
                            _docking_get_state_error_from_response,
                            **kwargs)
Example #2
0
 def get_docking_state_async(self, **kwargs):
     """Get docking state from the robot."""
     req = docking_pb2.GetDockingStateRequest()
     return self.call_async(self._stub.GetDockingState, req,
                            self._docking_state_from_response,
                            _docking_get_state_error_from_response,
                            **kwargs)
Example #3
0
    def get_docking_state(self, **kwargs):
        """Get docking state from the robot.

        Returns:
            Robot dock state of type DockState
        """
        req = docking_pb2.GetDockingStateRequest()
        return self.call(self._stub.GetDockingState, req,
                         self._docking_state_from_response,
                         _docking_get_state_error_from_response, **kwargs)