|
|
|
@ -3,6 +3,7 @@ import os |
|
|
|
|
import time |
|
|
|
|
import threading |
|
|
|
|
from tqdm import tqdm |
|
|
|
|
from tools.lib.route import Route |
|
|
|
|
|
|
|
|
|
os.environ['FILEREADER_CACHE'] = '1' |
|
|
|
|
|
|
|
|
@ -87,13 +88,15 @@ if __name__ == "__main__": |
|
|
|
|
print("\033[34m", f"cd {BASEDIR} && git clone https://github.com/commaai/panda_jungle", "\033[0m") |
|
|
|
|
|
|
|
|
|
print("Loading log...") |
|
|
|
|
ROUTE = "77611a1fac303767/2020-03-24--09-50-38" |
|
|
|
|
REPLAY_SEGS = list(range(10, 16)) # route has 82 segments available |
|
|
|
|
ROUTE = "cfb32f0fb91b173b|2022-04-06--14-54-45" |
|
|
|
|
REPLAY_SEGS = list(range(21, 22)) # route has 82 segments available |
|
|
|
|
CAN_MSGS = [] |
|
|
|
|
for i in tqdm(REPLAY_SEGS): |
|
|
|
|
log_url = f"https://commadataci.blob.core.windows.net/openpilotci/{ROUTE}/{i}/rlog.bz2" |
|
|
|
|
r = Route(ROUTE) |
|
|
|
|
# log_url = f"https://commadataci.blob.core.windows.net/openpilotci/{ROUTE}/{i}/rlog.bz2" |
|
|
|
|
log_url = r.log_paths()[i] |
|
|
|
|
lr = LogReader(log_url) |
|
|
|
|
CAN_MSGS += [can_capnp_to_can_list(m.can) for m in lr if m.which() == 'can'] |
|
|
|
|
CAN_MSGS += [can_capnp_to_can_list(m.can) for m in lr if m.which() == 'can'][17*100:24*100] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# set both to cycle ignition |
|
|
|
|