-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Apollo HDmap Traffic Light Deployment #15654
Comments
Not sure if I can help much. Did you try running https://github.com/ApolloAuto/apollo/tree/master/modules/tools/manual_traffic_light to see if this publishes the traffic light messages you are looking for? |
Yes, I do use the manual traffic light to observe. I found that in the Sunnvale map, it publishes traffic light messages, but it doesn’t function properly in my map. Therefore, I’m not sure what the key reason is that the HDmap module does not recognize my traffic light. |
Glad to help. I’ll try my best. I’m not familiar with RoadRunner, but if you send me the Hd map binary file I might be able to take a closer look. |
map_file.zip |
@HandsomeAIccx I have some guesses of where the problem is coming from, but I could not fix it yet. I am still trying to fix the issue and I'll keep you updated. Update Feb 28 13:06:
|
Essentially your HD map has mismatched overlap ids. Lanes and signals need to have the same overlap id for Apollo to recognize signals on lanes. It will be a combination adding overlap id to lanes, signals, hd map itself, and setting correct value for overlap info objects. I managed to set up 3 signals (194, 195, 196) for 1 lane (5_0_1), the process includes using a HD map viewer https://github.com/YuqiHuai/ApolloHDMapViewer to find the signal id and the lane id you want to connect. Running the script I temporarily created to fix HD Map Then manual traffic light / planning module itself should be able to recognize the traffic light. |
I managed to fix (I think) all signal issues in the map. map_file_fixed.zip |
You are amazing. I will try it. The traffic lights in the map are just for test. I will create traffic lights at other accurate locations. I will go and try now. Really appreciate it so much!
|
Always glad to help! I am in the process of building/collecting good tools/scripts to make Apollo easier to work with. I automated the script to fix this map issue https://github.com/YuqiHuai/baidu_apollo_map_tools/blob/main/tools/missing_overlap_relation/add_overlap.py Probably not 100% correct, so please let me know if you see any other issues! |
I followed the guide from the link to set up traffic lights, as shown in the image:
After exporting to Apollo’s format and loading it in Dreamview, I can see the traffic lights displayed, as shown in the image:
However, during simulation, the planning module seems to not recognize these traffic lights. If it did, I would expect to see a signal identified as “unknown” in the planning channel of cyber_monitor, and the vehicle would stop.
For comparison, using Apollo’s built-in “Sunnyvale with Two Offices” map, the traffic lights are recognized as follows:
Therefore, my question is: How can I ensure that the HD map module and the planning module are aware of the deployed traffic lights? Are there any additional steps I need to take in Roadrunner?
System information
apollo.sh config
if onmaster
branch:The text was updated successfully, but these errors were encountered: