64 lines
2.1 KiB
Python
64 lines
2.1 KiB
Python
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
import grpc
|
|
|
|
import lidarService_pb2 as lidarService__pb2
|
|
|
|
|
|
class LidarServiceStub(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def __init__(self, channel):
|
|
"""Constructor.
|
|
|
|
Args:
|
|
channel: A grpc.Channel.
|
|
"""
|
|
self.GetMaps = channel.unary_stream(
|
|
'/lidar.LidarService/GetMaps',
|
|
request_serializer=lidarService__pb2.LidarRequest.SerializeToString,
|
|
response_deserializer=lidarService__pb2.LidarMap.FromString,
|
|
)
|
|
self.Stop = channel.unary_unary(
|
|
'/lidar.LidarService/Stop',
|
|
request_serializer=lidarService__pb2.StopRequest.SerializeToString,
|
|
response_deserializer=lidarService__pb2.StopResponse.FromString,
|
|
)
|
|
|
|
|
|
class LidarServiceServicer(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def GetMaps(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(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_LidarServiceServicer_to_server(servicer, server):
|
|
rpc_method_handlers = {
|
|
'GetMaps': grpc.unary_stream_rpc_method_handler(
|
|
servicer.GetMaps,
|
|
request_deserializer=lidarService__pb2.LidarRequest.FromString,
|
|
response_serializer=lidarService__pb2.LidarMap.SerializeToString,
|
|
),
|
|
'Stop': grpc.unary_unary_rpc_method_handler(
|
|
servicer.Stop,
|
|
request_deserializer=lidarService__pb2.StopRequest.FromString,
|
|
response_serializer=lidarService__pb2.StopResponse.SerializeToString,
|
|
),
|
|
}
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
'lidar.LidarService', rpc_method_handlers)
|
|
server.add_generic_rpc_handlers((generic_handler,))
|