Skip to content

Commit 1a0b2cf

Browse files
committed
log primitive status of mqtt2ros bridge
1 parent a00b2c0 commit 1a0b2cf

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
@@ -207,8 +207,9 @@ void MqttClient::loadParameters() {
207207
}
208208
}
209209

210-
NODELET_INFO("Bridging MQTT topic '%s' to ROS topic '%s'",
211-
mqtt_topic.c_str(), mqtt2ros.ros.topic.c_str());
210+
NODELET_INFO(
211+
"Bridging MQTT topic '%s' to %sROS topic '%s'", mqtt_topic.c_str(),
212+
mqtt2ros.primitive ? "primitive " : "", mqtt2ros.ros.topic.c_str());
212213
} else {
213214
NODELET_WARN(
214215
"Parameter 'bridge/mqtt2ros[%d]' is missing subparameter "

0 commit comments

Comments
 (0)