diff --git a/example_external/CMakeLists.txt b/example_external/CMakeLists.txt index 8ab3d38..dc31603 100644 --- a/example_external/CMakeLists.txt +++ b/example_external/CMakeLists.txt @@ -49,4 +49,10 @@ install( ament_export_targets(export_generate_parameter_library_example_external HAS_LIBRARY_TARGET) ament_export_dependencies(rclcpp rclcpp_components generate_parameter_library_example) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + ament_lint_auto_find_test_dependencies() +endif() + ament_package() diff --git a/example_external/include/generate_parameter_library_example_external/minimal_publisher_external.hpp b/example_external/include/generate_parameter_library_example_external/minimal_publisher_external.hpp index cfca521..9a94120 100644 --- a/example_external/include/generate_parameter_library_example_external/minimal_publisher_external.hpp +++ b/example_external/include/generate_parameter_library_example_external/minimal_publisher_external.hpp @@ -1,5 +1,9 @@ // Copyright 2025 Forssea Robotics // +// All rights reserved. +// +// Software License Agreement (BSD License 2.0) +// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // @@ -28,6 +32,7 @@ #pragma once +#include #include #include @@ -37,7 +42,7 @@ namespace admittance_controller { class MinimalPublisher : public rclcpp::Node { public: - MinimalPublisher(const rclcpp::NodeOptions& options = rclcpp::NodeOptions()); + explicit MinimalPublisher(const rclcpp::NodeOptions& options = rclcpp::NodeOptions()); private: void timer_callback(); diff --git a/example_external/package.xml b/example_external/package.xml index 76d0a48..1339381 100644 --- a/example_external/package.xml +++ b/example_external/package.xml @@ -19,7 +19,11 @@ ament_cmake_core ament_lint_auto - ament_lint_common + ament_cmake_lint_cmake + ament_cmake_cpplint + ament_cmake_cppcheck + ament_cmake_xmllint + ament_cmake_copyright ament_cmake diff --git a/example_external/src/minimal_publisher_external.cpp b/example_external/src/minimal_publisher_external.cpp index bf2396b..d2a6eac 100644 --- a/example_external/src/minimal_publisher_external.cpp +++ b/example_external/src/minimal_publisher_external.cpp @@ -1,5 +1,9 @@ // Copyright 2025 Forssea Robotics // +// All rights reserved. +// +// Software License Agreement (BSD License 2.0) +// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: //