Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/source/_data/devices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ devices:
name: AGILINK OmniGlove
url: https://www.agilink-ai.com/omni-gloveuzj.html
group: peripheral
modes: High-fidelity finger tracking
modes: High-fidelity finger tracking, optional tactile input
since: main
company:
name: AGILINK
Expand All @@ -289,6 +289,8 @@ devices:
setup:
- label: AGILINK Omniglove docs
url: https://www.agilink-ai.com/omni-glovernr/25.html
- label: OmniGlove tactile docs
doc: /device/tactile/omniglove
- label: AGILINK Omniglove Plugin
url: https://github.com/NVIDIA/IsaacCapture/tree/main/src/plugins/omniglove
requirements:
Expand Down
7 changes: 7 additions & 0 deletions docs/source/device/hand_tracking/omniglove.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ incompatible SDK sample contracts stop the plugin with an error.
Follow :doc:`/conformance/setup`, :doc:`/conformance/hand` and
:doc:`/conformance/submit` for recording, review and submission.

Tactile input
-------------

The same plugin can optionally publish scalar tactile forces and per-device
layout metadata. See :doc:`/device/tactile/omniglove` for configuration,
calibration requirements and the standard ``TactileTracker`` interface.

Troubleshooting
---------------

Expand Down
1 change: 1 addition & 0 deletions docs/source/device/tactile/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,4 @@ automatically publish the common force-and-layout contract described above.
:titlesonly:

oglo
omniglove
130 changes: 130 additions & 0 deletions docs/source/device/tactile/omniglove.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
.. SPDX-FileCopyrightText: Copyright (c) 2026 Agibot Co., Ltd.
.. SPDX-License-Identifier: Apache-2.0

AgiLink OmniGlove tactile input
===============================

OmniGlove provides scalar contact values from 746 taxels on each USB glove.
The :doc:`hand-tracking plugin </device/hand_tracking/omniglove>` can publish
these as standard tactile forces alongside its existing OpenXR hands, using
the same SDK session and device association. Tactile output is opt-in.

Requirements and installation
-----------------------------

Use the Linux OmniGlove SDK release and host USB rules described in the
hand-tracking guide. Build with ``BUILD_PLUGIN_OMNIGLOVE=ON``; CMake uses
the same pinned SDK release as the hand plugin.
The SDK release must provide POSE_DATA tactile regions, stream timestamps,
device tokens and the BONE read API; header/runtime ABI must agree. The
plugin and its layout exporter install under ``install/plugins/omniglove``.
Python export additionally requires Isaac Capture and NumPy.

Live publication requires a compatible OpenXR runtime/headset and the original
plugin's optical or calibrated controller wrist setup. Offline layout export,
config validation and recording replay need no runtime.

Prepare a device layout
-----------------------

Prepare these inputs separately for each glove after calibrating it:

- **Layout JSON.** Obtain the hand-specific tactile geometry and calibration
assets for your glove model from AgiLink, or use your own measured layout.
The SDK's `tactile layout tables`_ give the channel order for each hand.
Use that order in the external version-1 JSON, with 746 taxel bind poses,
21 ordered OpenXR joint IDs and segment bind poses, ``joint_corrections``,
and four linear blend skinning indices and weights per taxel. Use the
OpenXR wrist frame. The fixture in
:code-file:`tests/python/plugins/omniglove/test_export.py` shows the JSON
fields and array shapes. Use real geometry and binding data for live operation.
- **Device identity and BONE.** Discover the calibrated glove using the
`SDK C API`_. Pass its complete ``omniglove_device_opaque_token()`` value
to ``--device-token``. Use ``omniglove_device_bone_read()`` on the same
device and save the complete 547-byte BONE v4 payload to a binary file.
Use your calibration revision as ``--calibration-id``.
- **Force scale.** Confirm the force per count for the current glove and SDK
with the device supplier or by applying a known reference force. If one
count represents one gram-force, use ``0.00980665`` N/LSB.

.. _tactile layout tables: https://github.com/AgibotTech/agilink_omniglove_sdk/blob/a2f899cd45c51ae01c9bbca9b893e4afba41c0d7/docs/en/TACTILE_LAYOUT_V1.md
.. _SDK C API: https://github.com/AgibotTech/agilink_omniglove_sdk/blob/a2f899cd45c51ae01c9bbca9b893e4afba41c0d7/docs/en/PUBLIC_C_API.md

.. code-block:: bash

python src/plugins/omniglove/tools/prepare_tactile.py /path/to/layout.json \
--output /path/to/left-config \
--device-token 'EXACT_SDK_DISCOVERY_TOKEN' --calibration-id 'my-revision' \
--newtons-per-lsb 0.00980665 --bone-file /path/to/raw-bone-v4.bin \
--geometry-verified --axes-verified

The exporter rebases the segment axes onto this HandTracker's conversion
without changing taxel poses.
WRIST bind must be identity; segment indices address the ordered joint list.
The exporter writes ``joint_convention: omniglove-openxr-v2``, including the
handed thumb roll in PR #1445. Configurations exported with the earlier v1
convention must be regenerated from the original external layout.

