Exemplo n.º 1
0
 def get_ptz_position_async(self, ptz_desc, **kwargs):
     """Async version of get_ptz_position()"""
     request = ptz_pb2.GetPtzPositionRequest(ptz=ptz_desc)
     return self.call_async(self._stub.GetPtzPosition, request,
                            self._get_ptz_position_from_response,
                            self._ptz_error_from_response, **kwargs)
Exemplo n.º 2
0
 def get_ptz_position(self, ptz_desc, **kwargs):
     """Position of the specified ptz"""
     request = ptz_pb2.GetPtzPositionRequest(ptz=ptz_desc)
     return self.call(self._stub.GetPtzPosition, request,
                      self._get_ptz_position_from_response,
                      self._ptz_error_from_response, **kwargs)