From d135b114c0af14a043935f24dbd300687abf0ae7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 06:06:31 +0000 Subject: [PATCH] style(pre-commit): autofix --- .../component_interface_specs/localization.hpp | 2 +- .../autoware/component_interface_specs/perception.hpp | 2 +- .../autoware/component_interface_specs/planning.hpp | 2 +- .../autoware/component_interface_specs/utils.hpp | 10 ++++++---- .../test/test_localization.cpp | 1 - 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/localization.hpp b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/localization.hpp index fdf668a4cd..744d5d28ab 100644 --- a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/localization.hpp +++ b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/localization.hpp @@ -44,4 +44,4 @@ struct Acceleration } // namespace autoware::component_interface_specs::localization -#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_ \ No newline at end of file +#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_ diff --git a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/perception.hpp b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/perception.hpp index 53bef8a5e0..2d5d3f3106 100644 --- a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/perception.hpp +++ b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/perception.hpp @@ -34,4 +34,4 @@ struct ObjectRecognition } // namespace autoware::component_interface_specs::perception -#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PERCEPTION_HPP_ \ No newline at end of file +#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PERCEPTION_HPP_ diff --git a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/planning.hpp b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/planning.hpp index 019cf717bf..9f3d7d508a 100644 --- a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/planning.hpp +++ b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/planning.hpp @@ -44,4 +44,4 @@ struct Trajectory } // namespace autoware::component_interface_specs::planning -#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PLANNING_HPP_ \ No newline at end of file +#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PLANNING_HPP_ diff --git a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/utils.hpp b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/utils.hpp index 0abecdf272..b01e356131 100644 --- a/common/autoware_component_interface_specs/include/autoware/component_interface_specs/utils.hpp +++ b/common/autoware_component_interface_specs/include/autoware/component_interface_specs/utils.hpp @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef AUTOWARE__COMPONENT_INTERFACE_SPECS__BASE_HPP_ -#define AUTOWARE__COMPONENT_INTERFACE_SPECS__BASE_HPP_ +#ifndef AUTOWARE__COMPONENT_INTERFACE_SPECS__UTILS_HPP_ +#define AUTOWARE__COMPONENT_INTERFACE_SPECS__UTILS_HPP_ #include @@ -27,9 +27,11 @@ namespace autoware::component_interface_specs template rclcpp::QoS get_qos(T interface) { - return rclcpp::QoS{interface.depth}.reliability(interface.reliability).durability(interface.durability); + return rclcpp::QoS{interface.depth} + .reliability(interface.reliability) + .durability(interface.durability); } } // namespace autoware::component_interface_specs -#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__BASE_HPP_ +#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__UTILS_HPP_ diff --git a/common/autoware_component_interface_specs/test/test_localization.cpp b/common/autoware_component_interface_specs/test/test_localization.cpp index a85acdc0af..9f1c4fb9e8 100644 --- a/common/autoware_component_interface_specs/test/test_localization.cpp +++ b/common/autoware_component_interface_specs/test/test_localization.cpp @@ -25,7 +25,6 @@ TEST(localization, interface) EXPECT_EQ(kinematic_state.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE); EXPECT_EQ(kinematic_state.durability, RMW_QOS_POLICY_DURABILITY_VOLATILE); - const auto qos = autoware::component_interface_specs::get_qos(kinematic_state); EXPECT_EQ(qos.depth(), depth); EXPECT_EQ(qos.reliability(), rclcpp::ReliabilityPolicy::Reliable);