Add lidar tracking
This commit is contained in:
25
persontracking/lidar_servicer.py
Normal file
25
persontracking/lidar_servicer.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user