From 6fa062b559e21eb2977e24b564228fc749b7a69e Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Tue, 18 Feb 2020 20:09:37 +1030 Subject: [PATCH] Use list for sending the multipart message. --- SlamController/slam_streamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SlamController/slam_streamer.py b/SlamController/slam_streamer.py index 8ebc2ed..e7ca66e 100644 --- a/SlamController/slam_streamer.py +++ b/SlamController/slam_streamer.py @@ -83,7 +83,7 @@ class SlamStreamer: protoScan = SlamScan(map=bytes(mapbytes), location=SlamLocation(x=location[0], y=location[1], theta=location[2])) print('Sending map') - self._socket.send_multipart(b'slam_map', protoScan.SerializeToString()) + self._socket.send_multipart([b'slam_map', protoScan.SerializeToString()]) def stop_scanning(self): self.can_scan = False