Пример #1
0
    def get_status(self, **kwargs):
        """Return the estop status of the robot.

        Args:
            kwargs: Passed to underlying RPC. Example: timeout=5 to cancel the RPC after 5 seconds.
        Returns:
            estop_pb2.EstopSystemStatus from the server.
        """
        return self.call(self._stub.GetEstopSystemStatus, estop_pb2.GetEstopSystemStatusRequest(),
                         _estop_sys_status_from_response, common_header_errors, **kwargs)
Пример #2
0
 def get_status_async(self, **kwargs):
     """Async version of get_status()"""
     return self.call_async(self._stub.GetEstopSystemStatus,
                            estop_pb2.GetEstopSystemStatusRequest(),
                            _estop_sys_status_from_response, common_header_errors, **kwargs)