Fixup mock lidar
This commit is contained in:
@@ -38,6 +38,8 @@ class LidarCache():
|
||||
# Create the 0MQ socket first. This should not be passed between threads.
|
||||
self._mFactory = sender
|
||||
|
||||
# Batch over scans, so we don't need to do our own batching to determine groups
|
||||
# TODO: Implement custom batching, as iter_scans can be unreliable
|
||||
for scan in self.lidar.iter_scans(min_len=self.measurements):
|
||||
print('Got %d measurments' % (len(scan)))
|
||||
if(not self.run):
|
||||
|
||||
@@ -26,7 +26,7 @@ class MockLidar:
|
||||
"""
|
||||
self._iter = scan_iter
|
||||
|
||||
def iter_scans(self, measurements=100):
|
||||
def iter_scans(self, min_len=100):
|
||||
return self._iter
|
||||
|
||||
def get_health(self):
|
||||
|
||||
Reference in New Issue
Block a user