From a73259de3a386a9fc291bda0d9ee558128d016d2 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Fri, 3 Jan 2025 15:15:07 +1000 Subject: [PATCH] Create ros-noetic-topic-tools.patch --- patch/ros-noetic-topic-tools.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patch/ros-noetic-topic-tools.patch diff --git a/patch/ros-noetic-topic-tools.patch b/patch/ros-noetic-topic-tools.patch new file mode 100644 index 000000000..65b69438f --- /dev/null +++ b/patch/ros-noetic-topic-tools.patch @@ -0,0 +1,13 @@ +diff --git a/src/mux.cpp b/src/mux.cpp +index c7ff5f2816..bd27fdfe8a 100644 +--- a/src/mux.cpp ++++ b/src/mux.cpp +@@ -157,7 +157,7 @@ void in_cb(const boost::shared_ptr& msg, + // we need sleep for publisher initialization + // otherwise the first topic will drop. + if (g_wait_pub_init) { +- usleep(g_wait_second * 1000000); ++ std::this_thread::sleep_for(std::chrono::microseconds(g_wait_second * 1000000)); + } + g_advertised = true; +