Skip to content

Commit 05b09a8

Browse files
committed
[dynamixel_general_hw] Reset joint limit interfaces in special states to prevent runaway when going back to normal state
1 parent 0bead40 commit 05b09a8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dynamixel_general_hw/src/dynamixel_general_hw.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,12 @@ void DynamixelGeneralHw::write(const ros::Time& time, const ros::Duration& perio
11741174
normal_modes_.clear();
11751175
}
11761176
}
1177+
if (isJntCmdIgnored())
1178+
{
1179+
// Reset joint limit interfaces to prevent runaway when going back to normal state
1180+
pos_jnt_sat_interface_.reset();
1181+
pos_jnt_soft_interface_.reset();
1182+
}
11771183
prev_is_servo_ = is_servo_;
11781184
prev_is_hold_pos_ = is_hold_pos_;
11791185
}

0 commit comments

Comments
 (0)