Refactor python module structure
This commit is contained in:
22
tracking/lidar_servicer.py
Normal file
22
tracking/lidar_servicer.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import tracking.lidar_tracker_pb2 as lidar_tracker_pb2
|
||||
from tracking.lidar_tracker_pb2_grpc import PersonTrackingServicer
|
||||
from tracking.lidar_cache import LidarCache
|
||||
from multiprocessing import Process
|
||||
|
||||
|
||||
class LidarServicer(PersonTrackingServicer):
|
||||
|
||||
def __init__(self):
|
||||
self.cache = LidarCache(measurements=100)
|
||||
|
||||
def set_tracking_group(self, request, context):
|
||||
pass
|
||||
|
||||
def stop_tracking(self, request, context):
|
||||
self.cache.stop_scanning()
|
||||
|
||||
def start_tracking(self, request, context):
|
||||
'''
|
||||
Starts the lidar cache.
|
||||
'''
|
||||
self.cache.start_cache()
|
||||
Reference in New Issue
Block a user