Skip to content
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): divide planner manager modules into dependent slots (#8117) #1882

Open
wants to merge 3 commits into
base: beta/x2_gen2/v0.29
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(autoware_behavior_path_planner) : Removed the use of max_iteratio…
…n_num parameter.

Signed-off-by: k-hazama-esol <k-hazama@esol.co.jp>
k-hazama-esol committed Feb 28, 2025
commit 15be36dcc4025a226097fbadfb252a233a185959
Original file line number Diff line number Diff line change
@@ -367,7 +367,7 @@ class SubPlannerManager
class PlannerManager
{
public:
PlannerManager(rclcpp::Node & node, const size_t max_iteration_num);
PlannerManager(rclcpp::Node & node);

/**
* @brief run all candidate and approved modules.
Original file line number Diff line number Diff line change
@@ -159,7 +159,6 @@ BehaviorPathPlannerParameters BehaviorPathPlannerNode::getCommonParam()
{
BehaviorPathPlannerParameters p{};

p.max_iteration_num = declare_parameter<int>("max_iteration_num");
p.traffic_light_signal_timeout = declare_parameter<double>("traffic_light_signal_timeout");

// vehicle info
Original file line number Diff line number Diff line change
@@ -30,13 +30,12 @@

namespace autoware::behavior_path_planner
{
PlannerManager::PlannerManager(rclcpp::Node & node, const size_t max_iteration_num)
PlannerManager::PlannerManager(rclcpp::Node & node)
: plugin_loader_(
"autoware_behavior_path_planner",
"autoware::behavior_path_planner::SceneModuleManagerInterface"),
logger_(node.get_logger().get_child("planner_manager")),
clock_(*node.get_clock()),
max_iteration_num_{max_iteration_num}
clock_(*node.get_clock())
{
current_route_lanelet_ = std::make_shared<std::optional<lanelet::ConstLanelet>>(std::nullopt);
processing_time_.emplace("total_time", 0.0);