Skip to content

Commit 6183218

Browse files
committed
fix send_pickle
1 parent 2b3ad86 commit 6183218

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pylot/drivers/carla_camera_driver_operator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def release_data(self, timestamp):
8181
self._logger.debug("@{}: {} releasing sensor data".format(
8282
timestamp, self.config.name))
8383
watermark_msg = erdos.WatermarkMessage(timestamp)
84-
self._camera_stream.send_pickled(timestamp,
85-
self._pickled_messages[timestamp])
84+
msg = pickle.loads(self._pickled_messages[timestamp])
85+
self._camera_stream.send(msg)
8686
# Note: The operator is set not to automatically propagate
8787
# watermark messages received on input streams. Thus, we can
8888
# issue watermarks only after the simulator callback is invoked.

pylot/drivers/carla_lidar_driver_operator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def release_data(self, timestamp):
7171
self._release_data = True
7272
else:
7373
watermark_msg = erdos.WatermarkMessage(timestamp)
74-
self._lidar_stream.send_pickled(timestamp,
75-
self._pickled_messages[timestamp])
74+
msg = pickle.loads(self._pickled_messages[timestamp])
75+
self._lidar_stream.send(msg)
7676
# Note: The operator is set not to automatically propagate
7777
# watermark messages received on input streams. Thus, we can
7878
# issue watermarks only after the simulator callback is invoked.

0 commit comments

Comments
 (0)