vrdTrackedHand¶
-
class
vrdTrackedHand
¶
(Inherits vrdObject
)
Access to tracked hands.
Summary¶
Functions¶
-
vrdTrackedHand.
getJointTransform
(finger, jointId)¶ Gets the joint transformation.
Parameters: - finger (vrHandTypes.FingerType) – The finger
- jointId (integer) – The joint id, 0 = Metacarpel, 4 Finger Tip
Returns: The transformation matrix
Return type: QMatrix4x4
-
vrdTrackedHand.
getPinchStrength
()¶ Returns: Pinch strength 0-1. 0 not pinching Return type: float
-
vrdTrackedHand.
getRole
()¶ Returns: Hand Role. Left or right Return type: vrHandTypes.HandRole
-
vrdTrackedHand.
getTransform
()¶ Returns: The hand position offset in world space Return type: QMatrix4x4
-
vrdTrackedHand.
isTracked
()¶ Returns: True, if the hand has been detected Return type: bool
-
vrdTrackedHand.
setGesture
(gesture)¶ Parameters: gesture (vrHandTypes.HandTrackingGesture) – Tell the system, that a gesture has been detected
-
vrdTrackedHand.
setJointTransform
(transform, finger, jointId)¶ Sets the joint transformation. The thumb has only 5 (0-4) joints.
Parameters: - transform (QMatrix4x4) – The transformation matrix
- finger (vrHandTypes.FingerType) – The finger
- jointId (integer) – The joint id, 0 = Metacarpel, 5 Finger Tip
-
vrdTrackedHand.
setPinchStrength
(value)¶ Parameters: value (float) – Pinch strength 0-1. 0 not pinching
-
vrdTrackedHand.
setTracked
(value)¶ Parameters: value (bool) – If True, mark as detected
-
vrdTrackedHand.
setTransform
(matrix)¶ Sets the hand position offset in world space.
Parameters: matrix (QMatrix4x4) – The position