这是myCobot的Python API

​ 这是用于与mycobot进行串行通信并对其进行控制的python API。

安装

注意事项

​ 确保将Atom其闪烁到顶部的Atom中,Transponder将其闪烁到基本的Basic中。 ​ 固件AtomTransponder下载地址:https : //github.com/elephantrobotics/myCobot/tree/main/Software ​ 您还可以使用myStudio对其进行刷新,myStudio地址:https : //github.com/elephantrobotics/myStudio/releases

Pip

pip install pymycobot --upgrade --user

Source code

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

Usage:

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.

results matching ""

    No results matching ""