From f587e361f998f3aa14f80bd14ecc87366ac3fc7f Mon Sep 17 00:00:00 2001 From: vinny Date: Mon, 29 Jan 2024 09:59:17 -0500 Subject: [PATCH] adding default to the parameter so that it compiles in Humble --- sw_watchdog/src/simple_heartbeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw_watchdog/src/simple_heartbeat.cpp b/sw_watchdog/src/simple_heartbeat.cpp index 2c6f83f..a7259a7 100644 --- a/sw_watchdog/src/simple_heartbeat.cpp +++ b/sw_watchdog/src/simple_heartbeat.cpp @@ -55,7 +55,7 @@ class SimpleHeartbeat : public rclcpp::Node : Node("simple_heartbeat", options.start_parameter_event_publisher(false). start_parameter_services(false)) { - declare_parameter("period"); + declare_parameter("period", 100); const std::vector& args = this->get_node_options().arguments(); // Parse node arguments