diff --git a/sensing/livox/autoware_livox_tag_filter/CMakeLists.txt b/sensing/livox/autoware_livox_tag_filter/CMakeLists.txt new file mode 100644 index 0000000000000..00f7693c58b18 --- /dev/null +++ b/sensing/livox/autoware_livox_tag_filter/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.14) +project(autoware_livox_tag_filter) + +find_package(autoware_cmake REQUIRED) +autoware_package() + +find_package(PCL REQUIRED) + +ament_auto_add_library(${PROJECT_NAME} SHARED + src/livox_tag_filter_node.cpp + src/livox_tag_filter_node.hpp +) + +target_link_libraries(${PROJECT_NAME} + ${PCL_LIBRARIES} +) + +rclcpp_components_register_node(${PROJECT_NAME} + PLUGIN "autoware::livox_tag_filter::LivoxTagFilterNode" + EXECUTABLE ${PROJECT_NAME}_node +) + +ament_auto_package(INSTALL_TO_SHARE + launch + config +) diff --git a/sensing/livox/livox_tag_filter/README.md b/sensing/livox/autoware_livox_tag_filter/README.md similarity index 100% rename from sensing/livox/livox_tag_filter/README.md rename to sensing/livox/autoware_livox_tag_filter/README.md diff --git a/sensing/livox/livox_tag_filter/config/livox_tag_filter.param.yaml b/sensing/livox/autoware_livox_tag_filter/config/livox_tag_filter.param.yaml similarity index 100% rename from sensing/livox/livox_tag_filter/config/livox_tag_filter.param.yaml rename to sensing/livox/autoware_livox_tag_filter/config/livox_tag_filter.param.yaml diff --git a/sensing/livox/livox_tag_filter/launch/livox_tag_filter.launch.xml b/sensing/livox/autoware_livox_tag_filter/launch/livox_tag_filter.launch.xml similarity index 52% rename from sensing/livox/livox_tag_filter/launch/livox_tag_filter.launch.xml rename to sensing/livox/autoware_livox_tag_filter/launch/livox_tag_filter.launch.xml index 331db891358f7..9b3fa9bcbcaf8 100644 --- a/sensing/livox/livox_tag_filter/launch/livox_tag_filter.launch.xml +++ b/sensing/livox/autoware_livox_tag_filter/launch/livox_tag_filter.launch.xml @@ -1,9 +1,9 @@ - + - + diff --git a/sensing/livox/livox_tag_filter/package.xml b/sensing/livox/autoware_livox_tag_filter/package.xml similarity index 88% rename from sensing/livox/livox_tag_filter/package.xml rename to sensing/livox/autoware_livox_tag_filter/package.xml index 2b3d429480ef7..e9f588db6479c 100644 --- a/sensing/livox/livox_tag_filter/package.xml +++ b/sensing/livox/autoware_livox_tag_filter/package.xml @@ -1,9 +1,9 @@ - livox_tag_filter + autoware_livox_tag_filter 0.1.0 - The livox_tag_filter package + The autoware_livox_tag_filter package Ryohsuke Mitsudome Kenzo Lobos-Tsunekawa Apache License 2.0 diff --git a/sensing/livox/livox_tag_filter/schema/livox_tag_filter.schema.json b/sensing/livox/autoware_livox_tag_filter/schema/livox_tag_filter.schema.json similarity index 100% rename from sensing/livox/livox_tag_filter/schema/livox_tag_filter.schema.json rename to sensing/livox/autoware_livox_tag_filter/schema/livox_tag_filter.schema.json diff --git a/sensing/livox/livox_tag_filter/src/livox_tag_filter_node/livox_tag_filter_node.cpp b/sensing/livox/autoware_livox_tag_filter/src/livox_tag_filter_node.cpp similarity index 92% rename from sensing/livox/livox_tag_filter/src/livox_tag_filter_node/livox_tag_filter_node.cpp rename to sensing/livox/autoware_livox_tag_filter/src/livox_tag_filter_node.cpp index 9a131db7d3c8e..10da7b931f4ae 100644 --- a/sensing/livox/livox_tag_filter/src/livox_tag_filter_node/livox_tag_filter_node.cpp +++ b/sensing/livox/autoware_livox_tag_filter/src/livox_tag_filter_node.cpp @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "livox_tag_filter/livox_tag_filter_node.hpp" +#include "livox_tag_filter_node.hpp" #include @@ -34,7 +34,7 @@ POINT_CLOUD_REGISTER_POINT_STRUCT( LivoxPoint, (float, x, x)(float, y, y)(float, z, z)(float, intensity, intensity)( std::uint8_t, tag, tag)(std::uint8_t, line, line)) -namespace livox_tag_filter +namespace autoware::livox_tag_filter { LivoxTagFilterNode::LivoxTagFilterNode(const rclcpp::NodeOptions & node_options) : Node("livox_tag_filter", node_options) @@ -84,7 +84,7 @@ void LivoxTagFilterNode::onPointCloud(const sensor_msgs::msg::PointCloud2::Const pub_pointcloud_->publish(std::move(tag_filtered_msg_ptr)); } -} // namespace livox_tag_filter +} // namespace autoware::livox_tag_filter #include -RCLCPP_COMPONENTS_REGISTER_NODE(livox_tag_filter::LivoxTagFilterNode) +RCLCPP_COMPONENTS_REGISTER_NODE(autoware::livox_tag_filter::LivoxTagFilterNode) diff --git a/sensing/livox/livox_tag_filter/include/livox_tag_filter/livox_tag_filter_node.hpp b/sensing/livox/autoware_livox_tag_filter/src/livox_tag_filter_node.hpp similarity index 84% rename from sensing/livox/livox_tag_filter/include/livox_tag_filter/livox_tag_filter_node.hpp rename to sensing/livox/autoware_livox_tag_filter/src/livox_tag_filter_node.hpp index 8968f61262934..96d80707c3c63 100644 --- a/sensing/livox/livox_tag_filter/include/livox_tag_filter/livox_tag_filter_node.hpp +++ b/sensing/livox/autoware_livox_tag_filter/src/livox_tag_filter_node.hpp @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef LIVOX_TAG_FILTER__LIVOX_TAG_FILTER_NODE_HPP_ -#define LIVOX_TAG_FILTER__LIVOX_TAG_FILTER_NODE_HPP_ +#ifndef LIVOX_TAG_FILTER_NODE_HPP_ +#define LIVOX_TAG_FILTER_NODE_HPP_ #include @@ -22,7 +22,7 @@ #include #include -namespace livox_tag_filter +namespace autoware::livox_tag_filter { class LivoxTagFilterNode : public rclcpp::Node { @@ -41,6 +41,6 @@ class LivoxTagFilterNode : public rclcpp::Node // Publisher rclcpp::Publisher::SharedPtr pub_pointcloud_; }; -} // namespace livox_tag_filter +} // namespace autoware::livox_tag_filter -#endif // LIVOX_TAG_FILTER__LIVOX_TAG_FILTER_NODE_HPP_ +#endif // LIVOX_TAG_FILTER_NODE_HPP_ diff --git a/sensing/livox/livox_tag_filter/CMakeLists.txt b/sensing/livox/livox_tag_filter/CMakeLists.txt deleted file mode 100644 index 36c500aefa74d..0000000000000 --- a/sensing/livox/livox_tag_filter/CMakeLists.txt +++ /dev/null @@ -1,25 +0,0 @@ -cmake_minimum_required(VERSION 3.14) -project(livox_tag_filter) - -find_package(autoware_cmake REQUIRED) -autoware_package() - -find_package(PCL REQUIRED) - -ament_auto_add_library(livox_tag_filter SHARED - src/livox_tag_filter_node/livox_tag_filter_node.cpp -) - -target_link_libraries(livox_tag_filter - ${PCL_LIBRARIES} -) - -rclcpp_components_register_node(livox_tag_filter - PLUGIN "livox_tag_filter::LivoxTagFilterNode" - EXECUTABLE livox_tag_filter_node -) - -ament_auto_package(INSTALL_TO_SHARE - launch - config -)