Skip to content

Commit f1b8903

Browse files
committed
add info message when measuring latency
1 parent 0693ab7 commit f1b8903

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/MqttClient.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ void MqttClient::loadParameters() {
153153
}
154154
}
155155

156-
NODELET_INFO("Bridging ROS topic '%s' to MQTT topic '%s'",
157-
ros_topic.c_str(), ros2mqtt.mqtt.topic.c_str());
156+
NODELET_INFO("Bridging ROS topic '%s' to MQTT topic '%s' %s",
157+
ros_topic.c_str(), ros2mqtt.mqtt.topic.c_str(),
158+
ros2mqtt.stamped ? "and measuring latency" : "");
158159
} else {
159160
NODELET_WARN(
160161
"Parameter 'bridge/ros2mqtt[%d]' is missing subparameter "

0 commit comments

Comments
 (0)