mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Implemented human pose resolve with wasit tracker
Added configuration
This commit is contained in:
1 parent
6f2d76c687
commit
1781edc844
10 files changed
+438
-53
No files matched your search
@@ -0,0 +1,36 @@
|
||||
package io.eiren.vr.processor;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.jme3.math.Quaternion;
|
||||
|
||||
public enum TrackerBodyPosition {
|
||||
|
||||
CHEST(Quaternion.IDENTITY, "body:chest"),
|
||||
WAIST(Quaternion.IDENTITY, "body:waist"),
|
||||
LEFT_LEG(Quaternion.IDENTITY, "body:left_leg"),
|
||||
RIGHT_LEG(Quaternion.IDENTITY, "body:right_leg"),
|
||||
LEFT_FOOT(Quaternion.IDENTITY, "body:left_foot"),
|
||||
RIGHT_FOOT(Quaternion.IDENTITY, "body:right_foot"),
|
||||
;
|
||||
|
||||
public final Quaternion baseRotation;
|
||||
public final String designation;
|
||||
|
||||
private static final Map<String, TrackerBodyPosition> byDesignation = new HashMap<>();
|
||||
|
||||
private TrackerBodyPosition(Quaternion base, String designation) {
|
||||
this.baseRotation = base;
|
||||
this.designation = designation;
|
||||
}
|
||||
|
||||
public static TrackerBodyPosition getByDesignation(String designation) {
|
||||
return byDesignation.get(designation.toLowerCase());
|
||||
}
|
||||
|
||||
static {
|
||||
for(TrackerBodyPosition tbp : values())
|
||||
byDesignation.put(tbp.designation, tbp);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user