Skip to main content

Python library and framework for RoboMaster EP.

Project description


English | 中文

Documentation Status

RoboMasterPy is a Python library and framework for RoboMaster EP.

The library(client) is straightforward to use:

>>> import robomasterpy as rm

# IP of RoboMaster is detected under router mode
>>> cmd = rm.Commander()

# check RoboMaster's API version
>>> cmd.version()

>>> cmd.get_robot_mode()

# ensure your Robomaster has enough room to move
>>> cmd.chassis_move(x=-1, z=30)

# activate video streaming,
# which can be handled by the framework.

# activate gimbal attitude push at 5Hz,
# which can be handled by the framework.
>>> cmd.gimbal_push_on(attitude_freq=5)

# Watch out!
>>> cmd.blaster_fire()

The framework deals with video streaming, push and event, you can build your controlling logic basing on it, for example(TODO: add links):

  • Drive your robomaster using keyboard;
  • Make your robomaster a goalkeeper.


RoboMasterPy requires Python 3.6 and above.

pip install robomasterpy

If you are using Python 3.6.x, you need to install dataclasses:

pip install dataclasses

User Guide

Documentation is generously hosted by Read the Docs.

Health and Safety Notice

  • Your Robomaster may hurt people or pet, break stuffs or itself;
  • Make sure your RoboMaster has enough room to move; make sure the ground is clear;
  • Start slowly, avoid using high speed for debugging;
  • Use cushion;
  • Stay safe and have fun!


RoboMasterPy is a fan work, and it has no concern with DJI.

DJI, RoboMaster are trademarks of SZ DJI Technology Co., Ltd.


RoboMasterPy was incubated during a RoboMaster EP developing contest. The author would like to thank DJI for hardware and technical support.


RoboMasterPy is released under MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for robomasterpy, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size robomasterpy-0.1.0-py2.py3-none-any.whl (15.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size robomasterpy-0.1.0.tar.gz (14.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page