Verification flags are operator assertions. Preliminary estimated layouts
require ``--allow-estimated-layout``. Without a matching complete raw BONE v4
snapshot, ``--allow-unverified-calibration`` must be explicit. With a snapshot,
startup and connection-generation changes compare its bytes against the
device. This checks bone geometry, not force calibration or the full IK/sensor
calibration. Stop and re-export after changing calibration.

Run and consume
---------------

After starting the runtime and configuring the wrist source:

.. code-block:: bash

./install/plugins/omniglove/omniglove_plugin \
--check-tactile-left=/path/to/left-config/config.json
export OMNIGLOVE_TACTILE_LEFT_CONFIG=/path/to/left-config/config.json
./install/plugins/omniglove/omniglove_plugin

Set ``OMNIGLOVE_TACTILE_RIGHT_CONFIG`` for an independently prepared right glove.
The offline check validates files/schema; live startup checks device identity.
An unconfigured side publishes no tactile collection.

``TactileTracker("/glove/omniglove_left")`` and
``TactileTracker("/glove/omniglove_right")`` read the respective ``tactile``
tensors. Companion collections append ``/metadata`` and publish the standard
``metadata`` tensor. Forces have shape ``(746, 3)`` in N; by default
``Fz = -raw * newtons_per_lsb``, with unmeasured shear components set to zero.
Both hands use the same calibrated local sign convention.

The existing tactile printer records through the official consumer and MCAP
writer, and replays without a runtime:

.. code-block:: bash

python -m isaaccapture_examples.tactile.printer \
--collection-id /glove/omniglove_left --duration 30 --output /path/to/take.mcap
python -m isaaccapture_examples.tactile.printer --replay /path/to/take.mcap

Timing and troubleshooting
--------------------------

Metadata is published before forces, periodically during streaming, and again
on recovery. Invalid or 200 ms stale samples withdraw the collections. The
producer rejects old/future samples and logs malformed frames, queue drops
and sequence gaps. Recovery rechecks identity and any BONE snapshot before
publication. If the BONE read fails, the affected tactile collection stays
inactive while the plugin retries. Consumers must be tested for correct
invalidation and rediscovery with the target runtime.

The common timestamp comes from SDK monotonic sample time. A valid SDK UTC
clock is preserved in raw nanoseconds; otherwise raw time falls back to common
time. These are not claims of physical multi-stream synchronization. Each
glove's tactile worker runs its own BONE read, which can delay recovery for
that glove.

A hand/config mismatch, wrong device token, invalid metadata, missing explicit
scale or changed BONE payload fails startup/publication. Rebuild the local
config from the correct device rather than relabeling its hand or token.
Estimated force axes and nominal geometry remain experimental. Verify taxel
order, geometry, outward normals and tangents on the current glove. Use a
known reference load to assess force accuracy. See
:code-file:`src/plugins/omniglove/README.md` for plugin configuration.
5 changes: 5 additions & 0 deletions src/plugins/omniglove/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ install(PROGRAMS install_udev_rules.sh
DESTINATION plugins/omniglove
COMPONENT omniglove
)

install(FILES tools/prepare_tactile.py
DESTINATION plugins/omniglove/tools
COMPONENT omniglove
)
59 changes: 59 additions & 0 deletions src/plugins/omniglove/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,62 @@ Isaac Capture.

Installation, wrist calibration, running, licensing and troubleshooting:
[AgiLink OmniGlove documentation](https://nvidia.github.io/IsaacCapture/main/device/hand_tracking/omniglove.html).


## Optional tactile input

The plugin also publishes standard `TactileDataArray` forces and
`TactileMetadata` layouts for 746 taxels per configured hand. It copies the
SDK's POSE_DATA tactile regions using the same session as POST_DATA hand
tracking. Each configured glove has its own tactile worker, so a BONE read
can delay that glove's tactile recovery while hand tracking and the other
glove's tactile publication continue. Failed BONE reads are retried while
the affected tactile source is inactive.

Prepare the SDK's personal hand calibration separately, then export an external
version-1 layout (ordered 21 joints, segment/taxel bind poses, joint corrections
and LBS weights) with `tools/prepare_tactile.py`. Vendor assets and personal
calibration files are not bundled. Use the factory-calibrated force values;
this plugin does not write calibration or firmware.

```bash
python src/plugins/omniglove/tools/prepare_tactile.py /path/to/layout.json \
--output /path/to/right-config \
--device-token 'EXACT_SDK_DISCOVERY_TOKEN' --calibration-id 'my-revision' \
--newtons-per-lsb 0.00980665 --bone-file /path/to/raw-bone-v4.bin \
--allow-estimated-layout
./install/plugins/omniglove/omniglove_plugin \
--check-tactile-right=/path/to/right-config/config.json
export OMNIGLOVE_TACTILE_RIGHT_CONFIG=/path/to/right-config/config.json
./install/plugins/omniglove/omniglove_plugin
```

The example scale is valid when one SDK count is confirmed to be one gram-force.
The default local force is `(0, 0, -raw * newtons_per_lsb)` N; shear is unmeasured.
Use `--geometry-verified --axes-verified` for a measured layout instead of the
estimated-layout flag. Without a complete raw BONE snapshot, explicit
`--allow-unverified-calibration` is required. BONE comparison checks bone
configuration, not all personal calibration parameters or factory force accuracy.
Re-export after calibration changes.

The exporter requires Isaac Capture's Python schema and NumPy. It writes the
`omniglove-openxr-v2` joint convention, including PR #1445's thumb roll; old v1
configurations must be regenerated. Export never overwrites an output directory.
The offline check above needs no USB device or OpenXR runtime. At live startup,
the plugin verifies hand, opaque device token and any BONE snapshot, repeating
identity/BONE checks on connection-generation changes.

Set `OMNIGLOVE_TACTILE_LEFT_CONFIG` independently for the left glove. Unset
variables disable tactile input. Read `/glove/omniglove_right` or
`/glove/omniglove_left` with `TactileTracker`; the companion `/metadata`
collection carries the `metadata` tensor. Metadata precedes forces and refreshes
periodically. Invalid or 200 ms stale samples withdraw both collections; a valid
recovery recreates them. The device monitor includes configured tactile paths.

Live use retains the hand plugin's runtime/headset and wrist-source requirements.
The SDK common timestamp is monotonic; a valid device UTC timestamp is preserved
as raw nanoseconds. Queue drops and source sequence gaps are logged. Runtime
consumer rediscovery after collection withdrawal must be qualified separately.
The hand CTS evidence does not qualify tactile measurements.

Full usage: [OmniGlove tactile documentation](https://nvidia.github.io/IsaacCapture/main/device/tactile/omniglove.html).
18 changes: 18 additions & 0 deletions src/plugins/omniglove/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ try
}
}

