-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi, I was trying to match "lane_id" in traffic light to the map. Howerver, I found some "lane_id" can't be found in the map, such as V2X-Seq-TFD/single-infrastructure/traffic-light/train/1000.csv
,where 114568_1_-1 and others are not accessible through all the yizhuang_hdmap{1-28} map files.
city,timestamp,x,y,direction,lane_id,intersect_id,color_1,remain_1,color_2,remain_2,color_3,remain_3
PEK,1635313837.6,419046.739244723,4732345.46734611,EAST,114568_1_-1,yizhuang#7-1_po,RED,36,GREEN,17,YELLOW,4
PEK,1635313837.6,419049.40061135,4732346.87388446,EAST,103229_1_-1,yizhuang#7-1_po,GREEN,30,YELLOW,4,RED,104
...
Here is how I mange to print all the lane_ids in maps and to try to find a coresponding one.
land_id_txt = 'land_id.txt'
with open(land_id_txt, 'w+') as f1:
for map in tqdm(maps, desc='merge_map_json'):
with open(os.path.join(map_dir, map), encoding='utf-8') as f:
lane_ids = json.load(f)['LANE'].keys()
f1.write(f'[MAP]{map}\n')
for lane_id in lane_ids:
f1.write(f'{lane_id}\n')
I am wondering if the maps are completed or that may be some error of data processing in traffic light dataset.
Thanks for attention.
Metadata
Metadata
Assignees
Labels
No labels