Skip to content

Commit

Permalink
Update robot state if time since last command exceeds timeout (#3251) (
Browse files Browse the repository at this point in the history
…#3334)

(cherry picked from commit 09a654f)

Co-authored-by: Kazuya Oguma <[email protected]>
  • Loading branch information
mergify[bot] and KazuyaOguma18 authored Feb 11, 2025
1 parent 6c5e6ec commit 969db71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moveit_ros/moveit_servo/src/servo_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ void ServoNode::servoLoop()
else
{
// if no new command was created, use current robot state
last_commanded_state_ = current_state = servo_->getCurrentRobotState(false);
updateSlidingWindow(current_state, joint_cmd_rolling_window_, servo_params_.max_expected_latency, cur_time);
servo_->resetSmoothing(current_state);
}
Expand Down

0 comments on commit 969db71

Please sign in to comment.