Skip to content

Commit 4804e4d

Browse files
authored
refactor(trajectory_follower_node): trajectory follower node add autoware prefix (autowarefoundation#7344)
* rename trajectory follower node package Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> * update dependencies, launch files, and README files Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> * fix formats Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> * remove autoware_ prefix from launch arg option Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp> --------- Signed-off-by: mohammad alqudah <alqudah.mohammad@tier4.jp>
1 parent 2551d99 commit 4804e4d

31 files changed

+35
-34
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ 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
6161
control/autoware_trajectory_follower_base/** takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
62-
control/trajectory_follower_node/** takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
62+
control/autoware_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
6565
evaluator/diagnostic_converter/** kyoichi.sugahara@tier4.jp maxime.clement@tier4.jp takamasa.horibe@tier4.jp

control/autoware_mpc_lateral_controller/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MPC Lateral Controller
22

33
This is the design document for the lateral controller node
4-
in the `trajectory_follower_node` package.
4+
in the `autoware_trajectory_follower_node` package.
55

66
## Purpose / Use cases
77

@@ -61,7 +61,7 @@ The tracking is not accurate if the first point of the reference trajectory is a
6161

6262
### Inputs
6363

64-
Set the following from the [controller_node](../trajectory_follower_node/README.md)
64+
Set the following from the [controller_node](../autoware_trajectory_follower_node/README.md)
6565

6666
- `autoware_planning_msgs/Trajectory` : reference trajectory to follow.
6767
- `nav_msgs/Odometry`: current odometry

control/autoware_pid_longitudinal_controller/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ There are two sources of the slope information, which can be switched by a param
141141

142142
### Input
143143

144-
Set the following from the [controller_node](../trajectory_follower_node/README.md)
144+
Set the following from the [controller_node](../autoware_trajectory_follower_node/README.md)
145145

146146
- `autoware_planning_msgs/Trajectory` : reference trajectory to follow.
147147
- `nav_msgs/Odometry`: current odometry

control/autoware_trajectory_follower_base/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is the design document for the `trajectory_follower` package.
88
<!-- Things to consider:
99
- Why did we implement this feature? -->
1010

11-
This package provides the interface of longitudinal and lateral controllers used by the node of the `trajectory_follower_node` package.
11+
This package provides the interface of longitudinal and lateral controllers used by the node of the `autoware_trajectory_follower_node` package.
1212
We can implement a detailed controller by deriving the longitudinal and lateral base interfaces.
1313

1414
## Design
@@ -17,13 +17,13 @@ There are lateral and longitudinal base interface classes and each algorithm inh
1717
The interface class has the following base functions.
1818

1919
- `isReady()`: Check if the control is ready to compute.
20-
- `run()`: Compute control commands and return to [Trajectory Follower Nodes](../trajectory_follower_node/README.md). This must be implemented by inherited algorithms.
20+
- `run()`: Compute control commands and return to [Trajectory Follower Nodes](../autoware_trajectory_follower_node/README.md). This must be implemented by inherited algorithms.
2121
- `sync()`: Input the result of running the other controller.
2222
- steer angle convergence
2323
- allow keeping stopped until steer is converged.
2424
- velocity convergence(currently not used)
2525

26-
See [the Design of Trajectory Follower Nodes](../trajectory_follower_node/README.md#Design) for how these functions work in the node.
26+
See [the Design of Trajectory Follower Nodes](../autoware_trajectory_follower_node/README.md#Design) for how these functions work in the node.
2727

2828
## Separated lateral (steering) and longitudinal (velocity) controls
2929

control/trajectory_follower_node/CMakeLists.txt control/autoware_trajectory_follower_node/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
cmake_minimum_required(VERSION 3.14)
2-
project(trajectory_follower_node)
2+
project(autoware_trajectory_follower_node)
33

44
find_package(autoware_cmake REQUIRED)
55
autoware_package()
66

77
set(CONTROLLER_NODE controller_node)
88
ament_auto_add_library(${CONTROLLER_NODE} SHARED
9-
include/trajectory_follower_node/controller_node.hpp
9+
include/autoware_trajectory_follower_node/controller_node.hpp
1010
src/controller_node.cpp
1111
)
1212

@@ -18,7 +18,7 @@ rclcpp_components_register_node(${CONTROLLER_NODE}
1818
# simple trajectory follower
1919
set(SIMPLE_TRAJECTORY_FOLLOWER_NODE simple_trajectory_follower)
2020
ament_auto_add_library(${SIMPLE_TRAJECTORY_FOLLOWER_NODE} SHARED
21-
include/trajectory_follower_node/simple_trajectory_follower.hpp
21+
include/autoware_trajectory_follower_node/simple_trajectory_follower.hpp
2222
src/simple_trajectory_follower.cpp
2323
)
2424

control/trajectory_follower_node/README.md control/autoware_trajectory_follower_node/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ run(InputData) override
6464
}
6565
}
6666
67-
package trajectory_follower_node {
67+
package autoware_trajectory_follower_node {
6868
class Controller {
6969
longitudinal_controller_
7070
lateral_controller_

control/trajectory_follower_node/design/media/Controller.drawio.svg control/autoware_trajectory_follower_node/design/media/Controller.drawio.svg

+2-2
Loading

control/trajectory_follower_node/include/trajectory_follower_node/controller_node.hpp control/autoware_trajectory_follower_node/include/autoware_trajectory_follower_node/controller_node.hpp

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

15-
#ifndef TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
16-
#define TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
1717

1818
#include "autoware_trajectory_follower_base/lateral_controller_base.hpp"
1919
#include "autoware_trajectory_follower_base/longitudinal_controller_base.hpp"
20+
#include "autoware_trajectory_follower_node/visibility_control.hpp"
2021
#include "autoware_vehicle_info_utils/vehicle_info_utils.hpp"
2122
#include "rclcpp/rclcpp.hpp"
2223
#include "tf2/utils.h"
@@ -25,7 +26,6 @@
2526
#include "tier4_autoware_utils/ros/logger_level_configure.hpp"
2627
#include "tier4_autoware_utils/ros/polling_subscriber.hpp"
2728
#include "tier4_autoware_utils/system/stop_watch.hpp"
28-
#include "trajectory_follower_node/visibility_control.hpp"
2929

3030
#include <Eigen/Core>
3131
#include <Eigen/Geometry>
@@ -142,4 +142,4 @@ class TRAJECTORY_FOLLOWER_PUBLIC Controller : public rclcpp::Node
142142
} // namespace trajectory_follower_node
143143
} // namespace autoware::motion::control
144144

145-
#endif // TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_
145+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_NODE__CONTROLLER_NODE_HPP_

control/trajectory_follower_node/include/trajectory_follower_node/simple_trajectory_follower.hpp control/autoware_trajectory_follower_node/include/autoware_trajectory_follower_node/simple_trajectory_follower.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_NODE__SIMPLE_TRAJECTORY_FOLLOWER_HPP_
16-
#define TRAJECTORY_FOLLOWER_NODE__SIMPLE_TRAJECTORY_FOLLOWER_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_NODE__SIMPLE_TRAJECTORY_FOLLOWER_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_NODE__SIMPLE_TRAJECTORY_FOLLOWER_HPP_
1717

1818
#include "tier4_autoware_utils/ros/polling_subscriber.hpp"
1919

@@ -67,4 +67,4 @@ class SimpleTrajectoryFollower : public rclcpp::Node
6767

6868
} // namespace simple_trajectory_follower
6969

70-
#endif // TRAJECTORY_FOLLOWER_NODE__SIMPLE_TRAJECTORY_FOLLOWER_HPP_
70+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_NODE__SIMPLE_TRAJECTORY_FOLLOWER_HPP_

control/trajectory_follower_node/include/trajectory_follower_node/visibility_control.hpp control/autoware_trajectory_follower_node/include/autoware_trajectory_follower_node/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_NODE__VISIBILITY_CONTROL_HPP_
16-
#define TRAJECTORY_FOLLOWER_NODE__VISIBILITY_CONTROL_HPP_
15+
#ifndef AUTOWARE_TRAJECTORY_FOLLOWER_NODE__VISIBILITY_CONTROL_HPP_
16+
#define AUTOWARE_TRAJECTORY_FOLLOWER_NODE__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_NODE__VISIBILITY_CONTROL_HPP_
37+
#endif // AUTOWARE_TRAJECTORY_FOLLOWER_NODE__VISIBILITY_CONTROL_HPP_

control/trajectory_follower_node/launch/simple_trajectory_follower.launch.xml control/autoware_trajectory_follower_node/launch/simple_trajectory_follower.launch.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<arg name="lateral_deviation" default="0.0"/>
55

66
<!-- engage_transition_manager -->
7-
<node pkg="trajectory_follower_node" exec="simple_trajectory_follower_exe" name="simple_trajectory_follower" output="screen">
8-
<param from="$(find-pkg-share trajectory_follower_node)/config/simple_trajectory_follower.param.yaml" allow_substs="true"/>
7+
<node pkg="autoware_trajectory_follower_node" exec="simple_trajectory_follower_exe" name="simple_trajectory_follower" output="screen">
8+
<param from="$(find-pkg-share autoware_trajectory_follower_node)/config/simple_trajectory_follower.param.yaml" allow_substs="true"/>
99

1010
<remap from="input/kinematics" to="/localization/kinematic_state"/>
1111
<remap from="input/trajectory" to="/planning/scenario_planning/trajectory"/>

control/trajectory_follower_node/package.xml control/autoware_trajectory_follower_node/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_node</name>
4+
<name>autoware_trajectory_follower_node</name>
55
<version>1.0.0</version>
66
<description>Nodes to follow a trajectory by generating control commands separated into lateral and longitudinal commands</description>
77

control/trajectory_follower_node/src/controller_node.cpp control/autoware_trajectory_follower_node/src/controller_node.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_node/controller_node.hpp"
15+
#include "autoware_trajectory_follower_node/controller_node.hpp"
1616

1717
#include "autoware_mpc_lateral_controller/mpc_lateral_controller.hpp"
1818
#include "autoware_pid_longitudinal_controller/pid_longitudinal_controller.hpp"

control/trajectory_follower_node/src/simple_trajectory_follower.cpp control/autoware_trajectory_follower_node/src/simple_trajectory_follower.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_node/simple_trajectory_follower.hpp"
15+
#include "autoware_trajectory_follower_node/simple_trajectory_follower.hpp"
1616

1717
#include <motion_utils/trajectory/trajectory.hpp>
1818
#include <tier4_autoware_utils/geometry/pose_deviation.hpp>

control/trajectory_follower_node/test/test_controller_node.cpp control/autoware_trajectory_follower_node/test/test_controller_node.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
// limitations under the License.
1414

1515
#include "ament_index_cpp/get_package_share_directory.hpp"
16+
#include "autoware_trajectory_follower_node/controller_node.hpp"
1617
#include "fake_test_node/fake_test_node.hpp"
1718
#include "gtest/gtest.h"
1819
#include "rclcpp/rclcpp.hpp"
1920
#include "rclcpp/time.hpp"
20-
#include "trajectory_follower_node/controller_node.hpp"
2121
#include "trajectory_follower_test_utils.hpp"
2222

2323
#include "autoware_adapi_v1_msgs/msg/operation_mode_state.hpp"
@@ -49,7 +49,8 @@ const rclcpp::Duration one_second(1, 0);
4949
rclcpp::NodeOptions makeNodeOptions(const bool enable_keep_stopped_until_steer_convergence = false)
5050
{
5151
// Pass default parameter file to the node
52-
const auto share_dir = ament_index_cpp::get_package_share_directory("trajectory_follower_node");
52+
const auto share_dir =
53+
ament_index_cpp::get_package_share_directory("autoware_trajectory_follower_node");
5354
const auto longitudinal_share_dir =
5455
ament_index_cpp::get_package_share_directory("autoware_pid_longitudinal_controller");
5556
const auto lateral_share_dir =

control/pure_pursuit/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Pure Pursuit Controller
22

3-
The Pure Pursuit Controller module calculates the steering angle for tracking a desired trajectory using the pure pursuit algorithm. This is used as a lateral controller plugin in the `trajectory_follower_node`.
3+
The Pure Pursuit Controller module calculates the steering angle for tracking a desired trajectory using the pure pursuit algorithm. This is used as a lateral controller plugin in the `autoware_trajectory_follower_node`.
44

55
## Inputs
66

7-
Set the following from the [controller_node](../trajectory_follower_node/README.md)
7+
Set the following from the [controller_node](../autoware_trajectory_follower_node/README.md)
88

99
- `autoware_planning_msgs/Trajectory` : reference trajectory to follow.
1010
- `nav_msgs/Odometry`: current ego pose and velocity information

launch/tier4_control_launch/launch/control.launch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def launch_setup(context, *args, **kwargs):
6969
trajectory_follower_mode = LaunchConfiguration("trajectory_follower_mode").perform(context)
7070

7171
controller_component = ComposableNode(
72-
package="trajectory_follower_node",
72+
package="autoware_trajectory_follower_node",
7373
plugin="autoware::motion::control::trajectory_follower_node::Controller",
7474
name="controller_node_exe",
7575
namespace="trajectory_follower",

launch/tier4_control_launch/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<exec_depend>autoware_external_cmd_selector</exec_depend>
1616
<exec_depend>autoware_lane_departure_checker</exec_depend>
1717
<exec_depend>autoware_shift_decider</exec_depend>
18+
<exec_depend>autoware_trajectory_follower_node</exec_depend>
1819
<exec_depend>autoware_vehicle_cmd_gate</exec_depend>
1920
<exec_depend>control_evaluator</exec_depend>
20-
<exec_depend>trajectory_follower_node</exec_depend>
2121

2222
<test_depend>ament_lint_auto</test_depend>
2323
<test_depend>autoware_lint_common</test_depend>

0 commit comments

Comments
 (0)