From 1fd3dce3bba38e7a2b3dc98b11cd43261525393a Mon Sep 17 00:00:00 2001 From: mhubii Date: Thu, 7 Dec 2023 13:14:41 +0000 Subject: [PATCH] utils -> filters --- lbr_fri_ros2/CMakeLists.txt | 2 +- lbr_fri_ros2/include/lbr_fri_ros2/command_interface.hpp | 2 +- .../include/lbr_fri_ros2/{utils.hpp => filters.hpp} | 6 +++--- lbr_fri_ros2/include/lbr_fri_ros2/state_interface.hpp | 2 +- lbr_fri_ros2/src/{utils.cpp => filters.cpp} | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename lbr_fri_ros2/include/lbr_fri_ros2/{utils.hpp => filters.hpp} (97%) rename lbr_fri_ros2/src/{utils.cpp => filters.cpp} (98%) diff --git a/lbr_fri_ros2/CMakeLists.txt b/lbr_fri_ros2/CMakeLists.txt index dd2211d5..cddd0a7a 100644 --- a/lbr_fri_ros2/CMakeLists.txt +++ b/lbr_fri_ros2/CMakeLists.txt @@ -30,8 +30,8 @@ add_library(lbr_fri_ros2 src/client.cpp src/command_guard.cpp src/command_interface.cpp + src/filters.cpp src/state_interface.cpp - src/utils.cpp ) target_include_directories(lbr_fri_ros2 diff --git a/lbr_fri_ros2/include/lbr_fri_ros2/command_interface.hpp b/lbr_fri_ros2/include/lbr_fri_ros2/command_interface.hpp index 0137bbba..64d7c09c 100644 --- a/lbr_fri_ros2/include/lbr_fri_ros2/command_interface.hpp +++ b/lbr_fri_ros2/include/lbr_fri_ros2/command_interface.hpp @@ -12,7 +12,7 @@ #include "lbr_fri_msgs/msg/lbr_command.hpp" #include "lbr_fri_ros2/command_guard.hpp" -#include "lbr_fri_ros2/utils.hpp" +#include "lbr_fri_ros2/filters.hpp" namespace lbr_fri_ros2 { class CommandInterface { diff --git a/lbr_fri_ros2/include/lbr_fri_ros2/utils.hpp b/lbr_fri_ros2/include/lbr_fri_ros2/filters.hpp similarity index 97% rename from lbr_fri_ros2/include/lbr_fri_ros2/utils.hpp rename to lbr_fri_ros2/include/lbr_fri_ros2/filters.hpp index 14806aa8..ea15392b 100644 --- a/lbr_fri_ros2/include/lbr_fri_ros2/utils.hpp +++ b/lbr_fri_ros2/include/lbr_fri_ros2/filters.hpp @@ -1,5 +1,5 @@ -#ifndef LBR_FRI_ROS2__UTILS_HPP_ -#define LBR_FRI_ROS2__UTILS_HPP_ +#ifndef LBR_FRI_ROS2__FILTERS_HPP_ +#define LBR_FRI_ROS2__FILTERS_HPP_ #include #include @@ -130,4 +130,4 @@ class JointPIDArray { pid_array_t pid_controllers_; /**< PID controllers for each joint.*/ }; } // end of namespace lbr_fri_ros2 -#endif // LBR_FRI_ROS2__UTILS_HPP_ +#endif // LBR_FRI_ROS2__FILTERS_HPP_ diff --git a/lbr_fri_ros2/include/lbr_fri_ros2/state_interface.hpp b/lbr_fri_ros2/include/lbr_fri_ros2/state_interface.hpp index 66e43a66..42374c25 100644 --- a/lbr_fri_ros2/include/lbr_fri_ros2/state_interface.hpp +++ b/lbr_fri_ros2/include/lbr_fri_ros2/state_interface.hpp @@ -8,7 +8,7 @@ #include "friLBRClient.h" #include "lbr_fri_msgs/msg/lbr_state.hpp" -#include "lbr_fri_ros2/utils.hpp" +#include "lbr_fri_ros2/filters.hpp" namespace lbr_fri_ros2 { class StateInterface { diff --git a/lbr_fri_ros2/src/utils.cpp b/lbr_fri_ros2/src/filters.cpp similarity index 98% rename from lbr_fri_ros2/src/utils.cpp rename to lbr_fri_ros2/src/filters.cpp index a29ee1fe..017e37a1 100644 --- a/lbr_fri_ros2/src/utils.cpp +++ b/lbr_fri_ros2/src/filters.cpp @@ -1,4 +1,4 @@ -#include "lbr_fri_ros2/utils.hpp" +#include "lbr_fri_ros2/filters.hpp" namespace lbr_fri_ros2 { ExponentialFilter::ExponentialFilter() : ExponentialFilter::ExponentialFilter(0, 0.0) {}