|Volkswagen|Jetta GLI 2021|Driver Assistance|<ahref="##"><imgvalign="top"src="assets/icon-star-empty.svg"width="22"/></a>|<ahref="##"><imgvalign="top"src="assets/icon-star-full.svg"width="22"/></a>|<ahref="##"><imgvalign="top"src="assets/icon-star-full.svg"width="22"/></a>|<ahref="##"><imgvalign="top"src="assets/icon-star-full.svg"width="22"/></a>|<ahref="##"><imgvalign="top"src="assets/icon-star-full.svg"width="22"/></a>|
HYBRID_CAR={CAR.IONIQ_PHEV,CAR.ELANTRA_HEV_2021,CAR.KIA_NIRO_HEV,CAR.KIA_NIRO_HEV_2021,CAR.SONATA_HYBRID,CAR.KONA_HEV,CAR.IONIQ,CAR.IONIQ_HEV_2022,CAR.SANTA_FE_HEV_2022,CAR.SANTA_FE_PHEV_2022,CAR.IONIQ_PHEV_2019}# these cars use a different gas signal
print("%2d%4d%.3f%.3f roll %6.2f ms latency %6.2f ms + %6.2f ms + %6.2f ms = %6.2f ms"%(len(msgs),evta.idx.encodeId,evt.logMonoTime/1e9,evta.idx.timestampEof/1e6,frame_latency,process_latency,network_latency,pc_latency,process_latency+network_latency+pc_latency),len(evta.data),sock_name)
if__name__=="__main__":
parser=argparse.ArgumentParser(description='Decode video streams and broacast on VisionIPC')
parser.add_argument("addr",help="Address of comma 3")
parser.add_argument('--nvidia',action='store_true',help='Use nvidia instead of ffmpeg')
parser=argparse.ArgumentParser(description="Decode video streams and broacast on VisionIPC")
parser.add_argument("addr",help="Address of comma three")
parser.add_argument("--nvidia",action="store_true",help="Use nvidia instead of ffmpeg")
parser.add_argument("--cams",default="0,1,2",help="Cameras to decode")
--relative Make timestamps relative to the start of each frame (default: False)
--demo Use the demo route instead of providing one (default: False)
--plot If a plot should be generated (default: False)
--offset Offset service to better visualize overlap (default: False)
```
To timestamp an event, use `LOGT("msg")` in c++ code or `cloudlog.timestamp("msg")` in python code. If the print is warning for frameId assignment ambiguity, use `LOGT(frameId ,"msg")`.
## Examples
Plotting with relative starts each process at time=0 and gives a nice overview. Timestamps are visualized as diamonds. The opacity allows for visualization of overlapping services.