Skip to content

Commit 07e3e8c

Browse files
Zachary ZhangZachary Zhang
authored andcommitted
update
1 parent 378a43b commit 07e3e8c

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

API/Python/pymycobot/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from __future__ import absolute_import
22

33
__all__ = ['mycobot', 'mycobot3', 'common']
4+
5+
#

API/Python/pymycobot/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ class Coord(enum.Enum):
1616
Rx = '04'
1717
Ry = '05'
1818
Rz = '06'
19+
20+
#

API/Python/pymycobot/mycobot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def send_coords(self, coords, speed, mode):
203203
# print(command)
204204
self._write(command)
205205

206-
def jog_angle(joint_id, direction, speed):
206+
def jog_angle(self, joint_id, direction, speed):
207207
'''Joint control
208208
209209
joint_id: string
@@ -218,7 +218,7 @@ def jog_angle(joint_id, direction, speed):
218218
command += '{}{}{}fa'.format(joint_id, direction, speed)
219219
self._write(command)
220220

221-
def jog_coord(coord, direction, speed):
221+
def jog_coord(self, coord, direction, speed):
222222
'''Coord control
223223
224224
coord: string

API/Python/pymycobot/mycobot3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def send_coords(self, coords, speed, mode):
204204
# print(command)
205205
self._write(command)
206206

207-
def jog_angle(joint_id, direction, speed):
207+
def jog_angle(self, joint_id, direction, speed):
208208
'''Joint control
209209
210210
joint_id: string
@@ -219,7 +219,7 @@ def jog_angle(joint_id, direction, speed):
219219
command += '{}{}{}fa'.format(joint_id, direction, speed)
220220
self._write(command)
221221

222-
def jog_coord(coord, direction, speed):
222+
def jog_coord(self, coord, direction, speed):
223223
'''Coord control
224224
225225
coord: string

0 commit comments

Comments
 (0)