Use list for sending the multipart message.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user