Skip to content

Commit d6a8d79

Browse files
committed
Aligning the parameter descriptions with what is in the README file
1 parent 6bb674f commit d6a8d79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mqtt_client/src/MqttClient.ros2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void MqttClient::loadParameters() {
322322
declare_parameter(fmt::format("bridge.ros2mqtt.{}.mqtt_topic", ros_topic), rclcpp::ParameterType::PARAMETER_STRING, param_desc);
323323
param_desc.description = "whether to publish as primitive message";
324324
declare_parameter(fmt::format("bridge.ros2mqtt.{}.primitive", ros_topic), rclcpp::ParameterType::PARAMETER_BOOL, param_desc);
325-
param_desc.description = "Explicitly set the ros message type";
325+
param_desc.description = "If set, the ROS msg type provided will be used. If empty, the type is automatically deduced via the publisher";
326326
declare_parameter(fmt::format("bridge.ros2mqtt.{}.ros_type", ros_topic), rclcpp::ParameterType::PARAMETER_STRING, param_desc);
327327
param_desc.description = "whether to attach a timestamp to a ROS2MQTT payload (for latency computation on receiver side)";
328328
declare_parameter(fmt::format("bridge.ros2mqtt.{}.inject_timestamp", ros_topic), rclcpp::ParameterType::PARAMETER_BOOL, param_desc);
@@ -346,9 +346,9 @@ void MqttClient::loadParameters() {
346346
declare_parameter(fmt::format("bridge.mqtt2ros.{}.ros_topic", mqtt_topic), rclcpp::ParameterType::PARAMETER_STRING, param_desc);
347347
param_desc.description = "whether to publish as primitive message (if coming from non-ROS MQTT client)";
348348
declare_parameter(fmt::format("bridge.mqtt2ros.{}.primitive", mqtt_topic), rclcpp::ParameterType::PARAMETER_BOOL, param_desc);
349-
param_desc.description = "Explicitly set the ros message type";
349+
param_desc.description = "If set, the ROS msg type provided will be used. If empty, the type is automatically deduced via the MQTT message";
350350
declare_parameter(fmt::format("bridge.mqtt2ros.{}.ros_type", mqtt_topic), rclcpp::ParameterType::PARAMETER_STRING, param_desc);
351-
param_desc.description = "The encoding to use for the mqtt ";
351+
param_desc.description = "MQTT QoS value";
352352
declare_parameter(fmt::format("bridge.mqtt2ros.{}.advanced.mqtt.qos", mqtt_topic), rclcpp::ParameterType::PARAMETER_INTEGER, param_desc);
353353
param_desc.description = "ROS publisher queue size";
354354
declare_parameter(fmt::format("bridge.mqtt2ros.{}.advanced.ros.queue_size", mqtt_topic), rclcpp::ParameterType::PARAMETER_INTEGER, param_desc);

0 commit comments

Comments
 (0)