@@ -154,8 +154,8 @@ void TopicStateMonitorNode::checkTopicStatus(diagnostic_updater::DiagnosticStatu
154
154
const auto print_warn = [&](const std::string & msg) {
155
155
RCLCPP_WARN_THROTTLE (get_logger (), *get_clock (), 3000 , " %s" , msg.c_str ());
156
156
};
157
- const auto print_debug = [&](const std::string & msg) {
158
- RCLCPP_DEBUG_THROTTLE (get_logger (), *get_clock (), 3000 , " %s" , msg.c_str ());
157
+ const auto print_info = [&](const std::string & msg) {
158
+ RCLCPP_INFO_THROTTLE (get_logger (), *get_clock (), 3000 , " %s" , msg.c_str ());
159
159
};
160
160
161
161
// Judge level
@@ -166,19 +166,21 @@ void TopicStateMonitorNode::checkTopicStatus(diagnostic_updater::DiagnosticStatu
166
166
} else if (topic_status == TopicStatus::NotReceived) {
167
167
level = DiagnosticStatus::ERROR;
168
168
stat.add (" status" , " NotReceived" );
169
- print_debug (node_param_.topic + " has not received." );
169
+ print_info (node_param_.topic + " has not received. Set ERROR in diagnostics ." );
170
170
} else if (topic_status == TopicStatus::WarnRate) {
171
171
level = DiagnosticStatus::WARN;
172
172
stat.add (" status" , " WarnRate" );
173
- print_warn (node_param_.topic + " topic rate has dropped to the warning level." );
173
+ print_warn (
174
+ node_param_.topic + " topic rate has dropped to the warning level. Set WARN in diagnostics." );
174
175
} else if (topic_status == TopicStatus::ErrorRate) {
175
176
level = DiagnosticStatus::ERROR;
176
177
stat.add (" status" , " ErrorRate" );
177
- print_warn (node_param_.topic + " topic rate has dropped to the error level." );
178
+ print_warn (
179
+ node_param_.topic + " topic rate has dropped to the error level. Set ERROR in diagnostics." );
178
180
} else if (topic_status == TopicStatus::Timeout) {
179
181
level = DiagnosticStatus::ERROR;
180
182
stat.add (" status" , " Timeout" );
181
- print_warn (node_param_.topic + " topic is timeout." );
183
+ print_warn (node_param_.topic + " topic is timeout. Set ERROR in diagnostics. " );
182
184
}
183
185
184
186
// Add key-value
0 commit comments