remote_service_pb2_grpc
Client and server classes corresponding to protobuf-defined services.
func add_RemoteServicer_to_server
Call Type: normal
View Source
def add_RemoteServicer_to_server(servicer, server):
rpc_method_handlers = {'RemoteControl': grpc.unary_unary_rpc_method_handler(servicer.RemoteControl, request_deserializer=services_dot_remote__service__pb2.RemoteControlRequest.FromString, response_serializer=services_dot_remote__service__pb2.RemoteControlResponse.SerializeToString)}
generic_handler = grpc.method_handlers_generic_handler('steeleagle.protocol.services.remote_service.Remote', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('steeleagle.protocol.services.remote_service.Remote', rpc_method_handlers)
class RemoteStub
Inherits from: object
Used to control a vehicle remotely over ZeroMQ Not implemented as a gRPC service!
View Source
class RemoteStub(object):
"""
Used to control a vehicle remotely over ZeroMQ
Not implemented as a gRPC service!
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.RemoteControl = channel.unary_unary('/steeleagle.protocol.services.remote_service.Remote/RemoteControl', request_serializer=services_dot_remote__service__pb2.RemoteControlRequest.SerializeToString, response_deserializer=services_dot_remote__service__pb2.RemoteControlResponse.FromString, _registered_method=True)
class RemoteServicer
Inherits from: object
Used to control a vehicle remotely over ZeroMQ Not implemented as a gRPC service!
method RemoteControl
Call Type: normal
Sends a request to one of the core services (Control, Mission, etc.)
View Source
class RemoteServicer(object):
"""
Used to control a vehicle remotely over ZeroMQ
Not implemented as a gRPC service!
"""
def RemoteControl(self, request, context):
"""Sends a request to one of the core services (Control, Mission, etc.)
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
class Remote
Inherits from: object
Used to control a vehicle remotely over ZeroMQ Not implemented as a gRPC service!
method RemoteControl
Call Type: normal
View Source
class Remote(object):
"""
Used to control a vehicle remotely over ZeroMQ
Not implemented as a gRPC service!
"""
@staticmethod
def RemoteControl(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None):
return grpc.experimental.unary_unary(request, target, '/steeleagle.protocol.services.remote_service.Remote/RemoteControl', services_dot_remote__service__pb2.RemoteControlRequest.SerializeToString, services_dot_remote__service__pb2.RemoteControlResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)