Skip to content

Commit

Permalink
Fix mimic joint for effort command (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Feb 8, 2022
1 parent d18b955 commit 698d013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gazebo_ros2_control/src/gazebo_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ hardware_interface::return_type GazeboSystem::write()
this->dataPtr->joint_velocity_cmd_[mimic_joint.mimicked_joint_index];
}
if (this->dataPtr->joint_control_methods_[mimic_joint.joint_index] & EFFORT &&
this->dataPtr->joint_control_methods_[mimic_joint.mimicked_joint_index] & VELOCITY)
this->dataPtr->joint_control_methods_[mimic_joint.mimicked_joint_index] & EFFORT)
{
this->dataPtr->joint_effort_cmd_[mimic_joint.joint_index] =
mimic_joint.multiplier * this->dataPtr->joint_effort_cmd_[mimic_joint.mimicked_joint_index];
Expand Down

0 comments on commit 698d013

Please sign in to comment.