@@ -111,7 +111,8 @@ def _mesg(self, genre, *args, **kwargs):
111111 ProtocolCode .GET_JOINT_MIN_ANGLE ,
112112 ProtocolCode .GET_JOINT_MAX_ANGLE ,
113113 ProtocolCode .GET_FRESH_MODE ,
114- ProtocolCode .GET_GRIPPER_MODE
114+ ProtocolCode .GET_GRIPPER_MODE ,
115+ ProtocolCode .SET_SSID_PWD
115116 ]:
116117 return self ._process_single (res )
117118 elif genre in [ProtocolCode .GET_ANGLES ]:
@@ -222,3 +223,31 @@ def set_solution_angles(self, angle, speed):
222223 def get_solution_angles (self ):
223224 """Get zero space deflection angle value"""
224225 return self ._mesg (ProtocolCode .GET_SOLUTION_ANGLES , has_reply = True )
226+
227+ def release_all_servos (self , data ):
228+ """Relax all joints
229+
230+ Args:
231+ data: 1 - Undamping (The default is damping)
232+ """
233+ return self ._mesg (ProtocolCode .RELEASE_ALL_SERVOS , data )
234+
235+ def get_transpoendr_mode (self ):
236+ """Obtain the configuration information of serial transmission mode
237+
238+ Return:
239+ mode: 0 - 1 - 2
240+ """
241+ return self ._mesg (ProtocolCode .SET_SSID_PWD , has_reply = True )
242+
243+ def set_transpoendr_mode (self , mode ):
244+ """Set serial port transmission mode
245+
246+ Args:
247+ mode:
248+ 0 - Turn off transparent transmission.\n
249+ 1 - Turn on transparent transmission. verify all data.\n
250+ 2 - Turn on transparent transmission, only verify the configuration information of communication forwarding mode (default is 0)
251+ """
252+ return self ._mesg (ProtocolCode .GET_SSID_PWD , mode )
253+
0 commit comments