Lidar fixes
This commit is contained in:
@@ -4,13 +4,14 @@ from tracking.lidar_cache import LidarCache
|
||||
from multiprocessing import Process
|
||||
import messaging.message_factory as mf
|
||||
from rplidar import RPLidar
|
||||
from Messaging import messages
|
||||
from messaging import messages
|
||||
|
||||
|
||||
class LidarServicer(PersonTrackingServicer):
|
||||
|
||||
def __init__(self):
|
||||
# TODO: Put the rplidar creation in a factory or something, to make it possible to test this servicer.
|
||||
# Also, it would allow creating the service without the lidar being connected.
|
||||
self.cache = LidarCache(RPLidar('/dev/ttyUSB0'), measurements=100)
|
||||
self._mFactory = None
|
||||
self._port = None
|
||||
|
||||
Reference in New Issue
Block a user