From da5bc79ed72327e9c2da32395cca90d6df10eb5c Mon Sep 17 00:00:00 2001 From: Yuki TAKAGI <141538661+yuki-takagi-66@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:06:49 +0900 Subject: [PATCH] refactor(crosswalk_traffic_light_estimator)!: add autoware_ prefix (#7365) * add prefix Signed-off-by: Yuki Takagi --- .github/CODEOWNERS | 2 +- .../traffic_light_recognition/traffic_light.launch.xml | 4 ++-- launch/tier4_perception_launch/package.xml | 2 +- .../CMakeLists.txt | 8 ++++---- .../README.md | 0 .../crosswalk_traffic_light_estimator.param.yaml | 0 .../images/intersection1.svg | 0 .../images/intersection2.svg | 0 .../images/straight.drawio.svg | 0 .../node.hpp | 10 +++++----- .../crosswalk_traffic_light_estimator.launch.xml | 4 ++-- .../package.xml | 4 ++-- .../crosswalk_traffic_light_estimator.schema.json | 0 .../src/node.cpp | 9 +++++---- 14 files changed, 22 insertions(+), 21 deletions(-) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/CMakeLists.txt (61%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/README.md (100%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/config/crosswalk_traffic_light_estimator.param.yaml (100%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/images/intersection1.svg (100%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/images/intersection2.svg (100%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/images/straight.drawio.svg (100%) rename perception/{crosswalk_traffic_light_estimator/include/crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator/include/autoware_crosswalk_traffic_light_estimator}/node.hpp (93%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/launch/crosswalk_traffic_light_estimator.launch.xml (78%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/package.xml (86%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/schema/crosswalk_traffic_light_estimator.schema.json (100%) rename perception/{crosswalk_traffic_light_estimator => autoware_crosswalk_traffic_light_estimator}/src/node.cpp (98%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4e260c9a5f6db..1541120912eb4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -106,7 +106,7 @@ map/util/lanelet2_map_preprocessor/** anh.nguyen.2@tier4.jp kento.yabuuchi.2@tie perception/bytetrack/** manato.hirabayashi@tier4.jp yoshi.ri@tier4.jp perception/cluster_merger/** dai.nguyen@tier4.jp shunsuke.miura@tier4.jp yukihiro.saito@tier4.jp perception/compare_map_segmentation/** abrahammonrroy@yahoo.com dai.nguyen@tier4.jp yukihiro.saito@tier4.jp -perception/crosswalk_traffic_light_estimator/** satoshi.ota@tier4.jp shunsuke.miura@tier4.jp tao.zhong@tier4.jp +perception/autoware_crosswalk_traffic_light_estimator/** satoshi.ota@tier4.jp shunsuke.miura@tier4.jp tao.zhong@tier4.jp perception/detected_object_feature_remover/** tomoya.kimura@tier4.jp perception/detected_object_validation/** dai.nguyen@tier4.jp shintaro.tomie@tier4.jp shunsuke.miura@tier4.jp yoshi.ri@tier4.jp yukihiro.saito@tier4.jp perception/detection_by_tracker/** taekjin.lee@tier4.jp yoshi.ri@tier4.jp yukihiro.saito@tier4.jp diff --git a/launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml b/launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml index 21143aa0cb28a..ed7ff059a6e53 100644 --- a/launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml +++ b/launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml @@ -17,7 +17,7 @@ - + @@ -158,7 +158,7 @@ - + diff --git a/launch/tier4_perception_launch/package.xml b/launch/tier4_perception_launch/package.xml index c74ef297aba6b..6ec706a4aad32 100644 --- a/launch/tier4_perception_launch/package.xml +++ b/launch/tier4_perception_launch/package.xml @@ -12,10 +12,10 @@ ament_cmake_auto autoware_cmake + autoware_crosswalk_traffic_light_estimator autoware_map_based_prediction cluster_merger compare_map_segmentation - crosswalk_traffic_light_estimator detected_object_feature_remover detected_object_validation detection_by_tracker diff --git a/perception/crosswalk_traffic_light_estimator/CMakeLists.txt b/perception/autoware_crosswalk_traffic_light_estimator/CMakeLists.txt similarity index 61% rename from perception/crosswalk_traffic_light_estimator/CMakeLists.txt rename to perception/autoware_crosswalk_traffic_light_estimator/CMakeLists.txt index 2947070eca01e..31a098a8686ec 100644 --- a/perception/crosswalk_traffic_light_estimator/CMakeLists.txt +++ b/perception/autoware_crosswalk_traffic_light_estimator/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.5) -project(crosswalk_traffic_light_estimator) +project(autoware_crosswalk_traffic_light_estimator) find_package(autoware_cmake REQUIRED) autoware_package() @@ -10,12 +10,12 @@ autoware_package() include_directories() -ament_auto_add_library(crosswalk_traffic_light_estimator SHARED +ament_auto_add_library(autoware_crosswalk_traffic_light_estimator SHARED src/node.cpp ) -rclcpp_components_register_node(crosswalk_traffic_light_estimator - PLUGIN "traffic_light::CrosswalkTrafficLightEstimatorNode" +rclcpp_components_register_node(autoware_crosswalk_traffic_light_estimator + PLUGIN "autoware::crosswalk_traffic_light_estimator::CrosswalkTrafficLightEstimatorNode" EXECUTABLE crosswalk_traffic_light_estimator_node ) diff --git a/perception/crosswalk_traffic_light_estimator/README.md b/perception/autoware_crosswalk_traffic_light_estimator/README.md similarity index 100% rename from perception/crosswalk_traffic_light_estimator/README.md rename to perception/autoware_crosswalk_traffic_light_estimator/README.md diff --git a/perception/crosswalk_traffic_light_estimator/config/crosswalk_traffic_light_estimator.param.yaml b/perception/autoware_crosswalk_traffic_light_estimator/config/crosswalk_traffic_light_estimator.param.yaml similarity index 100% rename from perception/crosswalk_traffic_light_estimator/config/crosswalk_traffic_light_estimator.param.yaml rename to perception/autoware_crosswalk_traffic_light_estimator/config/crosswalk_traffic_light_estimator.param.yaml diff --git a/perception/crosswalk_traffic_light_estimator/images/intersection1.svg b/perception/autoware_crosswalk_traffic_light_estimator/images/intersection1.svg similarity index 100% rename from perception/crosswalk_traffic_light_estimator/images/intersection1.svg rename to perception/autoware_crosswalk_traffic_light_estimator/images/intersection1.svg diff --git a/perception/crosswalk_traffic_light_estimator/images/intersection2.svg b/perception/autoware_crosswalk_traffic_light_estimator/images/intersection2.svg similarity index 100% rename from perception/crosswalk_traffic_light_estimator/images/intersection2.svg rename to perception/autoware_crosswalk_traffic_light_estimator/images/intersection2.svg diff --git a/perception/crosswalk_traffic_light_estimator/images/straight.drawio.svg b/perception/autoware_crosswalk_traffic_light_estimator/images/straight.drawio.svg similarity index 100% rename from perception/crosswalk_traffic_light_estimator/images/straight.drawio.svg rename to perception/autoware_crosswalk_traffic_light_estimator/images/straight.drawio.svg diff --git a/perception/crosswalk_traffic_light_estimator/include/crosswalk_traffic_light_estimator/node.hpp b/perception/autoware_crosswalk_traffic_light_estimator/include/autoware_crosswalk_traffic_light_estimator/node.hpp similarity index 93% rename from perception/crosswalk_traffic_light_estimator/include/crosswalk_traffic_light_estimator/node.hpp rename to perception/autoware_crosswalk_traffic_light_estimator/include/autoware_crosswalk_traffic_light_estimator/node.hpp index 5072f8b8fc296..de53d78d7f782 100644 --- a/perception/crosswalk_traffic_light_estimator/include/crosswalk_traffic_light_estimator/node.hpp +++ b/perception/autoware_crosswalk_traffic_light_estimator/include/autoware_crosswalk_traffic_light_estimator/node.hpp @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef CROSSWALK_TRAFFIC_LIGHT_ESTIMATOR__NODE_HPP_ -#define CROSSWALK_TRAFFIC_LIGHT_ESTIMATOR__NODE_HPP_ +#ifndef AUTOWARE_CROSSWALK_TRAFFIC_LIGHT_ESTIMATOR__NODE_HPP_ +#define AUTOWARE_CROSSWALK_TRAFFIC_LIGHT_ESTIMATOR__NODE_HPP_ #include #include @@ -36,7 +36,7 @@ #include #include #include -namespace traffic_light +namespace autoware::crosswalk_traffic_light_estimator { using autoware_map_msgs::msg::LaneletMapBin; @@ -117,6 +117,6 @@ class CrosswalkTrafficLightEstimatorNode : public rclcpp::Node std::shared_ptr pub_processing_time_; }; -} // namespace traffic_light +} // namespace autoware::crosswalk_traffic_light_estimator -#endif // CROSSWALK_TRAFFIC_LIGHT_ESTIMATOR__NODE_HPP_ +#endif // AUTOWARE_CROSSWALK_TRAFFIC_LIGHT_ESTIMATOR__NODE_HPP_ diff --git a/perception/crosswalk_traffic_light_estimator/launch/crosswalk_traffic_light_estimator.launch.xml b/perception/autoware_crosswalk_traffic_light_estimator/launch/crosswalk_traffic_light_estimator.launch.xml similarity index 78% rename from perception/crosswalk_traffic_light_estimator/launch/crosswalk_traffic_light_estimator.launch.xml rename to perception/autoware_crosswalk_traffic_light_estimator/launch/crosswalk_traffic_light_estimator.launch.xml index 21d718c3439cd..2e1437ecd7d93 100644 --- a/perception/crosswalk_traffic_light_estimator/launch/crosswalk_traffic_light_estimator.launch.xml +++ b/perception/autoware_crosswalk_traffic_light_estimator/launch/crosswalk_traffic_light_estimator.launch.xml @@ -11,9 +11,9 @@ limitations under the License. --> - + - + diff --git a/perception/crosswalk_traffic_light_estimator/package.xml b/perception/autoware_crosswalk_traffic_light_estimator/package.xml similarity index 86% rename from perception/crosswalk_traffic_light_estimator/package.xml rename to perception/autoware_crosswalk_traffic_light_estimator/package.xml index 123b721c40e0a..d844ea27b52b5 100644 --- a/perception/crosswalk_traffic_light_estimator/package.xml +++ b/perception/autoware_crosswalk_traffic_light_estimator/package.xml @@ -1,8 +1,8 @@ - crosswalk_traffic_light_estimator + autoware_crosswalk_traffic_light_estimator 0.1.0 - The crosswalk_traffic_light_estimator package + The autoware_crosswalk_traffic_light_estimator package Satoshi Ota Shunsuke Miura diff --git a/perception/crosswalk_traffic_light_estimator/schema/crosswalk_traffic_light_estimator.schema.json b/perception/autoware_crosswalk_traffic_light_estimator/schema/crosswalk_traffic_light_estimator.schema.json similarity index 100% rename from perception/crosswalk_traffic_light_estimator/schema/crosswalk_traffic_light_estimator.schema.json rename to perception/autoware_crosswalk_traffic_light_estimator/schema/crosswalk_traffic_light_estimator.schema.json diff --git a/perception/crosswalk_traffic_light_estimator/src/node.cpp b/perception/autoware_crosswalk_traffic_light_estimator/src/node.cpp similarity index 98% rename from perception/crosswalk_traffic_light_estimator/src/node.cpp rename to perception/autoware_crosswalk_traffic_light_estimator/src/node.cpp index 2a760b3f00e4e..2c4da0b95b161 100644 --- a/perception/crosswalk_traffic_light_estimator/src/node.cpp +++ b/perception/autoware_crosswalk_traffic_light_estimator/src/node.cpp @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -#include "crosswalk_traffic_light_estimator/node.hpp" +#include "autoware_crosswalk_traffic_light_estimator/node.hpp" #include #include @@ -21,7 +21,7 @@ #include #include -namespace traffic_light +namespace autoware::crosswalk_traffic_light_estimator { namespace { @@ -538,8 +538,9 @@ void CrosswalkTrafficLightEstimatorNode::removeDuplicateIds(TrafficSignalArray & signals.end()); } -} // namespace traffic_light +} // namespace autoware::crosswalk_traffic_light_estimator #include -RCLCPP_COMPONENTS_REGISTER_NODE(traffic_light::CrosswalkTrafficLightEstimatorNode) +RCLCPP_COMPONENTS_REGISTER_NODE( + autoware::crosswalk_traffic_light_estimator::CrosswalkTrafficLightEstimatorNode)