mycobot_ros/mycobot_pro/mycobot_630/scripts/test.py
2024-03-05 11:58:51 +08:00

13 lines
254 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 res != "":
print('quit')
sys.exit(1)
print(mc.get_angles())
# mc.write_angle(0, 0, 1000)