We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcba7f2 commit abe0392Copy full SHA for abe0392
mqtt_client/src/MqttClient.ros2.cpp
@@ -312,8 +312,12 @@ void MqttClient::loadParameters() {
312
313
// mqtt2ros[k]/advanced/ros/latched
314
rclcpp::Parameter latched_param;
315
- if (get_parameter("bridge.mqtt2ros.advanced.ros.latched", latched_param))
+ if (get_parameter("bridge.mqtt2ros.advanced.ros.latched", latched_param)) {
316
mqtt2ros.ros.latched = latched_param.as_bool();
317
+ RCLCPP_WARN(get_logger(),
318
+ "Parameter 'bridge.mqtt2ros.advanced.ros.latched' is ignored "
319
+ "since ROS 2 does not easily support latched topics.");
320
+ }
321
322
RCLCPP_INFO(get_logger(), "Bridging MQTT topic '%s' to %sROS topic '%s'",
323
mqtt_topic.c_str(), mqtt2ros.primitive ? "primitive " : "",
0 commit comments