Skip to content

Commit ecc93f1

Browse files
sasakisasakipre-commit-ci[bot]mitsudome-rSakodaShintaro
authored
feat: apply autoware_ prefix for control_performance_analysis (autowarefoundation#9982)
* feat(control_performance_analysis): apply `autoware_` prefix (see below): Note: * In this commit, I did not organize a folder structure. The folder structure will be organized in the next some commits. * The changes will follow the Autoware's guideline as below: - https://autowarefoundation.github.io/autoware-documentation/main/contributing/coding-guidelines/ros-nodes/directory-structure/#package-folder Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * rename(control_performance_analysis): move headers under `include/autoware`: * Fixes due to this changes for .hpp/.cpp files will be applied in the next commit Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * fix(control_performance_analysis): fix include paths * To follow the previous commit Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * rename: `control_performance_analysis` => `autoware_control_performance_analysis` Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * style(pre-commit): autofix * bug(autoware_control_performance_analysis): fix inconsistent namespacing Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * style(pre-commit): autofix * update(autoware_control_performance_analysis): `README.md` Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * bug(autoware_control_performance_analysis): fix critical bugs that contaminate topic name Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> * style(pre-commit): autofix * fix: update package name for error_rqt_multiplot.xml Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> * fix: update package name for control_performance_plot.py Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> * docs(autoware_control_performance_analysis): update package name in README and CHANGELOG.rst Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp> Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> Co-authored-by: SakodaShintaro <shintaro.sakoda@tier4.jp>
1 parent 2169394 commit ecc93f1

22 files changed

+110
-108
lines changed

control/control_performance_analysis/CHANGELOG.rst control/autoware_control_performance_analysis/CHANGELOG.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2-
Changelog for package control_performance_analysis
3-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package autoware_control_performance_analysis
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

55
0.40.0 (2024-12-12)
66
-------------------

control/control_performance_analysis/CMakeLists.txt control/autoware_control_performance_analysis/CMakeLists.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.14)
2-
project(control_performance_analysis)
2+
project(autoware_control_performance_analysis)
33

44
find_package(autoware_cmake REQUIRED)
55
autoware_package()
@@ -19,7 +19,7 @@ find_package(rosidl_default_generators REQUIRED)
1919
find_package(std_msgs REQUIRED)
2020

2121
rosidl_generate_interfaces(
22-
control_performance_analysis
22+
${PROJECT_NAME}
2323
"msg/Error.msg"
2424
"msg/ErrorStamped.msg"
2525
"msg/DrivingMonitorStamped.msg"
@@ -40,12 +40,12 @@ ament_auto_add_library(
4040

4141
if(${rosidl_cmake_VERSION} VERSION_LESS 2.5.0)
4242
rosidl_target_interfaces(control_performance_analysis_node
43-
control_performance_analysis "rosidl_typesupport_cpp")
43+
${PROJECT_NAME} "rosidl_typesupport_cpp")
4444
rosidl_target_interfaces(control_performance_analysis_core
45-
control_performance_analysis "rosidl_typesupport_cpp")
45+
${PROJECT_NAME} "rosidl_typesupport_cpp")
4646
else()
4747
rosidl_get_typesupport_target(
48-
cpp_typesupport_target control_performance_analysis "rosidl_typesupport_cpp")
48+
cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
4949
target_link_libraries(control_performance_analysis_node "${cpp_typesupport_target}")
5050
target_link_libraries(control_performance_analysis_core "${cpp_typesupport_target}")
5151

