Interface to connect to touch sensors
Project description
OpenTouch Interface
A Python package designed to provide a unified interface for various touch sensors. It simplifies the process of interacting with touch sensors by providing a consistent API regardless of the specific sensor being used.
We also provide an easy-to-use web interface that lets you connect to the sensors and show their data stream without the need to code.
Overview
- Unified API: Interact with multiple types of touch sensors using a single, consistent API.
- Web Dashboard: Manage sensors, record/replay data, and annotate data directly through a web interface.
- Easy Configuration: Use YAML config files to quickly set up and manage sensors.
Supported sensors:
Installation
OpenTouch Interface requires Python 3.10+ (tested on Ubuntu 24.04).
Method 1: Install via pip
pip install opentouch-interface
Method 2: From source
git clone https://github.com/lasr-lab/opentouch-interface
cd opentouch-interface
pip install .
Getting started
You can connect touch sensors to the OpenTouch Interface in two main ways:
1. Using the Dashboard (Web Interface)
Start the dashboard. If you run into issues, try reconnecting your sensors and restarting the dashboard.
opentouch-dashboard
Adding Sensors to the Dashboard
Add sensors either by manually entering details or by providing a YAML config file. For example, your YAML might look like:
group_name: Robotic hand # Group name.
path: test.touch # File path where data should be saved (optional).
sensors: # List of sensors belonging to that group
- ... # Sensor 1
- ... # Sensor 2
payload: # List of input elements used for data annotations (optional).
- ... # e.g., text input
- ... # e.g., slider
Sensors are bundled in groups. Within a group sensor names must be unique.
An example config file is provided as group.yaml. There, you also find example configs of all supported sensors.
The payload can be used for data annotations. You can find an overview of supported widgets at payload.md.
2. Using Code
For programmatic control, please refer to the demo.py example.
-
Run with the default config (
digit.yaml)python examples/simple/demo.py -
Or specify a config file:
python examples/simple/demo.py --config-name gelsight.yaml
Contribution
We welcome contributions! Pleaes check out our CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
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 opentouch_interface-0.2.0.tar.gz.
File metadata
- Download URL: opentouch_interface-0.2.0.tar.gz
- Upload date:
- Size: 68.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f2d9d405a19ba3e81821467c088fe495c95878d4eacc0a36da1d7db925ae3e
|
|
| MD5 |
11a8f4f17b20475b8e3f27016a87710b
|
|
| BLAKE2b-256 |
cddf15037193663cb0c20d43345d87da8862e78fb7e18307e2670550dabf394c
|
Provenance
The following attestation bundles were made for opentouch_interface-0.2.0.tar.gz:
Publisher:
publish-to-test-pypi.yml on lasr-lab/opentouch-interface
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentouch_interface-0.2.0.tar.gz -
Subject digest:
34f2d9d405a19ba3e81821467c088fe495c95878d4eacc0a36da1d7db925ae3e - Sigstore transparency entry: 409750486
- Sigstore integration time:
-
Permalink:
lasr-lab/opentouch-interface@8a5532a4e24e95c29502fece15c0aa8c3284059b -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/lasr-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@8a5532a4e24e95c29502fece15c0aa8c3284059b -
Trigger Event:
push
-
Statement type:
File details
Details for the file opentouch_interface-0.2.0-py3-none-any.whl.
File metadata
- Download URL: opentouch_interface-0.2.0-py3-none-any.whl
- Upload date:
- Size: 93.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65767443deeaf7915031507a434a95bc9f425981dd9f3d6deb336573b623a731
|
|
| MD5 |
dbd2d01d84ced4f9d0192a49d1f735e1
|
|
| BLAKE2b-256 |
4bfea58d96fe2604987965e49adf53149b5281d63400101e6251d7501a5ff10e
|
Provenance
The following attestation bundles were made for opentouch_interface-0.2.0-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on lasr-lab/opentouch-interface
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentouch_interface-0.2.0-py3-none-any.whl -
Subject digest:
65767443deeaf7915031507a434a95bc9f425981dd9f3d6deb336573b623a731 - Sigstore transparency entry: 409750510
- Sigstore integration time:
-
Permalink:
lasr-lab/opentouch-interface@8a5532a4e24e95c29502fece15c0aa8c3284059b -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/lasr-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@8a5532a4e24e95c29502fece15c0aa8c3284059b -
Trigger Event:
push
-
Statement type: