mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
13 lines
253 B
Python
13 lines
253 B
Python
import time
|
|
import sys
|
|
from pymycobot.elephantrobot import ElephantRobot
|
|
|
|
mc = ElephantRobot('192.168.1.159', 5001, debug=True)
|
|
|
|
res = mc.start_client()
|
|
if not res :
|
|
print('quit')
|
|
sys.exit(1)
|
|
|
|
print(mc.get_angles())
|
|
# mc.write_angle(0, 0, 1000)
|