Skip to content

Commit

Permalink
Create ros-noetic-topic-tools.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Jan 3, 2025
1 parent be381bd commit a73259d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patch/ros-noetic-topic-tools.patch
Original file line number Diff line number Diff line change
@@ -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<ShapeShifter const>& 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;

0 comments on commit a73259d

Please sign in to comment.