Skip to content

Commit 45af788

Browse files
committed
release v3.3.1
1 parent 5088495 commit 45af788

File tree

11 files changed

+61
-11
lines changed

11 files changed

+61
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog for pymycobot
22

3+
## v3.3.1 (2023-12-4)
4+
5+
- release v3.3.1
6+
- fix bug
7+
38
## v3.3.0 (2023-11-9)
49

510
- release v3.3.0

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
5353
__all__.append("MyBuddyEmoticon")
5454

55-
__version__ = "3.3.0b0"
55+
__version__ = "3.3.1"
5656
__author__ = "Elephantrobotics"
5757
__email__ = "[email protected]"
5858
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/mecharmsocket.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ def _mesg(self, genre, *args, **kwargs):
110110
ProtocolCode.GET_FRESH_MODE,
111111
ProtocolCode.GET_GRIPPER_MODE,
112112
ProtocolCode.GET_ERROR_INFO,
113-
ProtocolCode.GET_GPIO_IN
113+
ProtocolCode.GET_GPIO_IN,
114+
ProtocolCode.SetHTSGripperTorque,
115+
ProtocolCode.GetHTSGripperTorque,
116+
ProtocolCode.GetGripperProtectCurrent,
117+
ProtocolCode.InitGripper,
118+
ProtocolCode.SET_FOUR_PIECES_ZERO
114119
]:
115120
return self._process_single(res)
116121
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/myarm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@ def _mesg(self, genre, *args, **kwargs):
109109
ProtocolCode.GET_REFERENCE_FRAME,
110110
ProtocolCode.GET_FRESH_MODE,
111111
ProtocolCode.GET_GRIPPER_MODE,
112+
ProtocolCode.GET_ERROR_INFO,
112113
ProtocolCode.SET_SSID_PWD,
113-
ProtocolCode.GetHTSGripperTorque
114+
ProtocolCode.SetHTSGripperTorque,
115+
ProtocolCode.GetHTSGripperTorque,
116+
ProtocolCode.GetGripperProtectCurrent,
117+
ProtocolCode.InitGripper,
118+
ProtocolCode.SET_FOUR_PIECES_ZERO
114119
]:
115120
return self._process_single(res)
116121
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/myarmsocket.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,13 @@ def _mesg(self, genre, *args, **kwargs):
110110
ProtocolCode.GET_FRESH_MODE,
111111
ProtocolCode.GET_GRIPPER_MODE,
112112
ProtocolCode.GET_ERROR_INFO,
113-
ProtocolCode.GET_GPIO_IN
113+
ProtocolCode.GET_GPIO_IN,
114+
ProtocolCode.SET_SSID_PWD,
115+
ProtocolCode.SetHTSGripperTorque,
116+
ProtocolCode.GetHTSGripperTorque,
117+
ProtocolCode.GetGripperProtectCurrent,
118+
ProtocolCode.InitGripper,
119+
ProtocolCode.SET_FOUR_PIECES_ZERO
114120
]:
115121
return self._process_single(res)
116122
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mybuddy.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,12 @@ def _mesg(self, genre, *args, **kwargs):
158158
ProtocolCode.GET_END_TYPE,
159159
ProtocolCode.GET_MOVEMENT_TYPE,
160160
ProtocolCode.GET_REFERENCE_FRAME,
161-
ProtocolCode.GET_JOINT_MIN_ANGLE,
162-
ProtocolCode.GET_JOINT_MAX_ANGLE,
163161
ProtocolCode.GET_FRESH_MODE,
162+
ProtocolCode.SetHTSGripperTorque,
163+
ProtocolCode.GetHTSGripperTorque,
164+
ProtocolCode.GetGripperProtectCurrent,
165+
ProtocolCode.InitGripper,
166+
ProtocolCode.SET_FOUR_PIECES_ZERO
164167
# ProtocolCode.GET_SERVO_CURRENTS
165168
]:
166169
return self._process_single(res)
@@ -192,6 +195,8 @@ def _mesg(self, genre, *args, **kwargs):
192195
return r
193196
else:
194197
return res
198+
elif genre in [ProtocolCode.GET_JOINT_MAX_ANGLE, ProtocolCode.GET_JOINT_MIN_ANGLE]:
199+
return self._int2coord(res[0])
195200
elif genre in [ProtocolCode.GET_SERVO_VOLTAGES, ProtocolCode.COLLISION]:
196201
return [self._int2coord(angle) for angle in res]
197202
else:

pymycobot/mybuddysocket.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ def _mesg(self, genre, *args, **kwargs):
118118
ProtocolCode.GET_MOVEMENT_TYPE,
119119
ProtocolCode.GET_REFERENCE_FRAME,
120120
ProtocolCode.GET_JOINT_MIN_ANGLE,
121-
ProtocolCode.GET_JOINT_MAX_ANGLE
121+
ProtocolCode.GET_JOINT_MAX_ANGLE,
122+
ProtocolCode.SetHTSGripperTorque,
123+
ProtocolCode.GetHTSGripperTorque,
124+
ProtocolCode.GetGripperProtectCurrent,
125+
ProtocolCode.InitGripper,
126+
ProtocolCode.SET_FOUR_PIECES_ZERO
122127
]:
123128
return self._process_single(res)
124129
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mycobot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ def _res(self, real_command, has_reply, genre):
125125
ProtocolCode.GET_ERROR_INFO,
126126
ProtocolCode.GET_COMMUNICATE_MODE,
127127
ProtocolCode.SET_COMMUNICATE_MODE,
128-
ProtocolCode.GetHTSGripperTorque
128+
ProtocolCode.SetHTSGripperTorque,
129+
ProtocolCode.GetHTSGripperTorque,
130+
ProtocolCode.GetGripperProtectCurrent,
131+
ProtocolCode.InitGripper,
132+
ProtocolCode.SET_FOUR_PIECES_ZERO
129133
]:
130134
return self._process_single(res)
131135
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mycobotsocket.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ def _mesg(self, genre, *args, **kwargs):
113113
ProtocolCode.GET_ERROR_INFO,
114114
ProtocolCode.GET_GPIO_IN,
115115
ProtocolCode.GET_COMMUNICATE_MODE,
116-
ProtocolCode.SET_COMMUNICATE_MODE
116+
ProtocolCode.SET_COMMUNICATE_MODE,
117+
ProtocolCode.SetHTSGripperTorque,
118+
ProtocolCode.GetHTSGripperTorque,
119+
ProtocolCode.GetGripperProtectCurrent,
120+
ProtocolCode.InitGripper,
121+
ProtocolCode.SET_FOUR_PIECES_ZERO
117122
]:
118123
return self._process_single(res)
119124
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mypalletizer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ def _mesg(self, genre, *args, **kwargs):
145145
ProtocolCode.GET_BASIC_INPUT,
146146
ProtocolCode.GET_TOF_DISTANCE,
147147
ProtocolCode.GET_COMMUNICATE_MODE,
148-
ProtocolCode.SET_COMMUNICATE_MODE
148+
ProtocolCode.SET_COMMUNICATE_MODE,
149+
ProtocolCode.SetHTSGripperTorque,
150+
ProtocolCode.GetHTSGripperTorque,
151+
ProtocolCode.GetGripperProtectCurrent,
152+
ProtocolCode.InitGripper,
153+
ProtocolCode.SET_FOUR_PIECES_ZERO
149154
]:
150155
return self._process_single(res)
151156
elif genre in [ProtocolCode.GET_ANGLES]:

0 commit comments

Comments
 (0)