Skip to content

Commit

Permalink
Update gazebo_ros2_control_plugin.cpp (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Feb 14, 2024
1 parent 5230b1e commit 5e1f9a5
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 @@ -506,7 +508,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 5e1f9a5

Please sign in to comment.