Skip to content

Commit

Permalink
Enable passive joints again (fix #219)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Aug 11, 2023
1 parent 4e39ac5 commit c043d80
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gazebo_ros2_control/src/gazebo_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,6 @@ hardware_interface::return_type GazeboSystem::write(
this->dataPtr->sim_joints_[j]->SetVelocity(0, this->dataPtr->joint_velocity_cmd_[j]);
} else if (this->dataPtr->joint_control_methods_[j] & EFFORT) { // NOLINT
this->dataPtr->sim_joints_[j]->SetForce(0, this->dataPtr->joint_effort_cmd_[j]);
} else {
// Fallback case is a velocity command of zero
this->dataPtr->sim_joints_[j]->SetVelocity(0, 0.0);
}
}
}
Expand Down

0 comments on commit c043d80

Please sign in to comment.