mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-04 07:42:31 -08:00
Nice TrackerRestDetectionBehaviour :3
This commit is contained in:
1 parent
179277d66e
commit
0b1cb6ae7e
5 files changed
+192
-153
No files matched your search
@@ -1,7 +1,8 @@
|
||||
package dev.slimevr.tapdetection
|
||||
|
||||
import dev.slimevr.config.TapDetectionConfig
|
||||
import dev.slimevr.tracker.Tracker
|
||||
import dev.slimevr.tracker.Motion
|
||||
import dev.slimevr.tracker.TrackerState
|
||||
import dev.slimevr.util.timeSource
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
@@ -24,7 +25,6 @@ import kotlin.time.TimeMark
|
||||
class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
data class TrackerTapDetectionState(
|
||||
var trackerId: Int,
|
||||
var numberTrackersOverThreshold: Int = 1,
|
||||
var resetType: ResetType? = null,
|
||||
var tapsNeeded: Int = 2,
|
||||
var actionDelay: Float = 0f,
|
||||
@@ -33,6 +33,18 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
var waitForLowAccel: Boolean = false,
|
||||
)
|
||||
|
||||
// This vvv + the assigned tap body parts are used.
|
||||
private val falsePositiveBodyParts = setOf(
|
||||
BodyPart.UPPER_CHEST,
|
||||
BodyPart.CHEST,
|
||||
BodyPart.WAIST,
|
||||
BodyPart.HIP,
|
||||
BodyPart.LEFT_UPPER_LEG,
|
||||
BodyPart.RIGHT_UPPER_LEG,
|
||||
BodyPart.LEFT_LOWER_LEG,
|
||||
BodyPart.RIGHT_LOWER_LEG,
|
||||
)
|
||||
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
override fun observe(receiver: TapDetectionManager) {
|
||||
val tapConfigFlow = receiver.settings.context.state
|
||||
@@ -54,7 +66,12 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
states.map { it.bodyPart to it.status }
|
||||
}
|
||||
.distinctUntilChanged()
|
||||
.map { trackers.filter { tracker -> tracker.context.state.value.status == TrackerStatus.OK } }
|
||||
.map {
|
||||
trackers.filter { tracker ->
|
||||
val status = tracker.context.state.value.status
|
||||
status == TrackerStatus.OK
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Outer flow is refreshed whenever TapDetection config, setupMode, or a tracker's bodyPart or status changes
|
||||
@@ -65,9 +82,6 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
::Triple,
|
||||
)
|
||||
.flatMapLatest { (tapDetectionConfig, setupMode, trackers) ->
|
||||
// To keep track of which trackers are over threshold
|
||||
val trackersOverThreshold = mutableSetOf<Int>()
|
||||
|
||||
// Computed once per outer-flow refresh for all trackers
|
||||
val trackersBodyParts = trackers.map { it.context.state.value.bodyPart }.toSet()
|
||||
val yawResetBodyPart = listOf(tapDetectionConfig.yawResetBodyPart, BodyPart.UPPER_CHEST, BodyPart.CHEST, BodyPart.HIP, BodyPart.WAIST)
|
||||
@@ -77,11 +91,16 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
val mountingResetBodyPart = listOf(tapDetectionConfig.mountingResetBodyPart, BodyPart.RIGHT_UPPER_LEG, BodyPart.RIGHT_LOWER_LEG)
|
||||
.firstOrNull { it in trackersBodyParts } ?: BodyPart.RIGHT_UPPER_LEG
|
||||
|
||||
// To keep track of which trackers are moving
|
||||
val bodyPartsToCheck = falsePositiveBodyParts + yawResetBodyPart + fullResetBodyPart + mountingResetBodyPart
|
||||
val movingTrackers = mutableSetOf<Int>()
|
||||
val numberTrackersOverThreshold = tapDetectionConfig.numberTrackersOverThreshold
|
||||
|
||||
trackers.map { tracker ->
|
||||
val trackerTapDetectionState = createTrackerTapDetectionState(
|
||||
tapDetectionConfig,
|
||||
setupMode,
|
||||
tracker,
|
||||
tracker.context.state.value,
|
||||
yawResetBodyPart,
|
||||
fullResetBodyPart,
|
||||
mountingResetBodyPart,
|
||||
@@ -89,35 +108,43 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
|
||||
// Inner flow emits whenever a tracker's rawAcceleration is updated
|
||||
tracker.context.state
|
||||
.filter { trackerTapDetectionState.resetType != null || setupMode }
|
||||
.map { it.rawAcceleration }
|
||||
.filter { it.bodyPart in bodyPartsToCheck || setupMode }
|
||||
.map { it.rawAcceleration to it.motion }
|
||||
.distinctUntilChanged()
|
||||
.onEach {
|
||||
val tapTriggered = runTapDetection(
|
||||
timeSource.markNow(),
|
||||
trackersOverThreshold,
|
||||
trackerTapDetectionState,
|
||||
it,
|
||||
)
|
||||
.onEach { (rawAcceleration, motionState) ->
|
||||
if (motionState == Motion.MOVING) {
|
||||
movingTrackers.add(trackerTapDetectionState.trackerId)
|
||||
} else {
|
||||
movingTrackers.remove(trackerTapDetectionState.trackerId)
|
||||
}
|
||||
|
||||
if (tapTriggered) {
|
||||
receiver.context.scope.launch {
|
||||
// If it's in setup mode, tap to assign
|
||||
if (setupMode) {
|
||||
receiver.server.sendSolarxrRpc(
|
||||
TapDetectionSetupNotification(
|
||||
trackerTapDetectionState.trackerId.toUShort(),
|
||||
),
|
||||
)
|
||||
}
|
||||
if (trackerTapDetectionState.resetType != null || setupMode) {
|
||||
val tapTriggered = runTapDetection(
|
||||
timeSource.markNow(),
|
||||
movingTrackers.count() > numberTrackersOverThreshold,
|
||||
trackerTapDetectionState,
|
||||
rawAcceleration,
|
||||
)
|
||||
|
||||
// If it has a reset to execute
|
||||
trackerTapDetectionState.resetType?.let { reset ->
|
||||
receiver.resetsManager.scheduleReset(
|
||||
"TapDetection",
|
||||
reset,
|
||||
trackerTapDetectionState.actionDelay,
|
||||
)
|
||||
if (tapTriggered) {
|
||||
receiver.context.scope.launch {
|
||||
// If it's in setup mode, tap to assign
|
||||
if (setupMode) {
|
||||
receiver.server.sendSolarxrRpc(
|
||||
TapDetectionSetupNotification(
|
||||
trackerTapDetectionState.trackerId.toUShort(),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
// If it has a reset to execute
|
||||
trackerTapDetectionState.resetType?.let { reset ->
|
||||
receiver.resetsManager.scheduleReset(
|
||||
"TapDetection",
|
||||
reset,
|
||||
trackerTapDetectionState.actionDelay,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -131,18 +158,17 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
private fun createTrackerTapDetectionState(
|
||||
tapDetectionConfig: TapDetectionConfig,
|
||||
setupMode: Boolean,
|
||||
tracker: Tracker,
|
||||
trackerState: TrackerState,
|
||||
yawResetBodyPart: BodyPart,
|
||||
fullResetBodyPart: BodyPart,
|
||||
mountingResetBodyPart: BodyPart,
|
||||
): TrackerTapDetectionState {
|
||||
// This holds a tracker's config and state for tap detection
|
||||
val trackerTapDetectionState = TrackerTapDetectionState(tracker.context.state.value.id)
|
||||
trackerTapDetectionState.numberTrackersOverThreshold = tapDetectionConfig.numberTrackersOverThreshold
|
||||
val trackerTapDetectionState = TrackerTapDetectionState(trackerState.id)
|
||||
|
||||
// setupMode uses defaults
|
||||
if (!setupMode) {
|
||||
when (tracker.context.state.value.bodyPart) {
|
||||
when (trackerState.bodyPart) {
|
||||
yawResetBodyPart if tapDetectionConfig.yawResetEnabled -> {
|
||||
trackerTapDetectionState.resetType = ResetType.YAW
|
||||
trackerTapDetectionState.tapsNeeded = tapDetectionConfig.yawResetTaps
|
||||
@@ -171,7 +197,7 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
// Logic loop for tap detection
|
||||
fun runTapDetection(
|
||||
now: TimeMark,
|
||||
trackersOverThreshold: MutableSet<Int>,
|
||||
bodyMoving: Boolean,
|
||||
trackerTapDetectionState: TrackerTapDetectionState,
|
||||
trackerAcceleration: Vector3,
|
||||
): Boolean {
|
||||
@@ -187,25 +213,14 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
val min = trackerTapDetectionState.accelList.minOf { it.first }
|
||||
val accelDelta = max - min
|
||||
|
||||
// Is this tracker over threshold for false positive prevention?
|
||||
val isOverThreshold = trackerAcceleration.lenSq() > ALLOWED_BODY_ACCEL_SQUARED
|
||||
if (isOverThreshold) {
|
||||
trackersOverThreshold.add(trackerTapDetectionState.trackerId)
|
||||
} else {
|
||||
trackersOverThreshold.remove(trackerTapDetectionState.trackerId)
|
||||
}
|
||||
|
||||
// Check for a single tap
|
||||
if (accelDelta > NEEDED_ACCEL_DELTA && !trackerTapDetectionState.waitForLowAccel) {
|
||||
val othersOverThreshold = trackersOverThreshold.size - if (isOverThreshold) 1 else 0
|
||||
if (othersOverThreshold < trackerTapDetectionState.numberTrackersOverThreshold) {
|
||||
trackerTapDetectionState.tapTimestamps.add(now)
|
||||
trackerTapDetectionState.waitForLowAccel = true
|
||||
}
|
||||
if (!bodyMoving && accelDelta > NEEDED_ACCEL_DELTA && !trackerTapDetectionState.waitForLowAccel) {
|
||||
trackerTapDetectionState.tapTimestamps.add(now)
|
||||
trackerTapDetectionState.waitForLowAccel = true
|
||||
}
|
||||
|
||||
// Achieved low accel?
|
||||
if (max < ALLOWED_BODY_ACCEL) trackerTapDetectionState.waitForLowAccel = false
|
||||
if (max < LOW_ACCEL_THRESHOLD) trackerTapDetectionState.waitForLowAccel = false
|
||||
|
||||
if (trackerTapDetectionState.tapTimestamps.isNotEmpty()) {
|
||||
// Remove old stored taps (if they are too old)
|
||||
@@ -234,8 +249,7 @@ class TapDetectionBasicBehaviour : TapDetectionBehaviour {
|
||||
|
||||
companion object {
|
||||
const val NEEDED_ACCEL_DELTA = 6.0f
|
||||
const val ALLOWED_BODY_ACCEL = 2.5f
|
||||
const val ALLOWED_BODY_ACCEL_SQUARED = ALLOWED_BODY_ACCEL * ALLOWED_BODY_ACCEL
|
||||
const val LOW_ACCEL_THRESHOLD = 2.5f
|
||||
val ACCEL_WINDOW = 0.06.seconds
|
||||
val TAP_WINDOW_PER_TAP = 0.3.seconds
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ import kotlin.concurrent.atomics.AtomicInt
|
||||
import kotlin.concurrent.atomics.ExperimentalAtomicApi
|
||||
import kotlin.concurrent.atomics.incrementAndFetch
|
||||
import kotlin.time.Duration
|
||||
import kotlin.time.Duration.Companion.milliseconds
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
class TrackerBasicBehaviour : TrackerBehaviour {
|
||||
@@ -313,7 +314,16 @@ class TrackerTPSBehaviour : TrackerBehaviour {
|
||||
delay(1000)
|
||||
val elapsed = mark.elapsedNow()
|
||||
val tps = count.exchange(0) * 1000L / elapsed.inWholeMilliseconds
|
||||
receiver.context.dispatch(TrackerActions.Update { copy(tps = tps.toUShort()) })
|
||||
|
||||
// Tracker is at rest if it hasn't been updated in the last second
|
||||
val updateRestStateAction = if (tps == 0L && receiver.context.state.value.motion != Motion.RESTING) TrackerActions.SetRestState(Motion.RESTING) else null
|
||||
receiver.context.dispatchAll(
|
||||
listOfNotNull(
|
||||
TrackerActions.Update { copy(tps = tps.toUShort()) },
|
||||
updateRestStateAction,
|
||||
),
|
||||
)
|
||||
|
||||
mark = timeSource.markNow()
|
||||
} catch (e: Exception) {
|
||||
AppLogger.coroutines.error(e, "Error in TrackerTPSBehaviour")
|
||||
@@ -323,6 +333,91 @@ class TrackerTPSBehaviour : TrackerBehaviour {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects whether a tracker is at rest or moving.
|
||||
*
|
||||
* A tracker is at rest when it stays within a certain rotational range and acceleration for a given
|
||||
* amount of time. If it rotates past that range or accelerates too fast, it is no longer at rest.
|
||||
*/
|
||||
class TrackerMotionDetectionBehaviour : TrackerBehaviour {
|
||||
|
||||
override fun observe(receiver: Tracker) {
|
||||
var lastStateChangeTime = timeSource.markNow()
|
||||
var lastRotationTime = timeSource.markNow()
|
||||
var lastRotation: RawRotation = Quaternion.IDENTITY
|
||||
|
||||
// For update loop
|
||||
receiver.context.state
|
||||
.map { it.rawRotation to it.rawAcceleration }
|
||||
.distinctUntilChanged()
|
||||
.onEach { (rotation, acceleration) ->
|
||||
val now = timeSource.markNow()
|
||||
val motionState = receiver.context.state.value.motion
|
||||
val isRotating = isRotating(lastRotation, rotation)
|
||||
val isAccelerating = isAccelerating(acceleration)
|
||||
val isMoving = isRotating || isAccelerating
|
||||
|
||||
when (motionState) {
|
||||
// Detect if tracker is at rest
|
||||
Motion.MOVING,
|
||||
Motion.STARTED_MOVING,
|
||||
->
|
||||
if (!isMoving) {
|
||||
if (now > lastRotationTime + ENTER_REST_TIME) {
|
||||
// Been not moving for long enough; set as at rest.
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(Motion.RESTING))
|
||||
lastStateChangeTime = now
|
||||
|
||||
// Update the rotation to continue detecting if the tracker is at rest
|
||||
lastRotation = rotation
|
||||
lastRotationTime = now
|
||||
}
|
||||
} else if (motionState == Motion.STARTED_MOVING && (now > lastStateChangeTime + ENTER_MOVING_ROTATION_TIME || isAccelerating)) {
|
||||
// Been moving for long enough or accel high; set as moving.
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(Motion.MOVING))
|
||||
lastStateChangeTime = now
|
||||
}
|
||||
|
||||
// Detect if tracker is moving
|
||||
Motion.RESTING ->
|
||||
if (isMoving) {
|
||||
// Started moving; set as recently at rest.
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(Motion.STARTED_MOVING))
|
||||
lastStateChangeTime = now
|
||||
}
|
||||
}
|
||||
|
||||
// Update rotation if the tracker is moving
|
||||
if (isMoving) {
|
||||
lastRotation = rotation
|
||||
lastRotationTime = now
|
||||
}
|
||||
}
|
||||
.launchIn(receiver.context.scope)
|
||||
}
|
||||
|
||||
private fun isRotating(lastRotation: RawRotation, rotation: RawRotation) = Angle.absBetween(lastRotation, rotation) > MAX_ROTATION
|
||||
|
||||
private fun isAccelerating(acceleration: RawAcceleration) = acceleration.lenSq() > MAX_SQUARED_ACCEL
|
||||
|
||||
override fun reduce(state: TrackerState, action: TrackerActions): TrackerState = when (action) {
|
||||
is TrackerActions.SetRestState -> {
|
||||
println(action.restState)
|
||||
state.copy(motion = action.restState)
|
||||
}
|
||||
|
||||
else -> state
|
||||
}
|
||||
|
||||
// TODO : these values may need fine-tuning
|
||||
companion object {
|
||||
const val MAX_SQUARED_ACCEL = 16f
|
||||
val MAX_ROTATION = Angle.ofDeg(2.5f)
|
||||
val ENTER_REST_TIME = 600.milliseconds
|
||||
val ENTER_MOVING_ROTATION_TIME = 3.seconds
|
||||
}
|
||||
}
|
||||
|
||||
class TrackerToSkeletonBehaviour : TrackerBehaviour {
|
||||
var lastBodyPartSent: BodyPart? = null
|
||||
|
||||
@@ -362,6 +457,10 @@ class TrackerToSkeletonBehaviour : TrackerBehaviour {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the orientation the tracker should match after a Full Reset.
|
||||
* Used for T-Pose down.
|
||||
*/
|
||||
class TrackerRestOrientationBehaviour(
|
||||
private val settings: Settings,
|
||||
) : TrackerBehaviour {
|
||||
@@ -392,91 +491,6 @@ class TrackerRestOrientationBehaviour(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects whether a tracker is at rest.
|
||||
*
|
||||
* A tracker is at rest when it stays within a certain rotational range for a given
|
||||
* amount of time. If it rotates past that range, it is no longer at rest.
|
||||
*
|
||||
* TODO: Consider accel and use for tap detection as well
|
||||
*/
|
||||
class TrackerRestDetectionBehaviour : TrackerBehaviour {
|
||||
|
||||
override fun observe(receiver: Tracker) {
|
||||
var startTime = timeSource.markNow()
|
||||
var lastUpdateTime = timeSource.markNow()
|
||||
var lastRotation = Quaternion.IDENTITY
|
||||
|
||||
// To reset rest detection
|
||||
receiver.context.state
|
||||
.distinctUntilChanged { old, new -> old.sessionCalibration == new.sessionCalibration }
|
||||
.onEach {
|
||||
lastRotation = Quaternion.IDENTITY
|
||||
val now = timeSource.markNow()
|
||||
startTime = now
|
||||
lastUpdateTime = now
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(RestState.MOVING)) // TODO : should this be AT_REST?
|
||||
}.launchIn(receiver.context.scope)
|
||||
|
||||
// For update loop
|
||||
receiver.context.state
|
||||
.map { it.rotation to it.acceleration }
|
||||
.distinctUntilChanged()
|
||||
.onEach { (rotation, acceleration) ->
|
||||
val now = timeSource.markNow()
|
||||
|
||||
if (
|
||||
receiver.context.state.value.restState == RestState.RECENTLY_AT_REST &&
|
||||
now > startTime.plus(ENTER_MOVING_TIME)
|
||||
) {
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(RestState.MOVING))
|
||||
startTime = now
|
||||
lastRotation = rotation
|
||||
lastUpdateTime = now
|
||||
}
|
||||
|
||||
when (receiver.context.state.value.restState) {
|
||||
RestState.MOVING,
|
||||
RestState.RECENTLY_AT_REST,
|
||||
->
|
||||
if (Angle.absBetween(lastRotation, rotation) > MAX_ROTATION) {
|
||||
lastRotation = rotation
|
||||
lastUpdateTime = now
|
||||
} else {
|
||||
// When we detect the tracker is at rest, use the current rotation as the
|
||||
// new start rotation for continuing to detect the tracker is at rest
|
||||
if (now > lastUpdateTime.plus(ENTER_REST_TIME)) {
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(RestState.AT_REST))
|
||||
startTime = now
|
||||
lastRotation = rotation
|
||||
lastUpdateTime = now
|
||||
}
|
||||
}
|
||||
|
||||
RestState.AT_REST ->
|
||||
if (Angle.absBetween(lastRotation, rotation) > MAX_ROTATION) {
|
||||
receiver.context.dispatch(TrackerActions.SetRestState(RestState.RECENTLY_AT_REST))
|
||||
startTime = now
|
||||
lastRotation = rotation
|
||||
lastUpdateTime = now
|
||||
}
|
||||
}
|
||||
}
|
||||
.launchIn(receiver.context.scope)
|
||||
}
|
||||
|
||||
override fun reduce(state: TrackerState, action: TrackerActions): TrackerState = when (action) {
|
||||
is TrackerActions.SetRestState -> state.copy(restState = action.restState)
|
||||
else -> state
|
||||
}
|
||||
|
||||
companion object {
|
||||
val MAX_ROTATION = Angle.ofDeg(2.0f)
|
||||
val ENTER_REST_TIME = 1.seconds
|
||||
val ENTER_MOVING_TIME = 3.seconds
|
||||
}
|
||||
}
|
||||
|
||||
class TrackerStayAlignedBehaviour(
|
||||
private val settings: Settings,
|
||||
private val stayAlignedManager: StayAlignedManager,
|
||||
|
||||
@@ -23,10 +23,10 @@ data class TrackerSensorIds(val trackerId: Int, val sensorId: Int)
|
||||
/**
|
||||
* Indicates if the tracker is moving, at rest or recently at rest.
|
||||
*/
|
||||
enum class RestState {
|
||||
enum class Motion {
|
||||
MOVING,
|
||||
AT_REST,
|
||||
RECENTLY_AT_REST,
|
||||
RESTING,
|
||||
STARTED_MOVING,
|
||||
}
|
||||
|
||||
data class YawResetSmoothing(
|
||||
@@ -76,7 +76,7 @@ data class TrackerState(
|
||||
val completedRestCalibration: Boolean?,
|
||||
val magStatus: MagnetometerStatus,
|
||||
val sessionCalibration: SessionCalibration?,
|
||||
val restState: RestState,
|
||||
val motion: Motion,
|
||||
val yawResetSmoothing: YawResetSmoothing?,
|
||||
val stayAlignedData: StayAlignedData,
|
||||
)
|
||||
@@ -93,7 +93,7 @@ sealed interface TrackerActions {
|
||||
data class TickYawResetSmoothing(val heading: HeadingCorrection, val done: Boolean) : TrackerActions
|
||||
data class MountingReset(val referenceRotation: Quaternion, val yawOffset: Float) : TrackerActions
|
||||
data object ClearMountingReset : TrackerActions
|
||||
data class SetRestState(val restState: RestState) : TrackerActions
|
||||
data class SetRestState(val restState: Motion) : TrackerActions
|
||||
}
|
||||
|
||||
typealias TrackerContext = Context<TrackerState, TrackerActions>
|
||||
@@ -144,7 +144,7 @@ class Tracker(
|
||||
completedRestCalibration = false,
|
||||
magStatus = MagnetometerStatus.NOT_SUPPORTED,
|
||||
sessionCalibration = null,
|
||||
restState = RestState.MOVING, // TODO : should this be AT_REST?
|
||||
motion = Motion.RESTING,
|
||||
yawResetSmoothing = null,
|
||||
stayAlignedData = StayAlignedData(
|
||||
null,
|
||||
@@ -168,9 +168,9 @@ class Tracker(
|
||||
TrackerDefaultMountingOrientationBehaviour(),
|
||||
TrackerConfigBehaviour(settings, hardwareId),
|
||||
TrackerTPSBehaviour(),
|
||||
TrackerMotionDetectionBehaviour(),
|
||||
TrackerToSkeletonBehaviour(),
|
||||
TrackerRestOrientationBehaviour(settings),
|
||||
TrackerRestDetectionBehaviour(),
|
||||
TrackerStayAlignedBehaviour(settings, appContext.stayAlignedManager),
|
||||
)
|
||||
val context = Context.create(
|
||||
|
||||
Reference in new issue
Block a user