@@ -58,8 +58,8 @@ target_link_libraries(
5858

5959
rclcpp_components_register_node(
6060
control_performance_analysis_node
61-
PLUGIN "control_performance_analysis::ControlPerformanceAnalysisNode"
62-
EXECUTABLE control_performance_analysis_exe
61+
PLUGIN "autoware::control_performance_analysis::ControlPerformanceAnalysisNode"
62+
EXECUTABLE ${PROJECT_NAME}_node
6363
)
6464

6565
ament_auto_package(

control/control_performance_analysis/README.md control/autoware_control_performance_analysis/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# control_performance_analysis
1+
# autoware_control_performance_analysis
22

33
## Purpose
44

5-
`control_performance_analysis` is the package to analyze the tracking performance of a control module and monitor the driving status of the vehicle.
5+
`autoware_control_performance_analysis` is the package to analyze the tracking performance of a control module and monitor the driving status of the vehicle.
66

77
This package is used as a tool to quantify the results of the control module.
88
That's why it doesn't interfere with the core logic of autonomous driving.
99

10-
Based on the various input from planning, control, and vehicle, it publishes the result of analysis as `control_performance_analysis::msg::ErrorStamped` defined in this package.
10+
Based on the various input from planning, control, and vehicle, it publishes the result of analysis as `autoware_control_performance_analysis::msg::ErrorStamped` defined in this package.
1111

1212
All results in `ErrorStamped` message are calculated in Frenet Frame of curve. Errors and velocity errors are calculated by using paper below.
1313

@@ -35,14 +35,14 @@ Error acceleration calculations are made based on the velocity calculations abov
3535

3636
### Output topics
3737

38-
| Name | Type | Description |
39-
| --------------------------------------- | -------------------------------------------------------- | --------------------------------------------------- |
40-
| `/control_performance/performance_vars` | control_performance_analysis::msg::ErrorStamped | The result of the performance analysis. |
41-
| `/control_performance/driving_status` | control_performance_analysis::msg::DrivingMonitorStamped | Driving status (acceleration, jerk etc.) monitoring |
38+
| Name | Type | Description |
39+
| --------------------------------------- | ----------------------------------------------------------------- | --------------------------------------------------- |
40+
| `/control_performance/performance_vars` | autoware_control_performance_analysis::msg::ErrorStamped | The result of the performance analysis. |
41+
| `/control_performance/driving_status` | autoware_control_performance_analysis::msg::DrivingMonitorStamped | Driving status (acceleration, jerk etc.) monitoring |
4242

4343
### Outputs
4444

45-
#### control_performance_analysis::msg::DrivingMonitorStamped
45+
#### autoware_control_performance_analysis::msg::DrivingMonitorStamped
4646

4747
| Name | Type | Description |
4848
| ---------------------------- | ----- | --------------------------------------------------------------------- |
@@ -53,7 +53,7 @@ Error acceleration calculations are made based on the velocity calculations abov
5353
| `desired_steering_angle` | float | $[ \mathrm{rad} ]$ |
5454
| `controller_processing_time` | float | Timestamp between last two control command messages $[ \mathrm{ms} ]$ |
5555

56-
#### control_performance_analysis::msg::ErrorStamped
56+
#### autoware_control_performance_analysis::msg::ErrorStamped
5757

5858
| Name | Type | Description |
5959
| ------------------------------------------ | ----- | ----------------------------------------------------------------------------------------------------------------------------------------- |

control/control_performance_analysis/config/error_rqt_multiplot.xml control/autoware_control_performance_analysis/config/error_rqt_multiplot.xml

+16-16
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<type>0</type>
3737
</scale>
3838
<topic>/control_performance/performance_vars</topic>
39-
<type>control_performance_analysis/ErrorStamped</type>
39+
<type>autoware_control_performance_analysis/ErrorStamped</type>
4040
</x_axis>
4141
<y_axis>
4242
<field>error/lateral_error</field>
@@ -49,7 +49,7 @@
4949
<type>0</type>
5050
</scale>
5151
<topic>/control_performance/performance_vars</topic>
52-
<type>control_performance_analysis/ErrorStamped</type>
52+
<type>autoware_control_performance_analysis/ErrorStamped</type>
5353
</y_axis>
5454
</axes>
5555
<color>
@@ -110,7 +110,7 @@
110110
<type>0</type>
111111
</scale>
112112
<topic>/control_performance/performance_vars</topic>
113-
<type>control_performance_analysis/ErrorStamped</type>
113+
<type>autoware_control_performance_analysis/ErrorStamped</type>
114114
</x_axis>
115115
<y_axis>
116116
<field>error/error_energy</field>
@@ -123,7 +123,7 @@
123123
<type>0</type>
124124
</scale>
125125
<topic>/control_performance/performance_vars</topic>
126-
<type>control_performance_analysis/ErrorStamped</type>
126+
<type>autoware_control_performance_analysis/ErrorStamped</type>
127127
</y_axis>
128128
</axes>
129129
<color>
@@ -184,7 +184,7 @@
184184
<type>0</type>
185185
</scale>
186186
<topic>/control_performance/performance_vars</topic>
187-
<type>control_performance_analysis/ErrorStamped</type>
187+
<type>autoware_control_performance_analysis/ErrorStamped</type>
188188
</x_axis>
189189
<y_axis>
190190
<field>error/lateral_error_velocity</field>
@@ -197,7 +197,7 @@
197197
<type>0</type>
198198
</scale>
199199
<topic>/control_performance/performance_vars</topic>
200-
<type>control_performance_analysis/ErrorStamped</type>
200+
<type>autoware_control_performance_analysis/ErrorStamped</type>
201201
</y_axis>
202202
</axes>
203203
<color>
@@ -260,7 +260,7 @@
260260
<type>0</type>
261261
</scale>
262262
<topic>/control_performance/performance_vars</topic>
263-
<type>control_performance_analysis/ErrorStamped</type>
263+
<type>autoware_control_performance_analysis/ErrorStamped</type>
264264
</x_axis>
265265
<y_axis>
266266
<field>error/heading_error</field>
@@ -273,7 +273,7 @@
273273
<type>0</type>
274274
</scale>
275275
<topic>/control_performance/performance_vars</topic>
276-
<type>control_performance_analysis/ErrorStamped</type>
276+
<type>autoware_control_performance_analysis/ErrorStamped</type>
277277
</y_axis>
278278
</axes>
279279
<color>
@@ -334,7 +334,7 @@
334334
<type>0</type>
335335
</scale>
336336
<topic>/control_performance/performance_vars</topic>
337-
<type>control_performance_analysis/ErrorStamped</type>
337+
<type>autoware_control_performance_analysis/ErrorStamped</type>
338338
</x_axis>
339339
<y_axis>
340340
<field>error/control_effort_energy</field>
@@ -347,7 +347,7 @@
347347
<type>0</type>
348348
</scale>
349349
<topic>/control_performance/performance_vars</topic>
350-
<type>control_performance_analysis/ErrorStamped</type>
350+
<type>autoware_control_performance_analysis/ErrorStamped</type>
351351
</y_axis>
352352
</axes>
353353
<color>
@@ -408,7 +408,7 @@
408408
<type>0</type>
409409
</scale>
410410
<topic>/control_performance/performance_vars</topic>
411-
<type>control_performance_analysis/ErrorStamped</type>
411+
<type>autoware_control_performance_analysis/ErrorStamped</type>
412412
</x_axis>
413413
<y_axis>
414414
<field>error/lateral_error_acceleration</field>
@@ -421,7 +421,7 @@
421421
<type>0</type>
422422
</scale>
423423
<topic>/control_performance/performance_vars</topic>
424-
<type>control_performance_analysis/ErrorStamped</type>
424+
<type>autoware_control_performance_analysis/ErrorStamped</type>
425425
</y_axis>
426426
</axes>
427427
<color>
@@ -484,7 +484,7 @@
484484
<type>0</type>
485485
</scale>
486486
<topic>/control_performance/performance_vars</topic>
487-
<type>control_performance_analysis/ErrorStamped</type>
487+
<type>autoware_control_performance_analysis/ErrorStamped</type>
488488
</x_axis>
489489
<y_axis>
490490
<field>error/value_approximation</field>
@@ -497,7 +497,7 @@
497497
<type>0</type>
498498
</scale>
499499
<topic>/control_performance/performance_vars</topic>
500-
<type>control_performance_analysis/ErrorStamped</type>
500+
<type>autoware_control_performance_analysis/ErrorStamped</type>
501501
</y_axis>
502502
</axes>
503503
<color>
@@ -558,7 +558,7 @@
558558
<type>0</type>
559559
</scale>
560560
<topic>/control_performance/performance_vars</topic>
561-
<type>control_performance_analysis/ErrorStamped</type>
561+
<type>autoware_control_performance_analysis/ErrorStamped</type>
562562
</x_axis>
563563
<y_axis>
564564
<field>error/curvature_estimate</field>
@@ -571,7 +571,7 @@
571571
<type>0</type>
572572
</scale>
573573
<topic>/control_performance/performance_vars</topic>
574-
<type>control_performance_analysis/ErrorStamped</type>
574+
<type>autoware_control_performance_analysis/ErrorStamped</type>
575575
</y_axis>
576576
</axes>
577577
<color>

control/control_performance_analysis/include/control_performance_analysis/control_performance_analysis_core.hpp control/autoware_control_performance_analysis/include/autoware/control_performance_analysis/control_performance_analysis_core.hpp

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 - 2022 Tier IV, Inc., Leo Drive Teknoloji A.Ş.
1+
// Copyright 2021 - 2025 Tier IV, Inc., Leo Drive Teknoloji A.Ş.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -12,14 +12,14 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_CORE_HPP_
16-
#define CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_CORE_HPP_
15+
#ifndef AUTOWARE__CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_CORE_HPP_
16+
#define AUTOWARE__CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_CORE_HPP_
1717

18+
#include "autoware/control_performance_analysis/control_performance_analysis_utils.hpp"
1819
#include "autoware/motion_utils/trajectory/trajectory.hpp"
19-
#include "control_performance_analysis/control_performance_analysis_utils.hpp"
20-
#include "control_performance_analysis/msg/driving_monitor_stamped.hpp"
21-
#include "control_performance_analysis/msg/error_stamped.hpp"
22-
#include "control_performance_analysis/msg/float_stamped.hpp"
20+
#include "autoware_control_performance_analysis/msg/driving_monitor_stamped.hpp"
21+
#include "autoware_control_performance_analysis/msg/error_stamped.hpp"
22+
#include "autoware_control_performance_analysis/msg/float_stamped.hpp"
2323

2424
#include <Eigen/Core>
2525
#include <rclcpp/time.hpp>
@@ -37,15 +37,15 @@
3737
#include <utility>
3838
#include <vector>
3939

40-
namespace control_performance_analysis
40+
namespace autoware::control_performance_analysis
4141
{
4242
using autoware_control_msgs::msg::Control;
43+
using autoware_control_performance_analysis::msg::DrivingMonitorStamped;
44+
using autoware_control_performance_analysis::msg::Error;
45+
using autoware_control_performance_analysis::msg::ErrorStamped;
46+
using autoware_control_performance_analysis::msg::FloatStamped;
4347
using autoware_planning_msgs::msg::Trajectory;
4448
using autoware_vehicle_msgs::msg::SteeringReport;
45-
using control_performance_analysis::msg::DrivingMonitorStamped;
46-
using control_performance_analysis::msg::Error;
47-
using control_performance_analysis::msg::ErrorStamped;
48-
using control_performance_analysis::msg::FloatStamped;
4949
using geometry_msgs::msg::Pose;
5050
using geometry_msgs::msg::PoseArray;
5151
using geometry_msgs::msg::Twist;
@@ -129,6 +129,6 @@ class ControlPerformanceAnalysisCore
129129
rclcpp::Logger logger_{rclcpp::get_logger("control_performance_analysis")};
130130
rclcpp::Clock clock_{RCL_ROS_TIME};
131131
};
132-
} // namespace control_performance_analysis
132+
} // namespace autoware::control_performance_analysis
133133

