diff --git a/ign_ros2_control/src/ign_ros2_control_plugin.cpp b/ign_ros2_control/src/ign_ros2_control_plugin.cpp index a08e671a..9e0fefa5 100644 --- a/ign_ros2_control/src/ign_ros2_control_plugin.cpp +++ b/ign_ros2_control/src/ign_ros2_control_plugin.cpp @@ -12,9 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include + +#include #include #include #include +#include #include #include @@ -219,7 +223,7 @@ std::string IgnitionROS2ControlPluginPrivate::getURDF() const " URDF in parameter [%s] on the ROS param server.", this->robot_description_.c_str()); } - usleep(100000); + std::this_thread::sleep_for(std::chrono::microseconds(100000)); } RCLCPP_INFO(node_->get_logger(), "Received URDF from param server");