bool checked = false;
for (int index = 1; index < argc; ++index)
{
const std::string argument = argv[index];
for (bool is_left : { true, false })
{
const std::string prefix = is_left ? "--check-tactile-left=" : "--check-tactile-right=";
if (argument.rfind(prefix, 0) == 0)
{
plugins::omniglove::TactileConfig::load(argument.substr(prefix.size()), is_left);
checked = true;
}
}
}
if (checked)
{
return 0;
}
std::signal(SIGINT, signal_handler);
std::signal(SIGTERM, signal_handler);

Expand Down
6 changes: 5 additions & 1 deletion src/plugins/omniglove/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
add_library(omniglove_plugin_core STATIC
omniglove_hand_conversion.cpp
omniglove_plugin.cpp
omniglove_tactile.cpp
inc/omniglove_plugin/omniglove_tactile.hpp
inc/omniglove_plugin/omniglove_hand_conversion.hpp
inc/omniglove_plugin/omniglove_plugin.hpp
)
Expand All @@ -15,8 +17,10 @@ target_include_directories(omniglove_plugin_core

target_link_libraries(omniglove_plugin_core
PRIVATE
OmnigloveSDK::api
yaml-cpp::yaml-cpp
PUBLIC
OmnigloveSDK::api
pusherio::pusherio
Teleop::plugin_utils
deviceio::deviceio_session
deviceio::deviceio_trackers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once

#include "omniglove_hand_conversion.hpp"
#include "omniglove_tactile.hpp"

#include <deviceio_session/deviceio_session.hpp>
#include <log_bridge/logger.hpp>
Expand All @@ -22,6 +23,7 @@
#include <mutex>
#include <optional>
#include <string>
#include <thread>

struct omniglove_session;
struct omniglove_stream_sample;
Expand Down Expand Up @@ -64,11 +66,15 @@ class OmniglovePlugin
{
OmniglovePlugin* plugin;
bool is_left;
TactileSource* tactile = nullptr;
};

struct HandState
{
std::optional<StreamContext> stream;
StreamContext tactile_context{};
omniglove_device_t* device = nullptr;
std::unique_ptr<TactileSource> tactile;
std::unique_ptr<plugin_utils::HandInjector> injector;
int64_t last_pushed_ns = 0;
core::PluginDeviceState state = core::PluginDeviceState_DISCONNECTED;
Expand All @@ -84,6 +90,7 @@ class OmniglovePlugin
static void stream_callback(const omniglove_stream_sample* sample, void* user_data) noexcept;

void start_device_streams();
void run_tactile(HandState& hand, const core::OpenXRSessionHandles& handles, std::stop_token stop);
void on_sample(const omniglove_stream_sample& sample, bool is_left);
void pump_hand(HandState& hand, bool is_left, const CallbackState& input);

Expand All @@ -97,11 +104,14 @@ class OmniglovePlugin
std::optional<plugin_utils::PluginDeviceStatusPublisher> m_status_publisher;

std::mutex m_frame_mutex;
std::mutex m_collection_creation_mutex;
std::array<HandState, 2> m_hands;
std::array<CallbackState, 2> m_inputs;
std::exception_ptr m_callback_error;
// Destroy the SDK first: its callbacks borrow the contexts, frames and mutex above.
SdkSession m_sdk_session;
// Join both tactile workers before destroying the SDK and its borrowed devices.
std::array<std::jthread, 2> m_tactile_workers;
};

} // namespace plugins::omniglove
Loading