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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emioapi-0.2.0.tar.gz.
File metadata
- Download URL: emioapi-0.2.0.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099d611483bbc0e6c004d2602e01bdcae3c8df1dc4322ee349ea5afcc696c2c6
|
|
| MD5 |
33acf24256efb81034d7f3bfb4efe900
|
|
| BLAKE2b-256 |
937199ffdcbb7663ffd524446a04e403ea8e22dc7dc94fddc54493a70012c6f9
|
Provenance
The following attestation bundles were made for emioapi-0.2.0.tar.gz:
Publisher:
python-publish.yml on SofaComplianceRobotics/Emio.API
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emioapi-0.2.0.tar.gz -
Subject digest:
099d611483bbc0e6c004d2602e01bdcae3c8df1dc4322ee349ea5afcc696c2c6 - Sigstore transparency entry: 764601854
- Sigstore integration time:
-
Permalink:
SofaComplianceRobotics/Emio.API@340c0a181f4ffe8e27266d0beae442ca253f682a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/SofaComplianceRobotics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@340c0a181f4ffe8e27266d0beae442ca253f682a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file emioapi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: emioapi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2985db7185a2a28b8bb0fc2d90960474cf06908df8b205cea977ee4e237d46a
|
|
| MD5 |
be58f068b0d39e646adaff633a079dec
|
|
| BLAKE2b-256 |
59b803f427b280fdcb882229b96e4aef5001466c1ae872519a8ee3bf61a705cb
|
Provenance
The following attestation bundles were made for emioapi-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on SofaComplianceRobotics/Emio.API
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emioapi-0.2.0-py3-none-any.whl -
Subject digest:
a2985db7185a2a28b8bb0fc2d90960474cf06908df8b205cea977ee4e237d46a - Sigstore transparency entry: 764601870
- Sigstore integration time:
-
Permalink:
SofaComplianceRobotics/Emio.API@340c0a181f4ffe8e27266d0beae442ca253f682a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/SofaComplianceRobotics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@340c0a181f4ffe8e27266d0beae442ca253f682a -
Trigger Event:
workflow_dispatch
-
Statement type: