Skip to content

Commit 791c672

Browse files
RyuYamamotochtseng
authored and
chtseng
committed
refactor(localization_util): move diagnostics_module (autowarefoundation#8035)
refactor(localization_util): move diagnostics_module from ndt_scan_matcher to localization_util Signed-off-by: chtseng <chtseng@itri.org.tw>
1 parent c6fde95 commit 791c672

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

localization/localization_util/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ autoware_package()
66

77
ament_auto_add_library(localization_util SHARED
88
src/util_func.cpp
9+
src/diagnostics_module.cpp
910
src/smart_pose_buffer.cpp
1011
src/tree_structured_parzen_estimator.cpp
1112
src/covariance_ellipse.cpp

localization/ndt_scan_matcher/include/ndt_scan_matcher/diagnostics_module.hpp localization/localization_util/include/localization_util/diagnostics_module.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef NDT_SCAN_MATCHER__DIAGNOSTICS_MODULE_HPP_
16-
#define NDT_SCAN_MATCHER__DIAGNOSTICS_MODULE_HPP_
15+
#ifndef LOCALIZATION_UTIL__DIAGNOSTICS_MODULE_HPP_
16+
#define LOCALIZATION_UTIL__DIAGNOSTICS_MODULE_HPP_
1717

1818
#include <rclcpp/rclcpp.hpp>
1919

@@ -57,4 +57,4 @@ void DiagnosticsModule::add_key_value(const std::string & key, const std::string
5757
template <>
5858
void DiagnosticsModule::add_key_value(const std::string & key, const bool & value);
5959

60-
#endif // NDT_SCAN_MATCHER__DIAGNOSTICS_MODULE_HPP_
60+
#endif // LOCALIZATION_UTIL__DIAGNOSTICS_MODULE_HPP_

localization/ndt_scan_matcher/src/diagnostics_module.cpp localization/localization_util/src/diagnostics_module.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "ndt_scan_matcher/diagnostics_module.hpp"
15+
#include "localization_util/diagnostics_module.hpp"
1616

1717
#include <rclcpp/rclcpp.hpp>
1818

localization/ndt_scan_matcher/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ find_package(PCL REQUIRED COMPONENTS common io registration)
2626
include_directories(${PCL_INCLUDE_DIRS})
2727

2828
ament_auto_add_library(${PROJECT_NAME} SHARED
29-
src/diagnostics_module.cpp
3029
src/map_update_module.cpp
3130
src/ndt_scan_matcher_core.cpp
3231
src/particle.cpp

localization/ndt_scan_matcher/include/ndt_scan_matcher/map_update_module.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#ifndef NDT_SCAN_MATCHER__MAP_UPDATE_MODULE_HPP_
1616
#define NDT_SCAN_MATCHER__MAP_UPDATE_MODULE_HPP_
1717

18+
#include "localization_util/diagnostics_module.hpp"
1819
#include "localization_util/util_func.hpp"
19-
#include "ndt_scan_matcher/diagnostics_module.hpp"
2020
#include "ndt_scan_matcher/hyper_parameters.hpp"
2121
#include "ndt_scan_matcher/particle.hpp"
2222

localization/ndt_scan_matcher/include/ndt_scan_matcher/ndt_scan_matcher_core.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
#define FMT_HEADER_ONLY
1919

20+
#include "localization_util/diagnostics_module.hpp"
2021
#include "localization_util/smart_pose_buffer.hpp"
21-
#include "ndt_scan_matcher/diagnostics_module.hpp"
2222
#include "ndt_scan_matcher/hyper_parameters.hpp"
2323
#include "ndt_scan_matcher/map_update_module.hpp"
2424

0 commit comments

Comments
 (0)