From 118fab05ab8fcb963e12d22ba8bcf6ab5f92fa75 Mon Sep 17 00:00:00 2001 From: A-0-A-0-A <3131489786@qq,com> Date: Fri, 1 May 2026 15:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tactile/code/hand.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tactile/code/hand.py diff --git a/tactile/code/hand.py b/tactile/code/hand.py new file mode 100644 index 00000000..db516f92 --- /dev/null +++ b/tactile/code/hand.py @@ -0,0 +1,15 @@ +from dataclasses import dataclass + +@dataclass +class Hand: + id: int + """ID of the hand. 0 = left, 1 = right""" + side: str + """Side, left or right.""" + tracking: bool + """Whether the space position and rotation of the hand is mapped to the virtual one.""" + haptics: bool + """Whether we can retrieve finger closures and send haptic feedback to the hand.""" + controller_rotation: float + """The initial rotation of the hand, in degrees. + 0 means the controller is in the same direction as the hand.""" \ No newline at end of file