This commit is contained in:
张立军 2021-01-08 12:15:44 +08:00
commit 6c6bad26e8
2 changed files with 4 additions and 4 deletions

View file

@ -203,7 +203,7 @@ class MyCobot():
# print(command)
self._write(command)
def jog_angle(joint_id, direction, speed):
def jog_angle(self, joint_id, direction, speed):
'''Joint control
joint_id: string
@ -218,7 +218,7 @@ class MyCobot():
command += '{}{}{}fa'.format(joint_id, direction, speed)
self._write(command)
def jog_coord(coord, direction, speed):
def jog_coord(self, coord, direction, speed):
'''Coord control
coord: string

View file

@ -204,7 +204,7 @@ class MyCobot():
# print(command)
self._write(command)
def jog_angle(joint_id, direction, speed):
def jog_angle(self, joint_id, direction, speed):
'''Joint control
joint_id: string
@ -219,7 +219,7 @@ class MyCobot():
command += '{}{}{}fa'.format(joint_id, direction, speed)
self._write(command)
def jog_coord(coord, direction, speed):
def jog_coord(self, coord, direction, speed):
'''Coord control
coord: string