File size: 6,692 Bytes
406662d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | .. _haply-teleoperation:
Setting up Haply Teleoperation
===============================
.. currentmodule:: isaaclab
`Haply Devices`_ provides haptic devices that enable intuitive robot teleoperation with
directional force feedback. The Haply Inverse3 paired with the VerseGrip creates an
end-effector control system with force feedback capabilities.
Isaac Lab supports Haply devices for teleoperation workflows that require precise spatial
control with haptic feedback. This enables operators to feel contact forces during manipulation
tasks, improving control quality and task performance.
This guide explains how to set up and use Haply devices with Isaac Lab for robot teleoperation.
.. _Haply Devices: https://haply.co/
Overview
--------
Using Haply with Isaac Lab involves the following components:
* **Isaac Lab** simulates the robot environment and streams contact forces back to the operator
* **Haply Inverse3** provides 3-DOF position tracking and force feedback in the operator's workspace
* **Haply VerseGrip** adds orientation sensing and button inputs for gripper control
* **Haply SDK** manages WebSocket communication between Isaac Lab and the Haply hardware
This guide will walk you through:
* :ref:`haply-system-requirements`
* :ref:`haply-installation`
* :ref:`haply-device-setup`
* :ref:`haply-running-demo`
* :ref:`haply-troubleshooting`
.. _haply-system-requirements:
System Requirements
-------------------
Hardware Requirements
~~~~~~~~~~~~~~~~~~~~~
* **Isaac Lab Workstation**
* Ubuntu 22.04 or Ubuntu 24.04
* Hardware requirements for 200Hz physics simulation:
* CPU: 8-Core Intel Core i7 or AMD Ryzen 7 (or higher)
* Memory: 32GB RAM (64GB recommended)
* GPU: RTX 3090 or higher
* Network: Same local network as Haply devices for WebSocket communication
* **Haply Devices**
* Haply Inverse3 - Haptic device for position tracking and force feedback
* Haply VerseGrip - Wireless controller for orientation and button inputs
* Both devices must be powered on and connected to the Haply SDK
Software Requirements
~~~~~~~~~~~~~~~~~~~~~
* Isaac Lab (follow the :ref:`installation guide <isaaclab-installation-root>`)
* Haply SDK (provided by Haply Robotics)
* Python 3.10+
* ``websockets`` Python package (automatically installed with Isaac Lab)
.. _haply-installation:
Installation
------------
1. Install Isaac Lab
~~~~~~~~~~~~~~~~~~~~
Follow the Isaac Lab :ref:`installation guide <isaaclab-installation-root>` to set up your environment.
The ``websockets`` dependency is automatically included in Isaac Lab's requirements.
2. Install Haply SDK
~~~~~~~~~~~~~~~~~~~~
Download the Haply SDK from the `Haply Devices`_ website.
Install the SDK software and configure the devices.
3. Verify Installation
~~~~~~~~~~~~~~~~~~~~~~
Test that your Haply devices are detected by the Haply Device Manager.
You should see both Inverse3 and VerseGrip as connected.
.. _haply-device-setup:
Device Setup
------------
1. Physical Setup
~~~~~~~~~~~~~~~~~
* Place the Haply Inverse3 on a stable surface
* Ensure the VerseGrip is charged and paired
* Position yourself comfortably to reach the Inverse3 workspace
* Keep the workspace clear of obstacles
2. Start Haply SDK
~~~~~~~~~~~~~~~~~~
Launch the Haply SDK according to Haply's documentation. The SDK typically:
* Runs a WebSocket server on ``localhost:10001``
* Streams device data at 200Hz
* Displays connection status for both devices
3. Test Communication
~~~~~~~~~~~~~~~~~~~~~
You can test the WebSocket connection using the following Python script:
.. code:: python
import asyncio
import websockets
import json
async def test_haply():
uri = "ws://localhost:10001"
async with websockets.connect(uri) as ws:
response = await ws.recv()
data = json.loads(response)
print("Inverse3:", data.get("inverse3", []))
print("VerseGrip:", data.get("wireless_verse_grip", []))
asyncio.run(test_haply())
You should see device data streaming from both Inverse3 and VerseGrip.
.. _haply-running-demo:
Running the Demo
----------------
The Haply teleoperation demo showcases robot manipulation with force feedback using
a Franka Panda arm.
Basic Usage
~~~~~~~~~~~
.. tab-set::
:sync-group: os
.. tab-item:: :icon:`fa-brands fa-linux` Linux
:sync: linux
.. code:: bash
# Ensure Haply SDK is running
./isaaclab.sh -p scripts/demos/haply_teleoperation.py --websocket_uri ws://localhost:10001 --pos_sensitivity 1.65
.. tab-item:: :icon:`fa-brands fa-windows` Windows
:sync: windows
.. code:: batch
REM Ensure Haply SDK is running
isaaclab.bat -p scripts\demos\haply_teleoperation.py --websocket_uri ws://localhost:10001 --pos_sensitivity 1.65
The demo will:
1. Connect to the Haply devices via WebSocket
2. Spawn a Franka Panda robot and a cube in simulation
3. Map Haply position to robot end-effector position
4. Stream contact forces back to the Inverse3 for haptic feedback
Controls
~~~~~~~~
* **Move Inverse3**: Controls the robot end-effector position
* **VerseGrip Button A**: Open gripper
* **VerseGrip Button B**: Close gripper
* **VerseGrip Button C**: Rotate end-effector by 60°
Advanced Options
~~~~~~~~~~~~~~~~
Customize the demo with command-line arguments:
.. code:: bash
# Use custom WebSocket URI
./isaaclab.sh -p scripts/demos/haply_teleoperation.py \
--websocket_uri ws://192.168.1.100:10001
# Adjust position sensitivity (default: 1.0)
./isaaclab.sh -p scripts/demos/haply_teleoperation.py \
--websocket_uri ws://localhost:10001 \
--pos_sensitivity 2.0
Demo Features
~~~~~~~~~~~~~
* **Workspace Mapping**: Haply workspace is mapped to robot reachable space with safety limits
* **Inverse Kinematics**: Inverse Kinematics (IK) computes joint positions for desired end-effector pose
* **Force Feedback**: Contact forces from end-effector sensors are sent to Inverse3 for haptic feedback
.. _haply-troubleshooting:
Troubleshooting
---------------
No Haptic Feedback
~~~~~~~~~~~~~~~~~~
**Problem**: No haptic feedback felt on Inverse3
Solutions:
* Verify Inverse3 is the active device in Haply SDK
* Check contact forces are non-zero in simulation (try grasping the cube)
* Ensure ``limit_force`` is not set too low (default: 2.0N)
Next Steps
----------
* **Customize the demo**: Modify the workspace mapping or add custom button behaviors
* **Implement your own controller**: Use :class:`~isaaclab.devices.HaplyDevice` in your own scripts
For more information on device APIs, see :class:`~isaaclab.devices.HaplyDevice` in the API documentation.
|