From 10893acef76a06cfc20912bc66e501ebd88c099b Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Tue, 11 Feb 2020 17:43:59 +1030 Subject: [PATCH] Return empty in slam servicer --- SlamController/slam_servicer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SlamController/slam_servicer.py b/SlamController/slam_servicer.py index 048c9d9..aa3ae89 100644 --- a/SlamController/slam_servicer.py +++ b/SlamController/slam_servicer.py @@ -1,4 +1,5 @@ -import SlamController_pb2_grpc +import SlamController_pb2_grpc +import SlamController_pb2 import slam_streamer as slam from threading import Thread @@ -17,7 +18,9 @@ class SlamServicer(SlamController_pb2_grpc.SlamControlServicer): self.slam.map_meters = request.map_size_meters self.slam_thread = Thread(target=self.slam.start) self.slam_thread.start() + return SlamController_pb2.Empty() def stop_streaming(self, request, context): if self.slam_thread is not None: - self.slam.stop_scanning() \ No newline at end of file + self.slam.stop_scanning() + return SlamController_pb2.Empty() \ No newline at end of file