@@ -187,7 +187,9 @@ def send_angle(self, id, degree, speed):
187187 """Send one degree of joint to robot arm.
188188
189189 Args:
190- id : Joint id(genre.Angle), int 1-6
190+ id : Joint id(genre.Angle)\n
191+ For mycobot: int 1-6.\n
192+ For mypalletizer: int 1-4.
191193 degree : degree value(float)(about -170 ~ 170).
192194 speed : (int) 0 ~ 100
193195 """
@@ -199,9 +201,9 @@ def send_angles(self, degrees, speed):
199201 """Send the degrees of all joints to robot arm.
200202
201203 Args:
202- degrees : a list of degree values(List[float]), length 6.
203- example for mycobot [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
204- example for mypalletizer [0.0, 0.0, 0.0, 0.0]
204+ degrees: a list of degree values(List[float]), length 6 or 4. \n
205+ for mycobot: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]. \n
206+ for mypalletizer: [0.0, 0.0, 0.0, 0.0]
205207 speed : (int) 0 ~ 100
206208 """
207209 self .calibration_parameters (degrees = degrees , speed = speed )
@@ -213,16 +215,18 @@ def get_coords(self):
213215
214216 Return:
215217 list : A float list of coord
216- for mycobot - [x, y, z, rx, ry, rz],
217- for mypalletizer - [x, y, z, θ]
218+ for mycobot: [x, y, z, rx, ry, rz]\n
219+ for mypalletizer: [x, y, z, θ]
218220 """
219221 return self ._mesg (ProtocolCode .GET_COORDS , has_reply = True )
220222
221223 def send_coord (self , id , coord , speed ):
222224 """Send one coord to robot arm.
223225
224226 Args:
225- id(int) : coord id(genre.Coord), 1 ~ 6
227+ id(int) : coord id(genre.Coord)\n
228+ For mycobot: int 1-6.\n
229+ For mypalletizer: int 1-4.
226230 coord(float) : coord value, mm
227231 speed(int) : 0 ~ 100
228232 """
@@ -234,9 +238,9 @@ def send_coords(self, coords, speed, mode):
234238 """Send all coords to robot arm.
235239
236240 Args:
237- coords: a list of coords value(List[float]), length 6.
238- for mycobot :[x(mm), y, z, rx(angle), ry, rz]
239- for mypalletizer: [x, y, z, θ]
241+ coords: a list of coords value(List[float]), length 6 or 4 .
242+ for mycobot :[x(mm), y, z, rx(angle), ry, rz]\n
243+ for mypalletizer: [x, y, z, θ]
240244 speed : (int) 0 ~ 100
241245 mode : (int) 0 - angluar, 1 - linear
242246 """
@@ -290,7 +294,9 @@ def jog_angle(self, joint_id, direction, speed):
290294 """Jog control angle.
291295
292296 Args:
293- joint_id: (int) 1 ~ 6.
297+ joint_id:
298+ For mycobot: int 1-6.\n
299+ For mypalletizer: int 1-4.
294300 direction: 0 - decrease, 1 - increase
295301 speed: int (0 - 100)
296302 """
@@ -300,7 +306,9 @@ def jog_coord(self, coord_id, direction, speed):
300306 """Jog control coord.
301307
302308 Args:
303- coord_id: (int) 1 ~ 6
309+ coord_id:
310+ For mycobot: int 1-6.\n
311+ For mypalletizer: int 1-4.
304312 direction: 0 - decrease, 1 - increase
305313 speed: int (0 - 100)
306314 """
@@ -493,17 +501,19 @@ def release_servo(self, servo_id):
493501 """Power off designated servo
494502
495503 Args:
496- for mycobot: servo_id: 1 - 6
497- for mypalletizer: servo_id: 1 - 4
504+ servo_id:
505+ for mycobot: 1 - 6.\n
506+ for mypalletizer: 1 - 4
498507 """
499508 return self ._mesg (ProtocolCode .RELEASE_SERVO , servo_id )
500509
501510 def focus_servo (self , servo_id ):
502511 """Power on designated servo
503512
504513 Args:
505- for mycobot: servo_id: 1 - 6
506- for mypalletizer: servo_id: 1 - 4
514+ servo_id:
515+ for mycobot: 1 - 6\n
516+ for mypalletizer: 1 - 4
507517 """
508518 return self ._mesg (ProtocolCode .FOCUS_SERVO , servo_id )
509519
@@ -774,11 +784,17 @@ def get_servo_speeds(self):
774784 return self ._mesg (ProtocolCode .GET_SERVO_SPEED , has_reply = True )
775785
776786 def get_servo_currents (self ):
777- """Get joint current (Only for mycobot 350)"""
787+ """Get joint current (Only for mycobot 350)
788+
789+ return: mA
790+ """
778791 return self ._mesg (ProtocolCode .GET_SERVO_CURRENTS , has_reply = True )
779792
780793 def get_servo_voltages (self ):
781- """Get joint voltages (Only for mycobot 350)"""
794+ """Get joint voltages (Only for mycobot 350)
795+
796+ return: volts
797+ """
782798 return self ._mesg (ProtocolCode .GET_SERVO_VOLTAGES , has_reply = True )
783799
784800 def get_servo_status (self ):
@@ -793,7 +809,9 @@ def set_joint_max(self, id, angle):
793809 """Set the joint maximum angle
794810
795811 Args:
796- id: 1 - 6
812+ id:
813+ For mycobot: int 1-6.\n
814+ For mypalletizer: int 1-4.
797815 angle: 0 ~ 180
798816 """
799817 return self ._mesg (ProtocolCode .SET_JOINT_MAX , id , angle )
@@ -802,7 +820,9 @@ def set_joint_min(self, id, angle):
802820 """Set the joint minimum angle
803821
804822 Args:
805- id: 1 - 6
823+ id:
824+ For mycobot: int 1-6.\n
825+ For mypalletizer: int 1-4.
806826 angle: 0 ~ 180
807827 """
808828 return self ._mesg (ProtocolCode .SET_JOINT_MIN , id , angle )
0 commit comments