Skip to content

Commit 50f7cb0

Browse files
authored
feat(diagnostic_graph_utils): use StringStamped in autoware_internal_debug_msgs (#9741)
* feat(diagnostic_graph_utils): use StringStamped in autoware_internal_debug_msgs Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
1 parent f16ff53 commit 50f7cb0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

system/diagnostic_graph_utils/package.xml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<buildtool_depend>ament_cmake_auto</buildtool_depend>
1111
<buildtool_depend>autoware_cmake</buildtool_depend>
1212

13+
<depend>autoware_internal_debug_msgs</depend>
1314
<depend>diagnostic_msgs</depend>
1415
<depend>rclcpp</depend>
1516
<depend>rclcpp_components</depend>

system/diagnostic_graph_utils/src/node/logging.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LoggingNode::LoggingNode(const rclcpp::NodeOptions & options) : Node("logging",
3434
sub_graph_.register_create_callback(std::bind(&LoggingNode::on_create, this, _1));
3535
sub_graph_.subscribe(*this, 1);
3636

37-
pub_error_graph_text_ = create_publisher<tier4_debug_msgs::msg::StringStamped>(
37+
pub_error_graph_text_ = create_publisher<autoware_internal_debug_msgs::msg::StringStamped>(
3838
"~/debug/error_graph_text", rclcpp::QoS(1));
3939

4040
const auto period = rclcpp::Rate(declare_parameter<double>("show_rate")).period();
@@ -68,12 +68,12 @@ void LoggingNode::on_timer()
6868
RCLCPP_WARN_STREAM(get_logger(), prefix_message << std::endl << dump_text_.str());
6969
}
7070

71-
tier4_debug_msgs::msg::StringStamped message;
71+
autoware_internal_debug_msgs::msg::StringStamped message;
7272
message.stamp = now();
7373
message.data = dump_text_.str();
7474
pub_error_graph_text_->publish(message);
7575
} else {
76-
tier4_debug_msgs::msg::StringStamped message;
76+
autoware_internal_debug_msgs::msg::StringStamped message;
7777
message.stamp = now();
7878
pub_error_graph_text_->publish(message);
7979
}

system/diagnostic_graph_utils/src/node/logging.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include <rclcpp/rclcpp.hpp>
2121

22-
#include "tier4_debug_msgs/msg/string_stamped.hpp"
22+
#include "autoware_internal_debug_msgs/msg/string_stamped.hpp"
2323

2424
#include <sstream>
2525
#include <string>
@@ -37,7 +37,8 @@ class LoggingNode : public rclcpp::Node
3737
void on_timer();
3838
void dump_unit(DiagUnit * unit, int depth, const std::string & indent);
3939
DiagGraphSubscription sub_graph_;
40-
rclcpp::Publisher<tier4_debug_msgs::msg::StringStamped>::SharedPtr pub_error_graph_text_;
40+
rclcpp::Publisher<autoware_internal_debug_msgs::msg::StringStamped>::SharedPtr
41+
pub_error_graph_text_;
4142
rclcpp::TimerBase::SharedPtr timer_;
4243

4344
DiagUnit * root_unit_;

0 commit comments

Comments
 (0)