26 lines
598 B
Python
26 lines
598 B
Python
import lidar_tracker_pb2
|
|
import lidar_tracker_pb2_grpc
|
|
from .lidar_cache import LidarCache
|
|
class LidarServicer(lidar_tracker_pb2_grpc.PersonTrackingServicer):
|
|
|
|
def __init__(self):
|
|
self.cache = LidarCache(measurements=100)
|
|
self.cache.do_scanning()
|
|
|
|
def set_tracking_group(self, request, context):
|
|
pass
|
|
|
|
def stop_tracking(self, request, context):
|
|
self.cache.stop_scanning()
|
|
|
|
def get_scan_data(self, request, context):
|
|
pass
|
|
|
|
def start_tracking(self, request, context):
|
|
'''
|
|
Starts the lidar cache.
|
|
'''
|
|
pass
|
|
|
|
|