From 95d054e466fec56fad95895b643d62e0fb39471b Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Thu, 24 Aug 2023 14:18:21 +0200 Subject: [PATCH] fix the linter issue and intitialize the rclcpp Time --- .../include/controller_manager/controller_spec.hpp | 1 + controller_manager/test/test_controller_manager.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controller_manager/include/controller_manager/controller_spec.hpp b/controller_manager/include/controller_manager/controller_spec.hpp index 6be358b722..6f7483f3ec 100644 --- a/controller_manager/include/controller_manager/controller_spec.hpp +++ b/controller_manager/include/controller_manager/controller_spec.hpp @@ -20,6 +20,7 @@ #define CONTROLLER_MANAGER__CONTROLLER_SPEC_HPP_ #include +#include #include #include #include "controller_interface/controller_interface.hpp" diff --git a/controller_manager/test/test_controller_manager.cpp b/controller_manager/test/test_controller_manager.cpp index 33f0e6fa27..b4d66f9039 100644 --- a/controller_manager/test/test_controller_manager.cpp +++ b/controller_manager/test/test_controller_manager.cpp @@ -425,7 +425,7 @@ TEST_P(TestControllerUpdateRates, check_the_controller_update_rate) const auto controller_update_rate = test_controller->get_update_rate(); const auto initial_counter = test_controller->internal_counter; - rclcpp::Time time; + rclcpp::Time time = rclcpp::Time(0); for (size_t update_counter = 0; update_counter <= 10 * cm_update_rate; ++update_counter) { EXPECT_EQ(