Make the lidar streamer ready to work with main controller
This commit is contained in:
0
tracking/devices/__init__.py
Normal file
0
tracking/devices/__init__.py
Normal file
@@ -2,8 +2,11 @@ from tracking.devices.mock_lidar import MockLidar
|
||||
from rplidar import RPLidar
|
||||
import tracking.lidar_loader as loader
|
||||
|
||||
connection = "TEST"
|
||||
# connection = '/dev/ttyUSB0'
|
||||
|
||||
def get_lidar(connection: str):
|
||||
def get_lidar():
|
||||
# Need a way to configure this, maybe with environment variables
|
||||
if connection == 'TEST':
|
||||
return MockLidar(loader.load_scans_bytes_file("tracking/out.pickle"))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user