Skip to main content

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)

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.

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

opentouch_interface-0.2.0.tar.gz (68.7 kB view details)

Uploaded Source

Built Distribution

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

opentouch_interface-0.2.0-py3-none-any.whl (93.1 kB view details)

Uploaded Python 3

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

Hashes for opentouch_interface-0.2.0.tar.gz
Algorithm Hash digest
SHA256 34f2d9d405a19ba3e81821467c088fe495c95878d4eacc0a36da1d7db925ae3e
MD5 11a8f4f17b20475b8e3f27016a87710b
BLAKE2b-256 cddf15037193663cb0c20d43345d87da8862e78fb7e18307e2670550dabf394c

See more details on using hashes here.

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

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

File details

Details for the file opentouch_interface-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentouch_interface-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65767443deeaf7915031507a434a95bc9f425981dd9f3d6deb336573b623a731
MD5 dbd2d01d84ced4f9d0192a49d1f735e1
BLAKE2b-256 4bfea58d96fe2604987965e49adf53149b5281d63400101e6251d7501a5ff10e

See more details on using hashes here.

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

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