Skip to main content

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

Project description

robowrap

Student-first wrapper for the DJI 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

The upstream RoboMaster SDK still targets older Python releases. Use Python 3.7 or Python 3.8 for real robot control.

Installation

python3.8 -m pip install --upgrade pip
python3.8 -m pip install opencv-python simple_pid robomaster --user
python3.8 -m pip install robowrap --user

To build and publish a new release:

python3 -m pip install --upgrade build twine
python3 -m build
python3 -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.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.0.tar.gz (15.0 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.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robowrap-0.8.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for robowrap-0.8.0.tar.gz
Algorithm Hash digest
SHA256 fe40dcca0c959ba40891362f54c492211edb28f30214139f379d266d697a1933
MD5 4325f1342ef5f4cdc6d03037cd30280d
BLAKE2b-256 36e55ed3f312ba042682bf8d969f633a4405750df4660b380238f51c0fe685f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robowrap-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for robowrap-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 948f6304d6beebf5c63398fa2df1a4c76c74ce4c9411906cc04a13eb18e9816f
MD5 a4330d4ab4b3985c105788044e917017
BLAKE2b-256 3c6bdee51448661549b8efc93ade983f38c918768f09e76898e47a04dfcecbfd

See more details on using hashes here.

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