@@ -156,7 +156,7 @@ def send_radians(self, radians, speed):
156156 """Send the radians of all joints to robot arm
157157
158158 Args:
159- radians: a list of radian values( List[float]), length 6
159+ radians: a list of radian values( List[float]), length 7
160160 speed: (int )0 ~ 100
161161 """
162162 degrees = [self ._angle2int (radian * (180 / math .pi ))
@@ -180,7 +180,7 @@ def sync_send_angles(self, degrees, speed, timeout=7):
180180 time .sleep (0.1 )
181181 return self
182182
183- def sync_send_coords (self , coords , speed , mode , timeout = 7 ):
183+ def sync_send_coords (self , coords , speed , mode = 0 , timeout = 7 ):
184184 """Send the coord in synchronous state and return when the target point is reached
185185
186186 Args:
@@ -280,12 +280,10 @@ def set_color(self, r, g, b):
280280 return self ._mesg (ProtocolCode .SET_COLOR_MYARM , r , g , b )
281281
282282 def is_in_position (self , data , id = 0 ):
283- """Judge whether in the position. (mypalletizer 340 does not have this interface)
283+ """Judge whether in the position.
284284
285285 Args:
286286 data: A data list, angles or coords.
287- for mycobot: len 6.
288- for mypalletizer: len 4
289287 id: 1 - coords, 0 - angles
290288
291289 Return:
0 commit comments