Fix the mapbytes, as getmap doesn't return anything.
This commit is contained in:
@@ -75,7 +75,9 @@ class SlamStreamer:
|
|||||||
# Update SLAM with current Lidar scan and scan angles
|
# Update SLAM with current Lidar scan and scan angles
|
||||||
slam.update(distances, scan_angles_degrees=angles)
|
slam.update(distances, scan_angles_degrees=angles)
|
||||||
print('Map updated')
|
print('Map updated')
|
||||||
self._push_map(slam.getmap(mapbytes), slam.getpos())
|
slam.getmap(mapbytes)
|
||||||
|
|
||||||
|
self._push_map(mapbytes, slam.getpos())
|
||||||
|
|
||||||
def _push_map(self, mapbytes, location):
|
def _push_map(self, mapbytes, location):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user