mycobot_ros/mycobot_ai/scripts/tools.py
2021-10-26 10:45:58 +08:00

11 lines
199 B
Python

from pymycobot.mycobot import MyCobot
# name of device
port = "/dev/ttyUSB0"
mc = MyCobot(port)
# release mycobot
# mc.release_all_servos()
# calibrate the sixth servo
mc.set_servo_calibration(6)