Skip to content

Commit a6e47bf

Browse files
authored
fix ThreeHand api bug (#140)
* add MyCobot 280 X5PI API * add MyCobot 280 X5 PI doc * Fix MyCobot 280 X5 Pi doc errors * add MyCobot 280 X5 PI sokcet sever&client * MyCobot 280 X5 PI server compatible with python2 * rename MyCobot280x5pi to MyCobot280RDKX5 * fix MyArmMControl bugs * fix MyArmC bugs * fix myArmM&C demo bug * update M&C demo * fix MyCobot280 rdkx5 bug * fix MyArmM&C bugs * fix bugs * fix bug * fix ThreeHand api bug --------- Co-authored-by: Mrkun5018 <76215701+Mrkun5018@users.noreply.github.com>
1 parent 95ee7d1 commit a6e47bf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pymycobot/end_control.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,13 +418,19 @@ def set_hand_gripper_pinch_action_speed_consort(self, pinch_pose, rank_mode, gri
418418
Idle flag. By default, there is no such byte. When this byte is 1, the idle finger can be freely manipulated.
419419
420420
"""
421-
self.calibration_parameters(class_name=self.__class__.__name__, pinch_pose=pinch_pose, rank_mode=rank_mode, idle_flag=idle_flag)
421+
422422
if idle_flag is None:
423+
self.calibration_parameters(
424+
class_name=self.__class__.__name__, pinch_pose=pinch_pose, rank_mode=rank_mode
425+
)
423426
return self.__set_tool_fittings_value(
424427
FingerGripper.SET_HAND_GRIPPER_PINCH_ACTION_SPEED_CONSORT, pinch_pose, rank_mode, gripper_id=gripper_id
425428
)
426429
else:
430+
self.calibration_parameters(
431+
class_name=self.__class__.__name__, pinch_pose=pinch_pose, rank_mode=rank_mode, idle_flag=idle_flag
432+
)
427433
return self.__set_tool_fittings_value(
428434
FingerGripper.SET_HAND_GRIPPER_PINCH_ACTION_SPEED_CONSORT, pinch_pose, rank_mode, idle_flag,
429435
gripper_id=gripper_id
430-
)
436+
)

0 commit comments

Comments
 (0)