Skip to content

Commit a5efbb0

Browse files
Bugfix/Remove unnecessary sleep calls during activation and deactivation of flexiv_hardware (#49)
1 parent 2e60326 commit a5efbb0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

flexiv_hardware/src/flexiv_hardware_interface.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ hardware_interface::CallbackReturn FlexivHardwareInterface::on_activate(
199199
{
200200
RCLCPP_INFO(getLogger(), "Starting... please wait...");
201201

202-
std::this_thread::sleep_for(std::chrono::seconds(1));
203-
204202
try {
205203
// Clear fault on robot server if any
206204
if (robot_->fault()) {
@@ -247,8 +245,6 @@ hardware_interface::CallbackReturn FlexivHardwareInterface::on_deactivate(
247245
{
248246
RCLCPP_INFO(getLogger(), "Stopping... please wait...");
249247

250-
std::this_thread::sleep_for(std::chrono::seconds(1));
251-
252248
robot_->Stop();
253249

254250
RCLCPP_INFO(getLogger(), "System successfully stopped!");

0 commit comments

Comments
 (0)