Skip to main content

A student-first wrapper around the DJI RoboMaster EP Python SDK.

Project description

robowrap

Student-first wrapper for the RoboMaster EP Python SDK.

The design goal is the same one shown in test.py: students should be able to write robot behavior as a sequence of clear intentions such as move, detect, grab, and close without learning the SDK transport layer first. Grouped subsystems like robot.cam, robot.arm, and robot.gun mirror the physical robot and keep the first classroom exercise short.

Project links

Python support

robowrap now supports modern Python and is packaged for Python 3.9+, including Python 3.14+.

This change was made because the original DJI RoboMaster SDK appears to be unmaintained and still targets older Python releases. To keep the RoboMaster EP usable on current Python versions, robowrap now depends on the maintained robomaster-sdk-modern package instead.

Installation

python -m pip install --upgrade pip
python -m pip install robomaster-sdk-modern robowrap

robowrap depends on robomaster-sdk-modern, so installing robowrap is usually enough. Installing both explicitly makes the SDK choice clear.

robot.cam.view() uses PySide6 for live display and does not use OpenCV. This avoids the PyAV/OpenCV duplicate FFmpeg conflict on macOS.

To build and publish a new release:

python -m pip install --upgrade build twine
python -m build
python -m twine upload dist/*

Snake_case policy

  • The public wrapper API is now snake_case only.
  • Legacy camelCase and mixed-case names still work for one transition release and emit DeprecationWarning.
  • Those aliases are scheduled for removal in 0.9.0, not before 2026-09-01.

Start here

Example

from robowrap import RoboMaster

robot = RoboMaster()
robot.set_leds(0, 128, 255)
robot.forward(0.5)
robot.cam.detect_person()
robot.cam.view()
frame = robot.cam.frame()
robot.arm.move_to(x=0, z=50)
robot.close()

Project details


Download files

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

Source Distribution

robowrap-0.8.4.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robowrap-0.8.4-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file robowrap-0.8.4.tar.gz.

File metadata

  • Download URL: robowrap-0.8.4.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robowrap-0.8.4.tar.gz
Algorithm Hash digest
SHA256 b021c393bc8a5f66054fda83e81900e5411cc2bb563d32db3b2566008bd294b2
MD5 5f437de01ff582c747961ddf03c21671
BLAKE2b-256 3bd79d0dda83f63c258d419f844af50e6d43fe34067345c6f501248b9bcd2822

See more details on using hashes here.

Provenance

The following attestation bundles were made for robowrap-0.8.4.tar.gz:

Publisher: pypi-publish.yml on MrDaviesKellett/robomasterWrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robowrap-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: robowrap-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robowrap-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce3736dd73fc0c0b5cd72233fd5e3eb144614dd33e1f402c5ab314fcc0b908c2
MD5 21248102016e7916c06fdd9dce9d7a8a
BLAKE2b-256 33c7ee69f19157d3df06b5387870dfa2a492125ebd9e7db178aaf2bde23f0407

See more details on using hashes here.

Provenance

The following attestation bundles were made for robowrap-0.8.4-py3-none-any.whl:

Publisher: pypi-publish.yml on MrDaviesKellett/robomasterWrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page