mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
update pro600/630 code
This commit is contained in:
parent
02e2544007
commit
41a9ebf1db
5 changed files with 9 additions and 5 deletions
|
|
@ -35,7 +35,8 @@ def listener():
|
||||||
mc = ElephantRobot(ip, int(port))
|
mc = ElephantRobot(ip, int(port))
|
||||||
# START CLIENT,启动客户端
|
# START CLIENT,启动客户端
|
||||||
res = mc.start_client()
|
res = mc.start_client()
|
||||||
if res != "":
|
if not res:
|
||||||
|
print('res:', res)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
mc.set_speed(90)
|
mc.set_speed(90)
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,8 @@ def listener():
|
||||||
mc = ElephantRobot(ip, int(port))
|
mc = ElephantRobot(ip, int(port))
|
||||||
# START CLIENT,启动客户端
|
# START CLIENT,启动客户端
|
||||||
res = mc.start_client()
|
res = mc.start_client()
|
||||||
if res != "":
|
if not res:
|
||||||
|
print('res:', res)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
mc.set_speed(90)
|
mc.set_speed(90)
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,8 @@ def listener():
|
||||||
mc = ElephantRobot(ip, int(port))
|
mc = ElephantRobot(ip, int(port))
|
||||||
# START CLIENT,启动客户端
|
# START CLIENT,启动客户端
|
||||||
res = mc.start_client()
|
res = mc.start_client()
|
||||||
if res != "":
|
if not res:
|
||||||
|
print('res:', res)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
mc.set_speed(90)
|
mc.set_speed(90)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ from pymycobot.elephantrobot import ElephantRobot
|
||||||
mc = ElephantRobot('192.168.1.159', 5001, debug=True)
|
mc = ElephantRobot('192.168.1.159', 5001, debug=True)
|
||||||
|
|
||||||
res = mc.start_client()
|
res = mc.start_client()
|
||||||
if res != "":
|
if not res :
|
||||||
print('quit')
|
print('quit')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,8 @@ def listener():
|
||||||
mc = ElephantRobot(ip, int(port))
|
mc = ElephantRobot(ip, int(port))
|
||||||
# START CLIENT,启动客户端
|
# START CLIENT,启动客户端
|
||||||
res = mc.start_client()
|
res = mc.start_client()
|
||||||
if res != "":
|
if not res:
|
||||||
|
print('res:', res)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
mc.set_speed(90)
|
mc.set_speed(90)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue