Skip to content
Closed
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
15 changes: 15 additions & 0 deletions tactile/code/hand.py
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

提交的功能需要按逻辑组织,不能故意分开提交

Original file line number Diff line number Diff line change
@@ -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."""