Skip to main content

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)

dashboard

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.

Metadata

Release files for opentouch-interface 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentouch-interface 0.2.0
File Size Uploaded
opentouch_interface-0.2.0.tar.gz 68.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opentouch-interface 0.2.0
File Interpreter ABI Platform
opentouch_interface-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 161.8 kB

Release files / opentouch_interface-0.2.0.tar.gz

Download URL opentouch_interface-0.2.0.tar.gz
Size 68.7 kB
Tags Source
SHA-256 checksum
How to use checksums
34f2d9d405a19ba3e81821467c088fe495c95878d4eacc0a36da1d7db925ae3e
BLAKE2b-256 checksum
How to use checksums
cddf15037193663cb0c20d43345d87da8862e78fb7e18307e2670550dabf394c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2025.

Transparency log

Release files / opentouch_interface-0.2.0-py3-none-any.whl

Download URL opentouch_interface-0.2.0-py3-none-any.whl
Size 93.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65767443deeaf7915031507a434a95bc9f425981dd9f3d6deb336573b623a731
BLAKE2b-256 checksum
How to use checksums
4bfea58d96fe2604987965e49adf53149b5281d63400101e6251d7501a5ff10e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page