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 --user
Notes:
Now only the version is
Atom2.4
or later is supported. If you use an earlier version, please installpymycobot 1.0.7
.
pip install pymycobot==1.0.7 --user
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
from pymycobot.mycobot import mycobot
from pymycobot.mycobot import Angle, Coord
from pymycobot import PI_PORT, PI_BAUD # For raspberry pi version of mycobot.
The demo
directory stores some test case files.
You can find out which interfaces pymycobot provides in pymycobot/README.md
.
Please go to here.