-
Notifications
You must be signed in to change notification settings - Fork 683
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
refactor(bpp): use pluginlib to load scene module #5771
refactor(bpp): use pluginlib to load scene module #5771
Conversation
SideShiftParameters p{}; | ||
|
||
std::string ns = "side_shift."; |
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.
std::string ns = "side_shift."; | |
const std::string ns = "side_shift."; |
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.
and others
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.
void PlannerManager::removeScenePlugin(rclcpp::Node & node, const std::string & name) | ||
{ | ||
auto it = std::remove_if(manager_ptrs_.begin(), manager_ptrs_.end(), [&](const auto plugin) { | ||
return plugin->name() == name; | ||
}); | ||
|
||
if (it == manager_ptrs_.end()) { | ||
RCLCPP_WARN_STREAM( | ||
node.get_logger(), | ||
"The scene plugin '" << name << "' is not found in the registered modules."); | ||
} else { | ||
manager_ptrs_.erase(it, manager_ptrs_.end()); | ||
processing_time_.erase(name); | ||
RCLCPP_INFO_STREAM(node.get_logger(), "The scene plugin '" << name << "' is unloaded."); | ||
} | ||
} | ||
|
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.
just a question.
this is not currently used, but is this a mechanism to dynamically disable modules in the future?
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.
YES.
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
4ff450e
to
81332c9
Compare
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.
LGTM! thanks!"
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
81332c9
to
147db3e
Compare
…#5771) * refactor(bpp): use pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(tier4_planning_launch): update launcher Signed-off-by: satoshi-ota <[email protected]> * refactor(avoidance): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(lane_change): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(dynamic_avoidance): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(goal_planner): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(side_shift): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(start_planner): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(bpp): move interface Signed-off-by: satoshi-ota <[email protected]> * fix(bpp): add const Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
…#5771) * refactor(bpp): use pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(tier4_planning_launch): update launcher Signed-off-by: satoshi-ota <[email protected]> * refactor(avoidance): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(lane_change): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(dynamic_avoidance): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(goal_planner): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(side_shift): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(start_planner): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(bpp): move interface Signed-off-by: satoshi-ota <[email protected]> * fix(bpp): add const Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]> Signed-off-by: karishma <[email protected]>
…#5771) * refactor(bpp): use pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(tier4_planning_launch): update launcher Signed-off-by: satoshi-ota <[email protected]> * refactor(avoidance): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(lane_change): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(dynamic_avoidance): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(goal_planner): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(side_shift): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(start_planner): support pluginlib Signed-off-by: satoshi-ota <[email protected]> * refactor(bpp): move interface Signed-off-by: satoshi-ota <[email protected]> * fix(bpp): add const Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
Description
🤖[deprecated] Generated by Copilot at 4ff450e
This pull request refactors the behavior path planner node and its scene modules to use pluginlib for dynamic plugin loading and unloading. It also simplifies the launch and configuration of the node and its modules, and fixes some minor bugs and issues. It modifies several files, including launch files, CMakeLists.txt, header and source files, package.xml, and plugins.xml.
Tests performed
Confirmed that bpp loaded all scene modules correctly.
Effects on system behavior
Not applicable.
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.