Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some "lane_id" fileds in traffic light data Could Not be found in map #37

Open
pyred-t opened this issue Dec 24, 2024 · 0 comments
Open

Comments

@pyred-t
Copy link

pyred-t commented Dec 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant