Skip to content

Commit

Permalink
fix unlog_segment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed May 18, 2021
1 parent 22cf2e6 commit 679919a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/replay/unlog_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def replay(route, loop):

if w == 'roadCameraState':
try:
img = fr.get(frame_idx[msg.frame.frameId], pix_fmt="rgb24")
img = fr.get(frame_idx[msg.roadCameraState.frameId], pix_fmt="rgb24")
img = img[0][:, :, ::-1] # Convert RGB to BGR, which is what the camera outputs
msg.roadCameraState.image = img.flatten().tobytes()
except (KeyError, ValueError):
Expand Down

0 comments on commit 679919a

Please sign in to comment.