Use list for sending the multipart message.

This commit is contained in:
Piv
2020-02-18 20:09:37 +10:30
parent 7efdca1e61
commit 6fa062b559

View File

@@ -83,7 +83,7 @@ class SlamStreamer:
protoScan = SlamScan(map=bytes(mapbytes), protoScan = SlamScan(map=bytes(mapbytes),
location=SlamLocation(x=location[0], y=location[1], theta=location[2])) location=SlamLocation(x=location[0], y=location[1], theta=location[2]))
print('Sending map') 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): def stop_scanning(self):
self.can_scan = False self.can_scan = False