Skip to content

Commit a4db80b

Browse files
committed
Fix default param
Signed-off-by: Francisco Martín Rico <[email protected]>
1 parent ea92736 commit a4db80b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plansys2_executor/test/unit/executor_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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<double>("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);

0 commit comments

Comments
 (0)