mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-05 08:12:29 -08:00
fix build and tests
This commit is contained in:
1 parent
99de177797
commit
2c1bce29c2
6 files changed
+11
-12
No files matched your search
@@ -230,7 +230,7 @@ class Skeleton(
|
||||
),
|
||||
targetProcessors = listOf(
|
||||
// FloorClipTargetProcessor(settings),
|
||||
SkatingCorrectionTargetProcessor(settings).also { resettableSkeletonProcessors.add(it) },
|
||||
// SkatingCorrectionTargetProcessor(settings).also { resettableSkeletonProcessors.add(it) },
|
||||
),
|
||||
ikComputedProcessors = listOf(
|
||||
VelocityComputedProcessor().also { resettableSkeletonProcessors.add(it) },
|
||||
|
||||
@@ -212,14 +212,14 @@ class VMCInputBehaviour(
|
||||
val unityName = BODY_PART_TO_UNITY_BONE[bodyPart]?.first() ?: continue
|
||||
val tracker = registry.boneTracker(bodyPart, unityName)
|
||||
tracker.context.dispatch(TrackerActions.SetStatus(TrackerStatus.OK))
|
||||
tracker.setRotation(rotation = transform.rotation, position = transform.position)
|
||||
tracker.context.dispatch(TrackerActions.SetRotation(rotation = transform.rotation, position = transform.position))
|
||||
}
|
||||
|
||||
for (pose in frame.poseTrackers.values) {
|
||||
val tracker = registry.poseTracker(pose.serial)
|
||||
val position = if (pose.deviceScale) pose.position else pose.position * scale
|
||||
tracker.context.dispatch(TrackerActions.SetStatus(TrackerStatus.OK))
|
||||
tracker.setRotation(rotation = pose.rotation, position = position)
|
||||
tracker.context.dispatch(TrackerActions.SetRotation(rotation = pose.rotation, position = position))
|
||||
}
|
||||
|
||||
registry.setStatus(TrackerStatus.OK)
|
||||
|
||||
@@ -163,10 +163,11 @@ private class VmcBoneTree(hierarchy: BodyPartMap<Array<BodyPart>>) {
|
||||
val VMC_OUTPUT_BONE_PARENTS: BodyPartMap<BodyPart?> = VmcBoneTree(VMC_HIERARCHY_MAP).parents
|
||||
|
||||
val VMC_INPUT_HIERARCHY_MAP: BodyPartMap<Array<BodyPart>> = BodyPartMap(
|
||||
VMC_HIERARCHY_MAP + mapOf(
|
||||
BodyPart.CHEST to arrayOf(BodyPart.UPPER_CHEST),
|
||||
BodyPart.UPPER_CHEST to arrayOf(BodyPart.NECK, BodyPart.LEFT_SHOULDER, BodyPart.RIGHT_SHOULDER),
|
||||
),
|
||||
VMC_HIERARCHY_MAP +
|
||||
mapOf(
|
||||
BodyPart.CHEST to arrayOf(BodyPart.UPPER_CHEST),
|
||||
BodyPart.UPPER_CHEST to arrayOf(BodyPart.NECK, BodyPart.LEFT_SHOULDER, BodyPart.RIGHT_SHOULDER),
|
||||
),
|
||||
)
|
||||
private val vmcInputTree = VmcBoneTree(VMC_INPUT_HIERARCHY_MAP)
|
||||
val VMC_INPUT_BONE_ORDER: List<BodyPart> = vmcInputTree.order
|
||||
|
||||
Reference in new issue
Block a user