Skip to content

Commit

Permalink
Sleep in loop when Servo is paused too
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Nov 21, 2023
1 parent 7178a91 commit b0d672c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moveit_ros/moveit_servo/src/servo_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ void ServoNode::servoLoop()
{
// Skip processing if servoing is disabled.
if (servo_paused_)
{
servo_frequency.sleep();
continue;
}

next_joint_state = std::nullopt;
const CommandType expected_type = servo_->getCommandType();
Expand Down

0 comments on commit b0d672c

Please sign in to comment.