1. Install RoboMaster SDK

1.1. Install the SDK on the Windows platform

1.1.1. Prepare the development environment

小技巧

Before using the Python SDK, ensure that the corresponding Python environment has been installed on the programming platform. If the environment is not installed, install it by referring to Install the Python Programming Environment.

1.1.2. Install the required VC library

Download the (GitHub RoboMaster SDK repository) (Alternative download address: Gitee RoboMaster SDK repository) and run the executable file of the VC library:

../_images/vc_exe.png

警告

The following error occurs if you use the SDK without installing the VC library:

../_images/libmedia_err.png

1.1.3. Install the RoboMaster Python SDK

Install the RoboMaster SDK, click the start menu on your PC, and enter cmd in the search box. In the search results, right-click the CLI program and select ``Run as Administrator’’. Then, enter the following command::

pip install robomaster

小技巧

If the following error occurs, install the Python environment by referring to Install the Python Programming Environment.

../_images/pip_install_error.jpg

1.1.4. Upgrade the RoboMaster SDK

To upgrade the RoboMaster SDK, run the following command on the CLI::

pip install --upgrade robomaster

1.2. Install the SDK on the Linux platform

Ubuntu 16.04

Install the Python environment

The following example explains how to install the Python environment in Ubuntu 16.04.

Install the RoboMaster SDK

Install the RoboMaster SDK by running the following command::

pip install robomaster

Upgrade the RoboMaster SDK

To upgrade the RoboMaster SDK, run the following command on the CLI::

pip install --upgrade robomaster

小技巧

For the process of installing the Python environment on Raspberry Pi, refer to sdk install on Raspberry Pi.7z.

1.3. Install the SDK on the MacOS X platform

Install the RoboMaster SDK

Install RoboMaster SDK by running the following command::

pip install robomaster

Upgrade the RoboMaster SDK

To upgrade the RoboMaster SDK, run the following command on the CLI::

pip install --upgrade robomaster