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
* Update robot state if time since last command exceeds timeout

* update last_commanded_state_, when the command is staled

* resolve conflicts

* delete space

* chore: add new line

* refactor: if next_joint_state is nullopt, update robot state with blocking

* non-blocking update of robot status

* remove unused include file
  • Loading branch information
KazuyaOguma18 authored Feb 11, 2025
1 parent 9922704 commit 09a654f
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 @@ -398,6 +398,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 09a654f

Please sign in to comment.