Fix imports for slam
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import SlamController_pb2_grpc
|
||||
import SlamController_pb2
|
||||
import slam_streamer as slam
|
||||
from . import SlamController_pb2_grpc
|
||||
from . import SlamController_pb2
|
||||
from . import slam_streamer as slam
|
||||
from threading import Thread
|
||||
|
||||
|
||||
class SlamServicer(SlamController_pb2_grpc.SlamControlServicer):
|
||||
slam_thread = None
|
||||
|
||||
|
||||
def __init__(self, lidar_connection):
|
||||
print('Servicer initialised')
|
||||
self.slam = slam.SlamStreamer(lidar_connection=lidar_connection)
|
||||
@@ -23,4 +24,4 @@ class SlamServicer(SlamController_pb2_grpc.SlamControlServicer):
|
||||
def stop_streaming(self, request, context):
|
||||
if self.slam_thread is not None:
|
||||
self.slam.stop_scanning()
|
||||
return SlamController_pb2.Empty()
|
||||
return SlamController_pb2.Empty()
|
||||
|
||||
Reference in New Issue
Block a user