diff --git a/CHANGELOG.md b/CHANGELOG.md index dc8eed8..9d62176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # ChangeLog for pymycobot +## v3.6.7 (2024-11-15) + +- release v3.6.7 +- Fixed the issue of incorrect naming of 320 electric gripper + ## v3.6.5 (2024-10-25) - release v3.6.5 diff --git a/pymycobot/__init__.py b/pymycobot/__init__.py index 6cc4877..73118a4 100644 --- a/pymycobot/__init__.py +++ b/pymycobot/__init__.py @@ -85,7 +85,7 @@ from pymycobot.mybuddyemoticon import MyBuddyEmoticon __all__.append("MyBuddyEmoticon") -__version__ = "3.6.6" +__version__ = "3.6.7" __author__ = "Elephantrobotics" __email__ = "weiquan.xu@elephantrobotics.com" __git_url__ = "https://github.com/elephantrobotics/pymycobot" diff --git a/pymycobot/common.py b/pymycobot/common.py index f308189..3633054 100644 --- a/pymycobot/common.py +++ b/pymycobot/common.py @@ -180,8 +180,8 @@ class ProtocolCode(object): SET_GRIPPER_TORQUE = 0x6F IS_BTN_CLICKED = 0x6F SET_COLOR_MYARM = 0x70 - SET_ELETRIC_GRIPPER = 0x6B - INIT_ELETRIC_GRIPPER = 0x6C + SET_ELECTRIC_GRIPPER = 0x6B + INIT_ELECTRIC_GRIPPER = 0x6C SET_GRIPPER_MODE = 0x6D GET_GRIPPER_MODE = 0x6E diff --git a/pymycobot/mycobot320.py b/pymycobot/mycobot320.py index 2f70081..c203f06 100644 --- a/pymycobot/mycobot320.py +++ b/pymycobot/mycobot320.py @@ -410,18 +410,18 @@ def set_joint_min(self, id, angle): return self._mesg(ProtocolCode.SET_JOINT_MIN, id, angle) # Atom Gripper IO - def init_eletric_gripper(self): # TODO 22-5-19 need test + def init_electric_gripper(self): # TODO 22-5-19 need test """Electric gripper initialization (it needs to be initialized once after inserting and removing the gripper""" - return self._mesg(ProtocolCode.INIT_ELETRIC_GRIPPER) + return self._mesg(ProtocolCode.INIT_ELECTRIC_GRIPPER) - def set_eletric_gripper(self, status): # TODO 22-5-19 need test + def set_electric_gripper(self, status): # TODO 22-5-19 need test """Set Electric Gripper Mode Args: status: 0 - open, 1 - close. """ self.calibration_parameters(class_name=self.__class__.__name__, status=status) - return self._mesg(ProtocolCode.SET_ELETRIC_GRIPPER, status) + return self._mesg(ProtocolCode.SET_ELECTRIC_GRIPPER, status) def set_gripper_mode(self, mode): """Set gripper mode