From dfbdb5fb96e7f16a804b3fba4cc42ad5d93b70b8 Mon Sep 17 00:00:00 2001 From: Takayuki Murooka Date: Thu, 19 Dec 2024 20:38:19 +0900 Subject: [PATCH] feat(tier4_xxx_rviz_plugin): use StringStamped in autoware_internal_debug_msgs (#181) Signed-off-by: Takayuki Murooka --- .../include/tier4_debug_rviz_plugin/string_stamped.hpp | 9 +++++---- common/tier4_debug_rviz_plugin/package.xml | 1 + .../plugins/plugin_description.xml | 2 +- common/tier4_debug_rviz_plugin/src/string_stamped.cpp | 2 +- common/tier4_string_viewer_rviz_plugin/README.md | 2 +- common/tier4_string_viewer_rviz_plugin/package.xml | 2 +- .../src/string_viewer_panel.hpp | 4 ++-- 7 files changed, 12 insertions(+), 10 deletions(-) diff --git a/common/tier4_debug_rviz_plugin/include/tier4_debug_rviz_plugin/string_stamped.hpp b/common/tier4_debug_rviz_plugin/include/tier4_debug_rviz_plugin/string_stamped.hpp index 0960875d..b154d3eb 100644 --- a/common/tier4_debug_rviz_plugin/include/tier4_debug_rviz_plugin/string_stamped.hpp +++ b/common/tier4_debug_rviz_plugin/include/tier4_debug_rviz_plugin/string_stamped.hpp @@ -61,12 +61,12 @@ #endif -#include +#include namespace rviz_plugins { class StringStampedOverlayDisplay -: public rviz_common::RosTopicDisplay +: public rviz_common::RosTopicDisplay { Q_OBJECT @@ -84,7 +84,8 @@ private Q_SLOTS: protected: void update(float wall_dt, float ros_dt) override; - void processMessage(const tier4_debug_msgs::msg::StringStamped::ConstSharedPtr msg_ptr) override; + void processMessage( + const autoware_internal_debug_msgs::msg::StringStamped::ConstSharedPtr msg_ptr) override; jsk_rviz_plugins::OverlayObject::Ptr overlay_; rviz_common::properties::ColorProperty * property_text_color_; rviz_common::properties::IntProperty * property_left_; @@ -100,7 +101,7 @@ private Q_SLOTS: static constexpr int hand_width_ = 4; std::mutex mutex_; - tier4_debug_msgs::msg::StringStamped::ConstSharedPtr last_msg_ptr_; + autoware_internal_debug_msgs::msg::StringStamped::ConstSharedPtr last_msg_ptr_; }; } // namespace rviz_plugins diff --git a/common/tier4_debug_rviz_plugin/package.xml b/common/tier4_debug_rviz_plugin/package.xml index 45b73d5b..7e15e1a3 100644 --- a/common/tier4_debug_rviz_plugin/package.xml +++ b/common/tier4_debug_rviz_plugin/package.xml @@ -10,6 +10,7 @@ ament_cmake autoware_cmake + autoware_internal_debug_msgs libqt5-core libqt5-gui libqt5-widgets diff --git a/common/tier4_debug_rviz_plugin/plugins/plugin_description.xml b/common/tier4_debug_rviz_plugin/plugins/plugin_description.xml index e18900af..72864327 100644 --- a/common/tier4_debug_rviz_plugin/plugins/plugin_description.xml +++ b/common/tier4_debug_rviz_plugin/plugins/plugin_description.xml @@ -7,6 +7,6 @@ - Display drivable area of tier4_debug_msgs::msg::StringStamped + Display drivable area of autoware_internal_debug_msgs::msg::StringStamped diff --git a/common/tier4_debug_rviz_plugin/src/string_stamped.cpp b/common/tier4_debug_rviz_plugin/src/string_stamped.cpp index 538dc0cb..b4e2d032 100644 --- a/common/tier4_debug_rviz_plugin/src/string_stamped.cpp +++ b/common/tier4_debug_rviz_plugin/src/string_stamped.cpp @@ -170,7 +170,7 @@ void StringStampedOverlayDisplay::update(float wall_dt, float ros_dt) } void StringStampedOverlayDisplay::processMessage( - const tier4_debug_msgs::msg::StringStamped::ConstSharedPtr msg_ptr) + const autoware_internal_debug_msgs::msg::StringStamped::ConstSharedPtr msg_ptr) { if (!isEnabled()) { return; diff --git a/common/tier4_string_viewer_rviz_plugin/README.md b/common/tier4_string_viewer_rviz_plugin/README.md index fba6e508..d7c19419 100644 --- a/common/tier4_string_viewer_rviz_plugin/README.md +++ b/common/tier4_string_viewer_rviz_plugin/README.md @@ -2,7 +2,7 @@ ## Purpose -This plugin displays the ROS message whose topic type is `tier4_debug_msgs::msg::StringStamped` in rviz. +This plugin displays the ROS message whose topic type is `autoware_internal_debug_msgs::msg::StringStamped` in rviz. ## Assumptions / Known limits diff --git a/common/tier4_string_viewer_rviz_plugin/package.xml b/common/tier4_string_viewer_rviz_plugin/package.xml index 2f196167..554b74e8 100644 --- a/common/tier4_string_viewer_rviz_plugin/package.xml +++ b/common/tier4_string_viewer_rviz_plugin/package.xml @@ -10,13 +10,13 @@ ament_cmake_auto autoware_cmake + autoware_internal_debug_msgs libqt5-core libqt5-gui libqt5-widgets qtbase5-dev rclcpp rviz_common - tier4_debug_msgs ament_lint_auto autoware_lint_common diff --git a/common/tier4_string_viewer_rviz_plugin/src/string_viewer_panel.hpp b/common/tier4_string_viewer_rviz_plugin/src/string_viewer_panel.hpp index 22ce760f..d02743c1 100644 --- a/common/tier4_string_viewer_rviz_plugin/src/string_viewer_panel.hpp +++ b/common/tier4_string_viewer_rviz_plugin/src/string_viewer_panel.hpp @@ -22,12 +22,12 @@ #include #include -#include +#include namespace tier4_string_viewer_rviz_plugin { -using tier4_debug_msgs::msg::StringStamped; +using autoware_internal_debug_msgs::msg::StringStamped; class QLineEdit;