@@ -108,8 +108,6 @@ def _mesg(self, genre, *args, **kwargs):
108108 ProtocolCode .GET_END_TYPE ,
109109 ProtocolCode .GET_MOVEMENT_TYPE ,
110110 ProtocolCode .GET_REFERENCE_FRAME ,
111- ProtocolCode .GET_JOINT_MIN_ANGLE ,
112- ProtocolCode .GET_JOINT_MAX_ANGLE ,
113111 ProtocolCode .GET_FRESH_MODE ,
114112 ProtocolCode .GET_GRIPPER_MODE ,
115113 ProtocolCode .SET_SSID_PWD
@@ -129,6 +127,8 @@ def _mesg(self, genre, *args, **kwargs):
129127 return res
130128 elif genre in [ProtocolCode .GET_SERVO_VOLTAGES ]:
131129 return [self ._int2coord (angle ) for angle in res ]
130+ elif genre in [ProtocolCode .GET_JOINT_MAX_ANGLE , ProtocolCode .GET_JOINT_MIN_ANGLE ]:
131+ return self ._int2coord (res [0 ])
132132 else :
133133 return res
134134 return None
@@ -149,7 +149,6 @@ def send_radians(self, radians, speed):
149149 radians: a list of radian values( List[float]), length 6
150150 speed: (int )0 ~ 100
151151 """
152- calibration_parameters (len6 = radians , speed = speed )
153152 degrees = [self ._angle2int (radian * (180 / math .pi ))
154153 for radian in radians ]
155154 return self ._mesg (ProtocolCode .SEND_ANGLES , degrees , speed )
@@ -224,13 +223,16 @@ def get_solution_angles(self):
224223 """Get zero space deflection angle value"""
225224 return self ._mesg (ProtocolCode .GET_SOLUTION_ANGLES , has_reply = True )
226225
227- def release_all_servos (self , data ):
226+ def release_all_servos (self , data = None ):
228227 """Relax all joints
229228
230229 Args:
231230 data: 1 - Undamping (The default is damping)
232231 """
233- return self ._mesg (ProtocolCode .RELEASE_ALL_SERVOS , data )
232+ if data is None :
233+ return super ().release_all_servos ()
234+ else :
235+ return self ._mesg (ProtocolCode .RELEASE_ALL_SERVOS , data )
234236
235237 def get_transpoendr_mode (self ):
236238 """Obtain the configuration information of serial transmission mode
0 commit comments