diff --git a/core/include/moveit/task_constructor/solvers/pipeline_planner.h b/core/include/moveit/task_constructor/solvers/pipeline_planner.h index 57d3f5788..3a2bbe0e1 100644 --- a/core/include/moveit/task_constructor/solvers/pipeline_planner.h +++ b/core/include/moveit/task_constructor/solvers/pipeline_planner.h @@ -81,7 +81,7 @@ class PipelinePlanner : public PlannerInterface */ PipelinePlanner(const rclcpp::Node::SharedPtr& node, const std::unordered_map& pipeline_id_planner_id_map, - const std::unordered_map planning_pipelines = + const std::unordered_map& planning_pipelines = std::unordered_map(), const moveit::planning_pipeline_interfaces::StoppingCriterionFunction& stopping_criterion_callback = &moveit::planning_pipeline_interfaces::stopAtFirstSolution, const moveit::planning_pipeline_interfaces::SolutionSelectionFunction& solution_selection_function = &moveit::planning_pipeline_interfaces::getShortestSolution); diff --git a/core/src/solvers/pipeline_planner.cpp b/core/src/solvers/pipeline_planner.cpp index f985d998d..5a701723f 100644 --- a/core/src/solvers/pipeline_planner.cpp +++ b/core/src/solvers/pipeline_planner.cpp @@ -67,7 +67,7 @@ PipelinePlanner::PipelinePlanner(const rclcpp::Node::SharedPtr& node, const std: PipelinePlanner::PipelinePlanner( const rclcpp::Node::SharedPtr& node, const std::unordered_map& pipeline_id_planner_id_map, - const std::unordered_map planning_pipelines, + const std::unordered_map& planning_pipelines, const moveit::planning_pipeline_interfaces::StoppingCriterionFunction& stopping_criterion_callback, const moveit::planning_pipeline_interfaces::SolutionSelectionFunction& solution_selection_function) : node_(node)