Remove default disable_torque_ in openarm

This commit is contained in:
Thomason Zhou 2025-04-10 18:34:54 +09:00
parent 596c498598
commit 9618e107a5

View File

@ -199,8 +199,6 @@ hardware_interface::return_type OpenArmHW::read(
hardware_interface::return_type OpenArmHW::write( hardware_interface::return_type OpenArmHW::write(
const rclcpp::Time & /*time*/, const rclcpp::Duration & /*period*/) const rclcpp::Time & /*time*/, const rclcpp::Duration & /*period*/)
{ {
disable_torque_ = false;
if (disable_torque_){ if (disable_torque_){
// refresh motor state on write // refresh motor state on write
for(size_t i = 0; i < TOTAL_DOF; ++i){ for(size_t i = 0; i < TOTAL_DOF; ++i){