Skip to content

Commit

Permalink
Add sleep between controller stopper's controller queries
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Jun 28, 2024
1 parent 021336a commit 0944983
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ur_robot_driver/src/controller_stopper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#include <string>
#include <vector>

#include <rclcpp/utilities.hpp>

#include "ur_robot_driver/controller_stopper.hpp"

ControllerStopper::ControllerStopper(const rclcpp::Node::SharedPtr& node, bool stop_controllers_on_startup)
Expand Down Expand Up @@ -89,6 +91,7 @@ ControllerStopper::ControllerStopper(const rclcpp::Node::SharedPtr& node, bool s
}
}
}
rclcpp::sleep_for(std::chrono::milliseconds(100));
}
auto request_switch_controller = std::make_shared<controller_manager_msgs::srv::SwitchController::Request>();
request_switch_controller->strictness = request_switch_controller->STRICT;
Expand Down

0 comments on commit 0944983

Please sign in to comment.