134-
#endif // CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_CORE_HPP_
134+
#endif // AUTOWARE__CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_CORE_HPP_

control/control_performance_analysis/include/control_performance_analysis/control_performance_analysis_node.hpp control/autoware_control_performance_analysis/include/autoware/control_performance_analysis/control_performance_analysis_node.hpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 - 2022 Tier IV, Inc., Leo Drive Teknoloji A.Ş.
1+
// Copyright 2021 - 2025 Tier IV, Inc., Leo Drive Teknoloji A.Ş.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -12,12 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_NODE_HPP_
16-
#define CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_NODE_HPP_
15+
#ifndef AUTOWARE__CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_NODE_HPP_
16+
#define AUTOWARE__CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_NODE_HPP_
1717

18-
#include "control_performance_analysis/control_performance_analysis_core.hpp"
19-
#include "control_performance_analysis/msg/driving_monitor_stamped.hpp"
20-
#include "control_performance_analysis/msg/error_stamped.hpp"
18+
#include "autoware/control_performance_analysis/control_performance_analysis_core.hpp"
19+
#include "autoware_control_performance_analysis/msg/driving_monitor_stamped.hpp"
20+
#include "autoware_control_performance_analysis/msg/error_stamped.hpp"
2121

2222
#include <autoware/signal_processing/lowpass_filter_1d.hpp>
2323
#include <autoware/universe_utils/ros/self_pose_listener.hpp>
@@ -34,13 +34,13 @@
3434
#include <memory>
3535
#include <utility>
3636

