Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mqtt_client/src/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SOFTWARE.
#include <cstdint>
#include <cstring>
#include <vector>
#include <thread>

#include <mqtt_client/MqttClient.h>
#include <mqtt_client_interfaces/RosMsgType.h>
Expand Down Expand Up @@ -785,6 +786,8 @@ void MqttClient::mqtt2primitive(mqtt::const_message_ptr mqtt_msg) {

NODELET_INFO("ROS publisher message type on topic '%s' set to '%s'",
mqtt2ros.ros.topic.c_str(), msg_type_name.c_str());
//adding small delay in creating publisher
std::this_thread::sleep_for(std::chrono::milliseconds(200));
}

// publish via ShapeShifter
Expand Down