diff --git a/scripts/pythonAPI/mycobot.py b/scripts/pythonAPI/mycobot.py index 377d0b7..ce7ad5a 100755 --- a/scripts/pythonAPI/mycobot.py +++ b/scripts/pythonAPI/mycobot.py @@ -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 diff --git a/scripts/pythonAPI/mycobot3.py b/scripts/pythonAPI/mycobot3.py index f9c1d63..c284e23 100755 --- a/scripts/pythonAPI/mycobot3.py +++ b/scripts/pythonAPI/mycobot3.py @@ -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