Skip to content

Commit

Permalink
[dynamixel_general_hw] Reset joint limit interfaces in special states…
Browse files Browse the repository at this point in the history
… to prevent runaway when going back to normal state
  • Loading branch information
pazeshun committed Dec 13, 2024
1 parent 0bead40 commit 05b09a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dynamixel_general_hw/src/dynamixel_general_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,12 @@ void DynamixelGeneralHw::write(const ros::Time& time, const ros::Duration& perio
normal_modes_.clear();
}
}
if (isJntCmdIgnored())
{
// Reset joint limit interfaces to prevent runaway when going back to normal state
pos_jnt_sat_interface_.reset();
pos_jnt_soft_interface_.reset();
}
prev_is_servo_ = is_servo_;
prev_is_hold_pos_ = is_hold_pos_;
}
Expand Down

0 comments on commit 05b09a8

Please sign in to comment.