diff --git a/SlamController/slam_streamer.py b/SlamController/slam_streamer.py index e9225ec..ec27213 100644 --- a/SlamController/slam_streamer.py +++ b/SlamController/slam_streamer.py @@ -75,7 +75,9 @@ class SlamStreamer: # Update SLAM with current Lidar scan and scan angles slam.update(distances, scan_angles_degrees=angles) 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): '''