64 lines
2.2 KiB
Python
64 lines
2.2 KiB
Python
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
import grpc
|
|
|
|
from . import SlamController_pb2 as SlamController__pb2
|
|
|
|
|
|
class SlamControlStub(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def __init__(self, channel):
|
|
"""Constructor.
|
|
|
|
Args:
|
|
channel: A grpc.Channel.
|
|
"""
|
|
self.start_map_streaming = channel.unary_unary(
|
|
'/SlamControl/start_map_streaming',
|
|
request_serializer=SlamController__pb2.SlamDetails.SerializeToString,
|
|
response_deserializer=SlamController__pb2.Empty.FromString,
|
|
)
|
|
self.stop_streaming = channel.unary_unary(
|
|
'/SlamControl/stop_streaming',
|
|
request_serializer=SlamController__pb2.Empty.SerializeToString,
|
|
response_deserializer=SlamController__pb2.Empty.FromString,
|
|
)
|
|
|
|
|
|
class SlamControlServicer(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def start_map_streaming(self, request, context):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def stop_streaming(self, request, context):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
|
|
def add_SlamControlServicer_to_server(servicer, server):
|
|
rpc_method_handlers = {
|
|
'start_map_streaming': grpc.unary_unary_rpc_method_handler(
|
|
servicer.start_map_streaming,
|
|
request_deserializer=SlamController__pb2.SlamDetails.FromString,
|
|
response_serializer=SlamController__pb2.Empty.SerializeToString,
|
|
),
|
|
'stop_streaming': grpc.unary_unary_rpc_method_handler(
|
|
servicer.stop_streaming,
|
|
request_deserializer=SlamController__pb2.Empty.FromString,
|
|
response_serializer=SlamController__pb2.Empty.SerializeToString,
|
|
),
|
|
}
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
'SlamControl', rpc_method_handlers)
|
|
server.add_generic_rpc_handlers((generic_handler,))
|