Skip to content

Commit

Permalink
Update gazebo_ros2_control_plugin.cpp (#286) (#288)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5e1f9a5)

Co-authored-by: Tobias Fischer <[email protected]>
  • Loading branch information
mergify[bot] and Tobias-Fischer authored Feb 14, 2024
1 parent b3907b2 commit a198796
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gazebo_ros2_control/src/gazebo_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include <memory>
#include <utility>
#include <vector>
#include <chrono>
#include <thread>

#include "gazebo_ros/node.hpp"

Expand Down Expand Up @@ -476,7 +478,7 @@ std::string GazeboRosControlPrivate::getURDF(std::string param_name) const
model_nh_->get_logger(), "gazebo_ros2_control plugin is waiting for model"
" URDF in parameter [%s] on the ROS param server.", param_name.c_str());
}
usleep(100000);
std::this_thread::sleep_for(std::chrono::microseconds(100000));
}
RCLCPP_INFO(
model_nh_->get_logger(), "Received urdf from param server, parsing...");
Expand Down

0 comments on commit a198796

Please sign in to comment.