Skip to content

Commit

Permalink
Flip gripper target.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Jan 8, 2025
1 parent 161b304 commit efd87e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RetargetingManagerSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void RetargetingManagerSet::updateGripper()
{
gripperName = "r_gripper";
}
ctl().robot().gripper(gripperName).setTargetOpening(leftHandJoyMsg.axes[2]);
ctl().robot().gripper(gripperName).setTargetOpening(1.0 - leftHandJoyMsg.axes[2]);
}
if(ctl().datastore().has("HRC::ViveRos::RightHandJoyMsg"))
{
Expand All @@ -328,7 +328,7 @@ void RetargetingManagerSet::updateGripper()
{
gripperName = "l_gripper";
}
ctl().robot().gripper(gripperName).setTargetOpening(rightHandJoyMsg.axes[2]);
ctl().robot().gripper(gripperName).setTargetOpening(1.0 - rightHandJoyMsg.axes[2]);
}
}

Expand Down

0 comments on commit efd87e8

Please sign in to comment.