From 2e0d8ad3450fd305b74004878f15b04a788a5181 Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Mon, 17 Feb 2020 22:19:50 +1030 Subject: [PATCH] Fix the mapbytes, as getmap doesn't return anything. --- SlamController/slam_streamer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): '''