Skip to content
Snippets Groups Projects
Commit bd6408ed authored by Johannes Mey's avatar Johannes Mey
Browse files

less verbose, some documentation

parent d04f1c17
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@ namespace robot_state_provider {
*/
std::map<std::string, std::string> topics{};
/**
* The MQTT QOS is set to 0, meaning each message is received *at most* once.
*/
constexpr int QOS = 0;
const std::string CLIENT_ID = "robot_state_provider_mqtt";
......@@ -162,7 +164,7 @@ namespace robot_state_provider {
messages.push_back(pls_msg);
} else {
ROS_INFO_STREAM_NAMED("MqttToRosNode", "Skipping the status of link " << name << ".");
ROS_DEBUG_STREAM("Skipping the status of link " << name << ".");
}
}
......@@ -177,7 +179,7 @@ namespace robot_state_provider {
std::string mqtt_msg;
if (!pls_msg.SerializeToString(&mqtt_msg)) {
ROS_ERROR_STREAM_NAMED("MqttToRosNode", "Serialization of incoming MQTT message has failed.");
ROS_ERROR_STREAM("Serialization of incoming MQTT message has failed.");
}
auto pubmsg = mqtt::make_message(pls_msg.name(), mqtt_msg);
......@@ -190,7 +192,7 @@ namespace robot_state_provider {
return;
}
} else {
ROS_ERROR_STREAM_NAMED("MqttToRosNode", "Not connected! Unable to listen to messages.");
ROS_ERROR_STREAM("Not connected! Unable to listen to messages.");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment