This is a python API for serial communication with mycobot and controlling it.
Notes:
Make sure that
Atom
is flashed into the top Atom,Transponder
is flashed into the base Basic.
The firmwareAtom
andTransponder
download address: https://github.com/elephantrobotics/myCobot/tree/main/Software
You also can use myStudio to flash them, myStudio address: https://github.com/elephantrobotics/myStudio/releases
pip install pymycobot --upgrade
git clone https://github.com/elephantrobotics/pymycobot.git <your-path>
cd <your-path>/pymycobot
# Install
[sudo] python2 setup.py install
# or
[sudo] python3 setup.py install
Or the more modern form:
# Install
pip install .
# Uninstall
pip uninstall .
# for mycobot 280 machine
from pymycobot import MyCobot280
from pymycobot import MyCobot280Socket
# for mycobot 320 machine
from pymycobot import MyCobot320
from pymycobot import MyCobot320Socket
# for mecharm 270 machine
from pymycobot import MechArm270
from pymycobot import MechArmSocket
# for mypalletizer 260 machine
from pymycobot import MyPalletizer260
from pymycobot import MyPalletizerSocket
The demo
directory stores some test case files.
You can find out which interfaces pymycobot provides in pymycobot/README.md
.
Please go to here.
Note: Version v3.6.0 differentiates interfaces by model. Starting from this version, the MyCobot class will no longer be maintained. For new usage, please refer to the document:
MyCobot 280 API说明 | MyCobot 280 API Description
MyCobot 320 API说明 | MyCobot 320 API Description
MechArm 270 API说明 | MechArm 270 API Description
MyPalletizer 260 API说明 | MyPalletizer 260 API Description
myAGV API说明 | myAGV API Description