Skip to main content

An API for controlling the motors of the EMIO robot.

Project description

Emio API

Emio API is a simple and easy-to-use API for controling the Emio robot from Compliance Robotics.

The emioapi package is published on PyPI.

Installation

To install the Emio API, you can use pip:

python -m pip install emioapi

or to get the latest version that is unstable

python -m pip install git+https://github.com/SofaComplianceRobotics/Emio.API.git@release-main

Usage

The Emio API provides the EmioAPI class, which can be used to control the Emio robot. The API provides methods for controlling the robot's motors and camera. You can look at the motors_example.py file for a simple example of how to use the API to control the motors of the Emio robot. To control the camera, look at the camera_example.py file or multiprocess_camera_example.py.

Simple example thaht sets the angles of the motors to 0 radians, waits for 1 second, and then prints the status of the robot:

from emioapi import emio

# Open a port to the Emio robot and configure it
emio.connectToEmioDevice()

emio.motors.angles = [0] * 4  # Set the angles of the motors to 0 radians
time.sleep(1)  # Wait for 1 second
emio.printStatus() # Print the status of the robot
emio.disconnect()  # Close the connection to the robot

For Developers

The documentation is generated using pydoc-markdown. To generate the documentation, you need to install pydoc-markdown:

pipx install pydoc-markdown

Then, you can generate the documentation in a emioapi.md file, by using the following command at the root of the project:

pydoc-markdown

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

emioapi-0.1.1.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

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

emioapi-0.1.1-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file emioapi-0.1.1.tar.gz.

File metadata

  • Download URL: emioapi-0.1.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emioapi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e314910d2991c397ab28f1bba28e3c9ee18acaa90be7bb004b8c4cd858c5ae5
MD5 6214ec1af11eb0d738711d0386451ead
BLAKE2b-256 6286fa806df7dcdbcbb0d77f4068e4019581de912e1ce0e74b638911171967c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for emioapi-0.1.1.tar.gz:

Publisher: python-publish.yml on SofaComplianceRobotics/Emio.API

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

File details

Details for the file emioapi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: emioapi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emioapi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aefae2e090e5ed9e3e12f988f013e9146a47edad2931dcb5b60e4af40ed30a74
MD5 246b08b12037d7d36b561d849afee1a1
BLAKE2b-256 ee5db897756958c39ffa1109d24fecbd5dc19c5e2657fac0c34d7fe387955431

See more details on using hashes here.

Provenance

The following attestation bundles were made for emioapi-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on SofaComplianceRobotics/Emio.API

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