Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit afc129e

Browse files
authoredJun 11, 2024
refactor(trajectory_follower_base): trajectory follower base add autoware prefix (autowarefoundation#7343)
* rename trajectory follower base package Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> * update dependencies and includes Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> * fix formats Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> --------- Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp>
1 parent 4129ddd commit afc129e

File tree

20 files changed

+35
-35
lines changed

20 files changed

+35
-35
lines changed
 

‎.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ control/predicted_path_checker/** berkay@leodrive.ai
5858
control/pure_pursuit/** takamasa.horibe@tier4.jp
5959
control/shift_decider/** takamasa.horibe@tier4.jp
6060
control/autoware_smart_mpc_trajectory_follower/** masayuki.aino@proxima-ai-tech.com
61-
control/trajectory_follower_base/** takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
61+
control/autoware_trajectory_follower_base/** takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
6262
control/trajectory_follower_node/** takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
6363
control/autoware_vehicle_cmd_gate/** takamasa.horibe@tier4.jp tomoya.kimura@tier4.jp
6464
evaluator/control_evaluator/** daniel.sanchez@tier4.jp takayuki.murooka@tier4.jp

‎control/autoware_mpc_lateral_controller/include/autoware_mpc_lateral_controller/mpc_lateral_controller.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include "autoware_mpc_lateral_controller/mpc_trajectory.hpp"
2020
#include "autoware_mpc_lateral_controller/mpc_utils.hpp"
2121
#include "autoware_mpc_lateral_controller/steering_offset/steering_offset.hpp"
22+
#include "autoware_trajectory_follower_base/lateral_controller_base.hpp"
2223
#include "rclcpp/rclcpp.hpp"
23-
#include "trajectory_follower_base/lateral_controller_base.hpp"
2424

2525
#include "autoware_control_msgs/msg/lateral.hpp"
2626
#include "autoware_planning_msgs/msg/trajectory.hpp"

‎control/autoware_mpc_lateral_controller/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<depend>autoware_control_msgs</depend>
2121
<depend>autoware_planning_msgs</depend>
22+
<depend>autoware_trajectory_follower_base</depend>
2223
<depend>autoware_vehicle_info_utils</depend>
2324
<depend>autoware_vehicle_msgs</depend>
2425
<depend>diagnostic_msgs</depend>
@@ -35,7 +36,6 @@
3536
<depend>tf2_ros</depend>
3637
<depend>tier4_autoware_utils</depend>
3738
<depend>tier4_debug_msgs</depend>
38-
<depend>trajectory_follower_base</depend>
3939

4040
<test_depend>ament_cmake_ros</test_depend>
4141
<test_depend>ament_lint_auto</test_depend>

‎control/autoware_pid_longitudinal_controller/include/autoware_pid_longitudinal_controller/pid_longitudinal_controller.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
#include "autoware_pid_longitudinal_controller/lowpass_filter.hpp"
2121
#include "autoware_pid_longitudinal_controller/pid.hpp"
2222
#include "autoware_pid_longitudinal_controller/smooth_stop.hpp"
23+
#include "autoware_trajectory_follower_base/longitudinal_controller_base.hpp"
2324
#include "autoware_vehicle_info_utils/vehicle_info_utils.hpp"
2425
#include "diagnostic_updater/diagnostic_updater.hpp"
2526
#include "rclcpp/rclcpp.hpp"
2627
#include "tf2/utils.h"
2728
#include "tf2_ros/buffer.h"
2829
#include "tf2_ros/transform_listener.h"
2930
#include "tier4_autoware_utils/ros/marker_helper.hpp"
30-
#include "trajectory_follower_base/longitudinal_controller_base.hpp"
3131

3232
#include <Eigen/Core>
3333
#include <Eigen/Geometry>

‎control/autoware_pid_longitudinal_controller/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<depend>autoware_adapi_v1_msgs</depend>
2222
<depend>autoware_control_msgs</depend>
2323
<depend>autoware_planning_msgs</depend>
24+
<depend>autoware_trajectory_follower_base</depend>
2425
<depend>autoware_vehicle_info_utils</depend>
2526
<depend>autoware_vehicle_msgs</depend>
2627
<depend>diagnostic_msgs</depend>
@@ -36,7 +37,6 @@
3637
<depend>tf2_ros</depend>
3738
<depend>tier4_autoware_utils</depend>
3839
<depend>tier4_debug_msgs</depend>
39-
<depend>trajectory_follower_base</depend>
4040

4141
<test_depend>ament_cmake_ros</test_depend>
4242
<test_depend>ament_lint_auto</test_depend>

‎control/trajectory_follower_base/CMakeLists.txt ‎control/autoware_trajectory_follower_base/CMakeLists.txt

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

44
find_package(autoware_cmake REQUIRED)
55
autoware_package()

‎control/trajectory_follower_base/include/trajectory_follower_base/input_data.hpp ‎control/autoware_trajectory_follower_base/include/autoware_trajectory_follower_base/input_data.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 TRAJECTORY_FOLLOWER_BASE__INPUT_DATA_HPP_
16-
#define TRAJECTORY_FOLLOWER_BASE__INPUT_DATA_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_BASE__INPUT_DATA_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_BASE__INPUT_DATA_HPP_
1717

1818
#include "autoware_adapi_v1_msgs/msg/operation_mode_state.hpp"
1919
#include "autoware_planning_msgs/msg/trajectory.hpp"
@@ -33,4 +33,4 @@ struct InputData
3333
};
3434
} // namespace autoware::motion::control::trajectory_follower
3535

36-
#endif // TRAJECTORY_FOLLOWER_BASE__INPUT_DATA_HPP_
36+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_BASE__INPUT_DATA_HPP_

‎control/trajectory_follower_base/include/trajectory_follower_base/lateral_controller_base.hpp ‎control/autoware_trajectory_follower_base/include/autoware_trajectory_follower_base/lateral_controller_base.hpp

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

15-
#ifndef TRAJECTORY_FOLLOWER_BASE__LATERAL_CONTROLLER_BASE_HPP_
16-
#define TRAJECTORY_FOLLOWER_BASE__LATERAL_CONTROLLER_BASE_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_BASE__LATERAL_CONTROLLER_BASE_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_BASE__LATERAL_CONTROLLER_BASE_HPP_
1717

18+
#include "autoware_trajectory_follower_base/input_data.hpp"
19+
#include "autoware_trajectory_follower_base/sync_data.hpp"
1820
#include "rclcpp/rclcpp.hpp"
19-
#include "trajectory_follower_base/input_data.hpp"
20-
#include "trajectory_follower_base/sync_data.hpp"
2121

2222
#include "autoware_control_msgs/msg/lateral.hpp"
2323

@@ -44,4 +44,4 @@ class LateralControllerBase
4444

4545
} // namespace autoware::motion::control::trajectory_follower
4646

47-
#endif // TRAJECTORY_FOLLOWER_BASE__LATERAL_CONTROLLER_BASE_HPP_
47+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_BASE__LATERAL_CONTROLLER_BASE_HPP_

‎control/trajectory_follower_base/include/trajectory_follower_base/longitudinal_controller_base.hpp ‎control/autoware_trajectory_follower_base/include/autoware_trajectory_follower_base/longitudinal_controller_base.hpp

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

15-
#ifndef TRAJECTORY_FOLLOWER_BASE__LONGITUDINAL_CONTROLLER_BASE_HPP_
16-
#define TRAJECTORY_FOLLOWER_BASE__LONGITUDINAL_CONTROLLER_BASE_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_BASE__LONGITUDINAL_CONTROLLER_BASE_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_BASE__LONGITUDINAL_CONTROLLER_BASE_HPP_
1717

18+
#include "autoware_trajectory_follower_base/input_data.hpp"
19+
#include "autoware_trajectory_follower_base/sync_data.hpp"
1820
#include "rclcpp/rclcpp.hpp"
19-
#include "trajectory_follower_base/input_data.hpp"
20-
#include "trajectory_follower_base/sync_data.hpp"
2121

2222
#include "autoware_control_msgs/msg/longitudinal.hpp"
2323

@@ -46,4 +46,4 @@ class LongitudinalControllerBase
4646

4747
} // namespace autoware::motion::control::trajectory_follower
4848

49-
#endif // TRAJECTORY_FOLLOWER_BASE__LONGITUDINAL_CONTROLLER_BASE_HPP_
49+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_BASE__LONGITUDINAL_CONTROLLER_BASE_HPP_

‎control/trajectory_follower_base/include/trajectory_follower_base/sync_data.hpp ‎control/autoware_trajectory_follower_base/include/autoware_trajectory_follower_base/sync_data.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 TRAJECTORY_FOLLOWER_BASE__SYNC_DATA_HPP_
16-
#define TRAJECTORY_FOLLOWER_BASE__SYNC_DATA_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_BASE__SYNC_DATA_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_BASE__SYNC_DATA_HPP_
1717

1818
namespace autoware::motion::control::trajectory_follower
1919
{
@@ -30,4 +30,4 @@ struct LongitudinalSyncData
3030

3131
} // namespace autoware::motion::control::trajectory_follower
3232

33-
#endif // TRAJECTORY_FOLLOWER_BASE__SYNC_DATA_HPP_
33+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_BASE__SYNC_DATA_HPP_

‎control/trajectory_follower_base/include/trajectory_follower_base/visibility_control.hpp ‎control/autoware_trajectory_follower_base/include/autoware_trajectory_follower_base/visibility_control.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 TRAJECTORY_FOLLOWER_BASE__VISIBILITY_CONTROL_HPP_
16-
#define TRAJECTORY_FOLLOWER_BASE__VISIBILITY_CONTROL_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_BASE__VISIBILITY_CONTROL_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_BASE__VISIBILITY_CONTROL_HPP_
1717

1818
////////////////////////////////////////////////////////////////////////////////
1919
#if defined(__WIN32)
@@ -34,4 +34,4 @@
3434
#error "Unsupported Build Configuration"
3535
#endif
3636

37-
#endif // TRAJECTORY_FOLLOWER_BASE__VISIBILITY_CONTROL_HPP_
37+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_BASE__VISIBILITY_CONTROL_HPP_

‎control/trajectory_follower_base/package.xml ‎control/autoware_trajectory_follower_base/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
4-
<name>trajectory_follower_base</name>
4+
<name>autoware_trajectory_follower_base</name>
55
<version>1.0.0</version>
66
<description>Library for generating lateral and longitudinal controls following a trajectory</description>
77

‎control/trajectory_follower_base/src/lateral_controller_base.cpp ‎control/autoware_trajectory_follower_base/src/lateral_controller_base.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 "trajectory_follower_base/lateral_controller_base.hpp"
15+
#include "autoware_trajectory_follower_base/lateral_controller_base.hpp"
1616

1717
namespace autoware::motion::control::trajectory_follower
1818
{

‎control/trajectory_follower_base/src/longitudinal_controller_base.cpp ‎control/autoware_trajectory_follower_base/src/longitudinal_controller_base.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 "trajectory_follower_base/longitudinal_controller_base.hpp"
15+
#include "autoware_trajectory_follower_base/longitudinal_controller_base.hpp"
1616

1717
namespace autoware::motion::control::trajectory_follower
1818
{

‎control/pure_pursuit/include/pure_pursuit/pure_pursuit_lateral_controller.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
#ifndef PURE_PURSUIT__PURE_PURSUIT_LATERAL_CONTROLLER_HPP_
3131
#define PURE_PURSUIT__PURE_PURSUIT_LATERAL_CONTROLLER_HPP_
3232

33+
#include "autoware_trajectory_follower_base/lateral_controller_base.hpp"
3334
#include "pure_pursuit/pure_pursuit.hpp"
3435
#include "pure_pursuit/pure_pursuit_viz.hpp"
3536
#include "rclcpp/rclcpp.hpp"
3637
#include "tf2_ros/buffer.h"
3738
#include "tf2_ros/transform_listener.h"
38-
#include "trajectory_follower_base/lateral_controller_base.hpp"
3939

4040
#include <motion_utils/resample/resample.hpp>
4141
#include <motion_utils/trajectory/conversion.hpp>

‎control/pure_pursuit/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<depend>autoware_control_msgs</depend>
1818
<depend>autoware_planning_msgs</depend>
19+
<depend>autoware_trajectory_follower_base</depend>
1920
<depend>autoware_vehicle_info_utils</depend>
2021
<depend>boost</depend>
2122
<depend>geometry_msgs</depend>
@@ -32,7 +33,6 @@
3233
<depend>tf2_ros</depend>
3334
<depend>tier4_autoware_utils</depend>
3435
<depend>tier4_debug_msgs</depend>
35-
<depend>trajectory_follower_base</depend>
3636
<depend>visualization_msgs</depend>
3737

3838
<test_depend>ament_lint_auto</test_depend>

‎control/trajectory_follower_node/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Generate control commands to follow a given Trajectory.
66

77
## Design
88

9-
This is a node of the functionalities implemented in the controller class derived from [trajectory_follower_base](../trajectory_follower_base/README.md#trajectory-follower) package. It has instances of those functionalities, gives them input data to perform calculations, and publishes control commands.
9+
This is a node of the functionalities implemented in the controller class derived from [autoware_trajectory_follower_base](../autoware_trajectory_follower_base/README.md#trajectory-follower) package. It has instances of those functionalities, gives them input data to perform calculations, and publishes control commands.
1010

1111
By default, the controller instance with the `Controller` class as follows is used.
1212

1313
```plantuml
1414
@startuml
15-
package trajectory_follower_base {
15+
package autoware_trajectory_follower_base {
1616
abstract class LateralControllerBase {
1717
longitudinal_sync_data_
1818

‎control/trajectory_follower_node/include/trajectory_follower_node/controller_node.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#ifndef TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
1616
#define TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
1717

18+
#include "autoware_trajectory_follower_base/lateral_controller_base.hpp"
19+
#include "autoware_trajectory_follower_base/longitudinal_controller_base.hpp"
1820
#include "autoware_vehicle_info_utils/vehicle_info_utils.hpp"
1921
#include "rclcpp/rclcpp.hpp"
2022
#include "tf2/utils.h"
@@ -23,8 +25,6 @@
2325
#include "tier4_autoware_utils/ros/logger_level_configure.hpp"
2426
#include "tier4_autoware_utils/ros/polling_subscriber.hpp"
2527
#include "tier4_autoware_utils/system/stop_watch.hpp"
26-
#include "trajectory_follower_base/lateral_controller_base.hpp"
27-
#include "trajectory_follower_base/longitudinal_controller_base.hpp"
2828
#include "trajectory_follower_node/visibility_control.hpp"
2929

3030
#include <Eigen/Core>

‎control/trajectory_follower_node/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
<depend>autoware_mpc_lateral_controller</depend>
2525
<depend>autoware_pid_longitudinal_controller</depend>
2626
<depend>autoware_planning_msgs</depend>
27+
<depend>autoware_trajectory_follower_base</depend>
2728
<depend>autoware_vehicle_info_utils</depend>
2829
<depend>autoware_vehicle_msgs</depend>
2930
<depend>motion_utils</depend>
3031
<depend>pure_pursuit</depend>
3132
<depend>rclcpp</depend>
3233
<depend>rclcpp_components</depend>
3334
<depend>tier4_autoware_utils</depend>
34-
<depend>trajectory_follower_base</depend>
3535
<depend>visualization_msgs</depend>
3636

3737
<exec_depend>ros2launch</exec_depend>

0 commit comments

Comments
 (0)
Please sign in to comment.