mycobot_ros/mycobot_pro/mycobot_630/scripts/test.py
2024-11-21 13:40:44 +08:00

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)