|
|
@ -47,7 +47,7 @@ def replay(route, loop): |
|
|
|
|
|
|
|
|
|
|
|
if w == 'roadCameraState': |
|
|
|
if w == 'roadCameraState': |
|
|
|
try: |
|
|
|
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 |
|
|
|
img = img[0][:, :, ::-1] # Convert RGB to BGR, which is what the camera outputs |
|
|
|
msg.roadCameraState.image = img.flatten().tobytes() |
|
|
|
msg.roadCameraState.image = img.flatten().tobytes() |
|
|
|
except (KeyError, ValueError): |
|
|
|
except (KeyError, ValueError): |
|
|
|