-
Notifications
You must be signed in to change notification settings - Fork 676
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
feat(behavior_path_planner): revise behavior planner to work with dynamic lanelets #6393
base: main
Are you sure you want to change the base?
feat(behavior_path_planner): revise behavior planner to work with dynamic lanelets #6393
Conversation
b06513c
to
cf221be
Compare
lanelet::LaneletMapPtr map = route_handler->getLaneletMapPtr(); | ||
lanelet::ConstLanelets all_lanelets = lanelet::utils::query::laneletLayer(map); | ||
lanelet::ConstLanelets route_lanelets = route_handler->getRouteLanelets(); | ||
for (auto it = route_lanelets.rbegin(); it != route_lanelets.rend(); ++it) { | ||
for (auto it2 = all_lanelets.rbegin(); it2 != all_lanelets.rend(); ++it2) { | ||
if ((*it).id() == (*it2).id()) { | ||
// std::cout << "Route lanelet id: " << (*it).id() << std::endl; | ||
// select the lanelet goal lanelet | ||
goal_lane = *it2; | ||
return false; | ||
} | ||
} | ||
} |
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 think we can keep the goal pose.
For the goal_lane, if the behavior planner doesn't work without this modification we can keep it. However, I would like to add new parameter use_differential_map_loading
, and update goal lane only when this parameter is set true.
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.
Hey @mitsudome-r,
I added the parameter you mentioned starting from planning.launch.xml
first. I used this parameter both within the planning module and when specifying the input lanelet topic. Should I also include this parameter in autoware.launch.xml
? If I add it to autoware.launch.xml
, I believe I can use the same parameter for both the map and planning.
This pull request has been automatically marked as stale because it has not had recent activity. |
9322571
to
0a630d5
Compare
Signed-off-by: Barış Zeren <bzeren1819@gmail.com>
Signed-off-by: Barış Zeren <bzeren1819@gmail.com>
Signed-off-by: Barış Zeren <bzeren1819@gmail.com>
Signed-off-by: Barış Zeren <bzeren1819@gmail.com>
Signed-off-by: Barış Zeren <bzeren1819@gmail.com>
Signed-off-by: Barış Zeren <baris@leodrive.ai>
3e4dfba
to
eee5d51
Compare
Signed-off-by: Barış Zeren <baris@leodrive.ai>
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.
Tested along with all the related PRs and the provided lanelet map and it works very well.
I think the feature should still be considered a prototype requiring more testing, and it needs to be made clear in some part of the documentation.
For example, updates of the map may incur spikes in the processing time of some planning modules.
@rej55 @kosuke55 @soblin @takayuki5168 @zulfaqar-azmi-t4 @danielsanchezaran @satoshi-ota @shmpwk @TakaHoribe @tkimura4 @kyoichi-sugahara @TomohitoAndo @mkuri @taikitanaka3 @go-sakayori @mkquda |
This pull request has been automatically marked as stale because it has not had recent activity. |
@StepTurtle @maxime-clem it seems this PR became stale, even tough it was approved, is there a plan to fix the conflicts and merge? |
Hey @danielsanchezaran, There are other PRs which should be merged before this one. So this one is waiting the others PRs: https://github.com/orgs/autowarefoundation/discussions/4120#discussioncomment-8310365 |
I have made it to draft until the dependent PR is merged. |
Description
Dynamically load Lanelet2 maps required for the current driving situation, aiming to avoid time consumption and reduce computational costs in the planning pipeline, while also addressing long-term issues associated with Lanelet2 map projection.
Related links
Proposal Link
Tests performed
You can check the update comment in proposal to see current test results.
Notes for reviewers
Interface changes
Effects on system behavior
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.