Skip to content

Commit 473f947

Browse files
committed
fix: install error
1 parent eddb669 commit 473f947

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# 2021
22

3+
## 4.20
4+
5+
- release v2.3.5
6+
- fix v2.3.4 install error
7+
38
## 4.19
49

510
- release **v2.3.4**

pymycobot/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
__all__ = ["mycobot", "genre"]
44

5-
__name__ = "pymycobot"
6-
__version__ = "2.3.4"
5+
__version__ = "2.3.5"
76
__author__ = "Zachary zhang"
87
__email__ = "[email protected]"
98
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
long_description=long_description,
2323
long_description_content_type="text/markdown",
2424
url=pymycobot.__git_url__,
25-
packages=setuptools.find_packages("pymycobot"),
25+
packages=setuptools.find_packages(),
2626
classifiers=[
2727
"Programming Language :: Python :: 2.7",
2828
"Programming Language :: Python :: 3.5",

tests/test_api.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ def setup():
3030
port = str(plist[int(_in) - 1]).split(" - ")[0].strip()
3131
print(port)
3232
print("")
33+
34+
DEBUG = False
35+
f = input("Wether DEBUG mode[Y/n]:")
36+
if f in ['y', 'Y', 'yes', 'Yes']:
37+
DEBUG = True
3338
# mc = MyCobot(port, debug=True)
34-
mc = MyCobot(port)
39+
mc = MyCobot(port, debug=DEBUG)
3540

3641

3742
def test_basic_api(setup):
@@ -209,6 +214,28 @@ def test_gripper(setup):
209214
print(mc.get_gripper_value())
210215

211216

217+
def test_servo(setup):
218+
print("==========================================================")
219+
print("Start servo test...")
220+
time.sleep(2)
221+
print(mc.is_all_servo_enable())
222+
time.sleep(.1)
223+
print(mc.is_servo_enable(1))
224+
time.sleep(.1)
225+
mc.focus_servo(1)
226+
time.sleep(.1)
227+
mc.focus_servo(2)
228+
time.sleep(.1)
229+
mc.focus_servo(3)
230+
time.sleep(.1)
231+
mc.focus_servo(4)
232+
time.sleep(.1)
233+
mc.focus_servo(5)
234+
time.sleep(.1)
235+
mc.focus_servo(6)
236+
time.sleep(.1)
237+
238+
212239
def test_io(setup):
213240
print("==========================================================")
214241
print("Start IO test...")

0 commit comments

Comments
 (0)