Skip to content

Commit

Permalink
release v3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anla-xu committed Dec 4, 2023
1 parent 5088495 commit 45af788
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog for pymycobot

## v3.3.1 (2023-12-4)

- release v3.3.1
- fix bug

## v3.3.0 (2023-11-9)

- release v3.3.0
Expand Down
2 changes: 1 addition & 1 deletion pymycobot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
__all__.append("MyBuddyEmoticon")

__version__ = "3.3.0b0"
__version__ = "3.3.1"
__author__ = "Elephantrobotics"
__email__ = "[email protected]"
__git_url__ = "https://github.com/elephantrobotics/pymycobot"
Expand Down
7 changes: 6 additions & 1 deletion pymycobot/mecharmsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_FRESH_MODE,
ProtocolCode.GET_GRIPPER_MODE,
ProtocolCode.GET_ERROR_INFO,
ProtocolCode.GET_GPIO_IN
ProtocolCode.GET_GPIO_IN,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
7 changes: 6 additions & 1 deletion pymycobot/myarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_REFERENCE_FRAME,
ProtocolCode.GET_FRESH_MODE,
ProtocolCode.GET_GRIPPER_MODE,
ProtocolCode.GET_ERROR_INFO,
ProtocolCode.SET_SSID_PWD,
ProtocolCode.GetHTSGripperTorque
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
8 changes: 7 additions & 1 deletion pymycobot/myarmsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_FRESH_MODE,
ProtocolCode.GET_GRIPPER_MODE,
ProtocolCode.GET_ERROR_INFO,
ProtocolCode.GET_GPIO_IN
ProtocolCode.GET_GPIO_IN,
ProtocolCode.SET_SSID_PWD,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
9 changes: 7 additions & 2 deletions pymycobot/mybuddy.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_END_TYPE,
ProtocolCode.GET_MOVEMENT_TYPE,
ProtocolCode.GET_REFERENCE_FRAME,
ProtocolCode.GET_JOINT_MIN_ANGLE,
ProtocolCode.GET_JOINT_MAX_ANGLE,
ProtocolCode.GET_FRESH_MODE,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
# ProtocolCode.GET_SERVO_CURRENTS
]:
return self._process_single(res)
Expand Down Expand Up @@ -192,6 +195,8 @@ def _mesg(self, genre, *args, **kwargs):
return r
else:
return res
elif genre in [ProtocolCode.GET_JOINT_MAX_ANGLE, ProtocolCode.GET_JOINT_MIN_ANGLE]:
return self._int2coord(res[0])
elif genre in [ProtocolCode.GET_SERVO_VOLTAGES, ProtocolCode.COLLISION]:
return [self._int2coord(angle) for angle in res]
else:
Expand Down
7 changes: 6 additions & 1 deletion pymycobot/mybuddysocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_MOVEMENT_TYPE,
ProtocolCode.GET_REFERENCE_FRAME,
ProtocolCode.GET_JOINT_MIN_ANGLE,
ProtocolCode.GET_JOINT_MAX_ANGLE
ProtocolCode.GET_JOINT_MAX_ANGLE,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
6 changes: 5 additions & 1 deletion pymycobot/mycobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ def _res(self, real_command, has_reply, genre):
ProtocolCode.GET_ERROR_INFO,
ProtocolCode.GET_COMMUNICATE_MODE,
ProtocolCode.SET_COMMUNICATE_MODE,
ProtocolCode.GetHTSGripperTorque
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
7 changes: 6 additions & 1 deletion pymycobot/mycobotsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_ERROR_INFO,
ProtocolCode.GET_GPIO_IN,
ProtocolCode.GET_COMMUNICATE_MODE,
ProtocolCode.SET_COMMUNICATE_MODE
ProtocolCode.SET_COMMUNICATE_MODE,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
7 changes: 6 additions & 1 deletion pymycobot/mypalletizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_BASIC_INPUT,
ProtocolCode.GET_TOF_DISTANCE,
ProtocolCode.GET_COMMUNICATE_MODE,
ProtocolCode.SET_COMMUNICATE_MODE
ProtocolCode.SET_COMMUNICATE_MODE,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down
7 changes: 6 additions & 1 deletion pymycobot/mypalletizersocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ def _mesg(self, genre, *args, **kwargs):
ProtocolCode.GET_TOF_DISTANCE,
ProtocolCode.GET_GPIO_IN,
ProtocolCode.GET_COMMUNICATE_MODE,
ProtocolCode.SET_COMMUNICATE_MODE
ProtocolCode.SET_COMMUNICATE_MODE,
ProtocolCode.SetHTSGripperTorque,
ProtocolCode.GetHTSGripperTorque,
ProtocolCode.GetGripperProtectCurrent,
ProtocolCode.InitGripper,
ProtocolCode.SET_FOUR_PIECES_ZERO
]:
return self._process_single(res)
elif genre in [ProtocolCode.GET_ANGLES]:
Expand Down

0 comments on commit 45af788

Please sign in to comment.