-
Notifications
You must be signed in to change notification settings - Fork 682
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
fix(costmap_generator): restrict costmap within parking lot #996
Conversation
@@ -276,7 +276,6 @@ void CostmapGenerator::onLaneletMapBin( | |||
lanelet::utils::conversion::fromBinMsg(*msg, lanelet_map_); | |||
|
|||
if (use_wayarea_) { | |||
loadRoadAreasFromLaneletMap(lanelet_map_, &area_points_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did take this case into consideration but I think the lanes and the parking lot are meant to be overlapped as the comment of "getLinkedParkingLot" indicates.
https://github.com/autowarefoundation/autoware.universe/blob/main/map/lanelet2_extension/lib/query.cpp#L437
Not sure about that, if it is not the convention, maybe some guidelines for map producing should be provided.
Besides, it seems no departure strategy is implemented for parking scenario so far. So I think the car can not reach the blue point from a parking spot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NorahXiong Thank you for your comment!
I did take this case into consideration but I think the lanes and the parking lot are meant to be overlapped as the comment of "getLinkedParkingLot" indicates.
I see. Let me ask other engineers about the map spec. 🙇
@mitsudome-r @xmfcx @yukkysaito Is it reasonable to assume that lanes are overlapped with free spaces in a parking lot?
maybe some guidelines for map producing should be provided.
Yes, it is really desired. But there is no good one, we're sorry about that. 😢
Besides, it seems no departure strategy is implemented for parking scenario so far. So I think the car can not reach the blue point from a parking spot.
In this case, I think the vehicle should start with the lane driving scenario.
(If not, I guess it's a bug.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mitsudome-r @xmfcx @yukkysaito Is it reasonable to assume that lanes are overlapped with free spaces in a parking lot?
IMO, the assumption is ok.
If we don't allow this assumption, some people can make like the following figure (green is the parking area).
Then green area borders must be shared with road lanes. It is difficult to create such a map.
Codecov Report
@@ Coverage Diff @@
## main #996 +/- ##
==========================================
- Coverage 10.92% 10.91% -0.01%
==========================================
Files 1037 1037
Lines 69354 69460 +106
Branches 17824 17826 +2
==========================================
+ Hits 7574 7584 +10
- Misses 53470 53565 +95
- Partials 8310 8311 +1
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I'll ask some people who are familiar with the Parking components. |
@NorahXiong By the way, could you confirm the guidelines and check these boxes, please? |
Confirmed now. |
@NorahXiong use_wayarea: true
use_parkinglot: true if (use_wayarea_) {
loadRoadAreasFromLaneletMap(lanelet_map_, &area_points_);
}
if (use_parkinglot_) {
loadParkingAreasFromLaneletMap(lanelet_map_, &area_points_);
} Please let both |
@TakaHoribe Please let me confirm this sentence. |
From the ASWG discussion, @xmfcx and @mitsudome-r agreed to add a parameter as mentioned by @TakaHoribe 's comment. @NorahXiong Could you modify the code and add a parameter for users to select which map primitives will be used for free space? |
Sure. I will work on it. |
@TakaHoribe could you review this please? |
@xmfcx Sorry for my late. I'll take it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NorahXiong Sorry for the long wait. Thank you for your work! |
Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
…foundation#996) * fix(costmap_generator): restrict costmap within parking lot Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * add parameters for free space planning area selection Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(costmap_generator): restrict costmap within parking lot Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * add parameters for free space planning area selection Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(costmap_generator): restrict costmap within parking lot Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * add parameters for free space planning area selection Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(costmap_generator): restrict costmap within parking lot Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * add parameters for free space planning area selection Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…foundation#996) * fix(costmap_generator): restrict costmap within parking lot Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * add parameters for free space planning area selection Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(costmap_generator): restrict costmap within parking lot Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * add parameters for free space planning area selection Signed-off-by: NorahXiong <norah.xiong@autocore.ai> * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…dar_tracking_algorithm chore(radar_object_tracker): refine radar object tracker
…utowarefoundation#996) feat(avoidance): make it selectable output debug marker from yaml Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: NorahXiong norah.xiong@autocore.ai
Description
fix #947
Related links
#947
Tests performed
Tested in planning simulator.
Before fixing: nearby roads are included in freespace planning boundary
![image](https://user-images.githubusercontent.com/103234047/170967015-2e4301ab-bed2-4769-8d2c-245ad10241bf.png)
After fixing: only parking lot is able for freespace planning
![image](https://user-images.githubusercontent.com/103234047/170967883-2b4185d6-86e7-4135-a6ce-c4482c71f27e.png)
Notes for reviewers
This fixing is only for parking scenario. Not sure if costmap_generator will be used for other scenarios in the future. If so, this fixing may be inappropriate and more comprehensive design is needed.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.