Skip to content

Commit

Permalink
update pro600/630 code
Browse files Browse the repository at this point in the history
  • Loading branch information
wangWking committed Nov 21, 2024
1 parent 02e2544 commit 41a9ebf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion mycobot_pro/mycobot_600/scripts/slider_600.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)

mc.set_speed(90)
Expand Down
3 changes: 2 additions & 1 deletion mycobot_pro/mycobot_600_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)

mc.set_speed(90)
Expand Down
3 changes: 2 additions & 1 deletion mycobot_pro/mycobot_630/scripts/mycobot_630_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)

mc.set_speed(90)
Expand Down
2 changes: 1 addition & 1 deletion mycobot_pro/mycobot_630/scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mc = ElephantRobot('192.168.1.159', 5001, debug=True)

res = mc.start_client()
if res != "":
if not res :
print('quit')
sys.exit(1)

Expand Down
3 changes: 2 additions & 1 deletion mycobot_pro/mycobot_630_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)

mc.set_speed(90)
Expand Down

0 comments on commit 41a9ebf

Please sign in to comment.