37-
namespace control_performance_analysis
37+
namespace autoware::control_performance_analysis
3838
{
3939
using autoware_control_msgs::msg::Control;
40+
using autoware_control_performance_analysis::msg::DrivingMonitorStamped;
41+
using autoware_control_performance_analysis::msg::ErrorStamped;
4042
using autoware_planning_msgs::msg::Trajectory;
4143
using autoware_vehicle_msgs::msg::SteeringReport;
42-
using control_performance_analysis::msg::DrivingMonitorStamped;
43-
using control_performance_analysis::msg::ErrorStamped;
4444
using geometry_msgs::msg::PoseStamped;
4545
using nav_msgs::msg::Odometry;
4646

@@ -92,6 +92,6 @@ class ControlPerformanceAnalysisNode : public rclcpp::Node
9292
// Algorithm
9393
std::unique_ptr<ControlPerformanceAnalysisCore> control_performance_core_ptr_;
9494
};
95-
} // namespace control_performance_analysis
95+
} // namespace autoware::control_performance_analysis
9696

97-
#endif // CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_NODE_HPP_
97+
#endif // AUTOWARE__CONTROL_PERFORMANCE_ANALYSIS__CONTROL_PERFORMANCE_ANALYSIS_NODE_HPP_

0 commit comments

Comments
 (0)