File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
plansys2_executor/test/unit
plansys2_planner/include/plansys2_planner Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1565,7 +1565,8 @@ TEST(problem_expert, action_timeout)
15651565 pkgpath + " /test_behavior_trees/test_action_timeout_bt.xml" });
15661566 executor_node->set_parameter ({" action_timeouts.actions" , std::vector<std::string>({" move" })});
15671567 // have to declare because the actions vector above was not available at node creation
1568- executor_node->declare_parameter (" action_timeouts.move.duration_overrun_percentage" );
1568+ executor_node->declare_parameter <double >(
1569+ " action_timeouts.move.duration_overrun_percentage" , 1.0 );
15691570 executor_node->set_parameter ({" action_timeouts.move.duration_overrun_percentage" , 1.0 });
15701571
15711572 rclcpp::executors::MultiThreadedExecutor exe (rclcpp::ExecutorOptions (), 8 );
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ std::string get_plugin_type_param(
9191 NodeT node,
9292 const std::string & plugin_name)
9393{
94- declare_parameter_if_not_declared (node, plugin_name + " .plugin" );
94+ declare_parameter_if_not_declared (node, plugin_name + " .plugin" , rclcpp::ParameterValue ( " " ) );
9595 std::string plugin_type;
9696 if (!node->get_parameter (plugin_name + " .plugin" , plugin_type)) {
9797 RCLCPP_FATAL (node->get_logger (), " 'plugin' param not defined for %s" , plugin_name.c_str ());
You can’t perform that action at this time.
0 commit comments