Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion plansys2_executor/test/unit/executor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,8 @@ TEST(problem_expert, action_timeout)
pkgpath + "/test_behavior_trees/test_action_timeout_bt.xml"});
executor_node->set_parameter({"action_timeouts.actions", std::vector<std::string>({"move"})});
// have to declare because the actions vector above was not available at node creation
executor_node->declare_parameter("action_timeouts.move.duration_overrun_percentage");
executor_node->declare_parameter<double>(
"action_timeouts.move.duration_overrun_percentage", 1.0);
executor_node->set_parameter({"action_timeouts.move.duration_overrun_percentage", 1.0});

rclcpp::executors::MultiThreadedExecutor exe(rclcpp::ExecutorOptions(), 8);
Expand Down
2 changes: 1 addition & 1 deletion plansys2_planner/include/plansys2_planner/PlannerNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ std::string get_plugin_type_param(
NodeT node,
const std::string & plugin_name)
{
declare_parameter_if_not_declared(node, plugin_name + ".plugin");
declare_parameter_if_not_declared(node, plugin_name + ".plugin", rclcpp::ParameterValue(""));
std::string plugin_type;
if (!node->get_parameter(plugin_name + ".plugin", plugin_type)) {
RCLCPP_FATAL(node->get_logger(), "'plugin' param not defined for %s", plugin_name.c_str());
Expand Down