mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
11 lines
199 B
Python
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)
|