Open blabla-my opened 2 years ago
@blabla-my I will check in the weekend and let you know.
@hatem-darweesh Thank you!
There are two more details:
I will upload some diff files later.
Thanks again :D
Hi @blabla-my , Sorry for my late reply.
This is a very nice solution, it show good understanding to the OpenPlanner library. One suggestion to improve performance:
Thanks @hatem-darweesh, I will try to do some optimization. if the results are good, I will try to send a pull request for this solution.
Problem describtion and previous solution
Sometimes the ego car will drive out of the road since there are no definitions of curbs in the map which can block rollouts as obstacles.
This problem has been described in this issue: https://github.com/autowarefoundation/autoware_ai_planning/issues/54 . And there has been one solution that adds the curb definitions to the map: https://github.com/hatem-darweesh/autoware.ai.openplanner/issues/5
Our solution
We implement another solution which dynamically filters the rollouts that are outside of the drivable area. Our patch method is:
Demonstration videos
To demonstrate that the patch is working correctly, we made four videos as below:
https://user-images.githubusercontent.com/55621094/192413599-89c3e7ee-602f-4d8d-b8b8-b205fb771831.mp4
https://user-images.githubusercontent.com/55621094/192414432-c42a18c4-bd29-4644-9773-a85af0642797.mp4
https://user-images.githubusercontent.com/55621094/192414531-25dc9603-9e07-48df-8228-e8dcefba81db.mp4
https://user-images.githubusercontent.com/55621094/192414553-349a7bd7-c262-4bb2-a46a-c6a228914d12.mp4
Patch details
A function to judge if a given waypoint is inside of the map using PlanningHelpers:
A function to filter the rollouts in TrajectoryEvaluator.cpp, this function is called in TrajectoryEvaluator::doOneStep:
@hatem-darweesh Hello Hatem :) , Can you help to check if this solution is reasonable ?