mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 11:01:20 -08:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d2c2e4a5c | ||
|
|
3d18eae168 | ||
|
|
f1e3be0aec | ||
|
|
bc46269c24 | ||
|
|
905c5a4514 |
No files matched your search
+5
-2
@@ -1,3 +1,6 @@
|
||||
# Global code owner
|
||||
* @Eirenliel
|
||||
|
||||
# Make everyone be able to approve SolarXR submodule changes
|
||||
/solarxr-protocol @ButterscotchV @Erimelowo @loucass003
|
||||
|
||||
@@ -13,11 +16,11 @@
|
||||
|
||||
/gui/src/components/settings/ @Erimelowo @loucass003
|
||||
|
||||
# Electron part of the GUI
|
||||
# Rust part of the GUI
|
||||
/gui/electron/ @loucass003
|
||||
|
||||
# Some server code~
|
||||
/server/ @ButterscotchV @loucass003 @Erimelowo
|
||||
/server/ @ButterscotchV @Eirenliel @Erimelowo
|
||||
|
||||
/server/src/main/java/dev/slimevr/autobone/ @ButterscotchV
|
||||
/server/src/main/java/dev/slimevr/poserecorder/ @ButterscotchV
|
||||
|
||||
Generated
+9
-9
@@ -5,11 +5,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1777988971,
|
||||
"narHash": "sha256-qIoWPDs+0/8JecyYgE3gpKQxW/4bLW/gp45vow9ioCQ=",
|
||||
"lastModified": 1762980239,
|
||||
"narHash": "sha256-8oNVE8TrD19ulHinjaqONf9QWCKK+w4url56cdStMpM=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "0678d8986be1661af6bb555f3489f2fdfc31f6ff",
|
||||
"rev": "52a2caecc898d0b46b2b905f058ccc5081f842da",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1777954456,
|
||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
||||
"lastModified": 1756787288,
|
||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,11 +36,11 @@
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1777168982,
|
||||
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
|
||||
"lastModified": 1761765539,
|
||||
"narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
|
||||
"rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -6,77 +6,28 @@
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs@{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-parts,
|
||||
...
|
||||
}:
|
||||
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
perSystem = { pkgs, ... }:
|
||||
let
|
||||
runtimeLibs =
|
||||
pkgs:
|
||||
(with pkgs; [
|
||||
jdk17
|
||||
runtimeLibs = pkgs: (with pkgs; [
|
||||
jdk17
|
||||
|
||||
alsa-lib
|
||||
libpulseaudio
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
cairo
|
||||
cups
|
||||
dbus
|
||||
expat
|
||||
gdk-pixbuf
|
||||
glib
|
||||
gtk3
|
||||
libdrm
|
||||
libgbm
|
||||
libglvnd
|
||||
libnotify
|
||||
libxkbcommon
|
||||
mesa
|
||||
nspr
|
||||
nss
|
||||
pango
|
||||
systemd
|
||||
vulkan-loader
|
||||
wayland
|
||||
libX11
|
||||
libXcomposite
|
||||
libXdamage
|
||||
libXext
|
||||
libXfixes
|
||||
libXrandr
|
||||
libxcb
|
||||
libxshmfence
|
||||
libusb1
|
||||
udev
|
||||
libxcrypt-legacy
|
||||
rpm
|
||||
fpm
|
||||
alsa-lib libpulseaudio at-spi2-atk at-spi2-core cairo cups dbus expat
|
||||
gdk-pixbuf glib gtk3 libdrm libgbm libglvnd libnotify
|
||||
libxkbcommon mesa nspr nss pango systemd vulkan-loader
|
||||
wayland xorg.libX11 xorg.libXcomposite xorg.libXdamage
|
||||
xorg.libXext xorg.libXfixes xorg.libXrandr xorg.libxcb
|
||||
xorg.libxshmfence libusb1 udev libxcrypt-legacy
|
||||
rpm fpm
|
||||
|
||||
wineWow64Packages.stable
|
||||
zlib
|
||||
squashfsTools
|
||||
fakeroot
|
||||
libarchive
|
||||
icu
|
||||
nodejs_22
|
||||
pnpm
|
||||
pkg-config
|
||||
python3
|
||||
gcc
|
||||
gnumake
|
||||
binutils
|
||||
git
|
||||
node-gyp-build
|
||||
]);
|
||||
wineWow64Packages.stable
|
||||
zlib squashfsTools fakeroot libarchive icu
|
||||
nodejs_22 pnpm pkg-config python3 gcc gnumake binutils git
|
||||
pkgs.nodePackages.node-gyp-build
|
||||
]);
|
||||
|
||||
slimeShell = pkgs.buildFHSEnv {
|
||||
name = "slimevr-env";
|
||||
|
||||
@@ -20,7 +20,3 @@ buildconfigVersion=6.0.7
|
||||
# We should probably stop using grgit, see:
|
||||
# https://andrewoberstar.com/posts/2024-04-02-dont-commit-to-grgit/
|
||||
grgitVersion=5.3.3
|
||||
|
||||
# Fix gradle leaving multiple java processes running that accumulate and use multiple GBs of RAM
|
||||
# This mostly seems to affect it when running from console, and then sending a SIGINT (Ctrl + C)
|
||||
org.gradle.daemon.idletimeout=10000
|
||||
@@ -128,11 +128,11 @@ handleIpc(IPC_CHANNELS.LOG, (e, type, ...args) => {
|
||||
|
||||
handleIpc(IPC_CHANNELS.OPEN_URL, (e, url) => {
|
||||
const allowed_urls = [
|
||||
/^steam:\/\//,
|
||||
/^ms-settings:network$/,
|
||||
/^https:\/\/(?:.+\.)?slimevr\.dev(?:\/.+)?$/,
|
||||
/^https:\/\/github\.com\/SlimeVR(?:\/.+)?$/,
|
||||
/^https:\/\/discord\.gg\/slimevr$/,
|
||||
/steam:\/\/.*/,
|
||||
/ms-settings:network$/,
|
||||
/https:\/\/.*\.slimevr\.dev.*/,
|
||||
/https:\/\/github\.com\/.*/,
|
||||
/https:\/\/discord\.gg\/slimevr$/,
|
||||
];
|
||||
if (allowed_urls.find((a) => url.match(a))) open(url);
|
||||
else logger.error({ url }, 'attempted to open non-whitelisted URL');
|
||||
@@ -158,7 +158,7 @@ handleIpc(IPC_CHANNELS.DISCORD_PRESENCE, async (e, options) => {
|
||||
if (options.enable) {
|
||||
if (!discordPresence.state.ready)
|
||||
await discordPresence.connect();
|
||||
discordPresence.updateActivity(options.activity, options.iconText);
|
||||
discordPresence.updateActivity(options.activity);
|
||||
} else if (discordPresence.state.ready) {
|
||||
discordPresence.destroy();
|
||||
}
|
||||
|
||||
@@ -28,13 +28,12 @@ export const richPresence = () => {
|
||||
logger.error(e, 'Unable to connect to Discord RPC');
|
||||
}
|
||||
},
|
||||
updateActivity: (content: string, iconText: string | undefined) => {
|
||||
updateActivity: (content: string) => {
|
||||
if (!state.ready) return;
|
||||
client.user
|
||||
?.setActivity({
|
||||
state: content,
|
||||
largeImageKey: 'icon',
|
||||
largeImageText: iconText,
|
||||
startTimestamp: state.start,
|
||||
})
|
||||
.catch((e) => {
|
||||
|
||||
Vendored
+1
-3
@@ -34,9 +34,7 @@ export type GHReturn = {
|
||||
| null;
|
||||
};
|
||||
|
||||
export type DiscordPresence =
|
||||
| { enable: false }
|
||||
| { enable: true; activity: string; iconText: string | undefined };
|
||||
export type DiscordPresence = { enable: false } | { enable: true, activity: string }
|
||||
|
||||
export interface IElectronAPI {
|
||||
onServerStatus: (cb: (data: ServerStatusEvent) => void) => () => void;
|
||||
|
||||
@@ -811,11 +811,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = تخطى الإعداد
|
||||
onboarding-setup_warning-cancel = متابعة الإعداد
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = العودة إلى المقدمة
|
||||
onboarding-wifi_creds-skip = تخطى إعدادات واي فاي
|
||||
onboarding-wifi_creds-submit = إرسال!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -851,9 +849,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
يجب أن تكون في وضع تزلج كما هو موضح في معالج "التثبيت التلقائي" ولديك تأخير لمدة 3 ثوانٍ (قابل للتكوين) قبل أن يتم تشغيله.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = مرحبا بكم في سلايم في ار
|
||||
|
||||
@@ -836,11 +836,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Přeskočit nastavení
|
||||
onboarding-setup_warning-cancel = Pokračovat v nastavení
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Zpět na úvod
|
||||
onboarding-wifi_creds-v2 = Trackey používající Wi-Fi
|
||||
onboarding-wifi_creds-skip = Přeskočit nastavení Wi-Fi
|
||||
onboarding-wifi_creds-submit = Odeslat!
|
||||
@@ -872,9 +870,6 @@ onboarding-reset_tutorial-1 =
|
||||
Pro tuto funkci musíte stát v základní pozici (ruce podél těla). Před provedením resetu je zde 3 sekundová prodleva (lze nastavit).
|
||||
Tímto se kompletně resetuje pozice a rotace všech vašich trackerů, což by mělo vyřešit většinu problémů.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Vítejte ve SlimeVR
|
||||
|
||||
@@ -480,11 +480,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Spring opsætning over
|
||||
onboarding-setup_warning-cancel = Fortsæt konfigurationen
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Gå tilbage til introduktion
|
||||
onboarding-wifi_creds-skip = Spring Wi-Fi-indstillinger over
|
||||
onboarding-wifi_creds-submit = Færdig!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -499,9 +497,6 @@ onboarding-wifi_creds-password =
|
||||
onboarding-reset_tutorial-back = Gå tilbage til monteringskalibrering
|
||||
onboarding-reset_tutorial = Start forfra
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Velkommen til SlimeVR
|
||||
|
||||
@@ -884,11 +884,9 @@ onboarding-setup_warning = <b>Warnung:</b> Für gutes Tracking ist die Ersteinri
|
||||
onboarding-setup_warning-skip = Einrichtung überspringen
|
||||
onboarding-setup_warning-cancel = Einrichtung fortsetzen
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Zurück zur Einführung
|
||||
onboarding-wifi_creds-v2 = Tracker mit WLAN
|
||||
onboarding-wifi_creds-skip = WLAN-Zugangsdaten überspringen
|
||||
onboarding-wifi_creds-submit = Weiter!
|
||||
@@ -927,9 +925,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Sie müssen sich in einer "Skifahren"-Pose, wie im Tracker-Ausrichtung-Assistenten gezeigt wird, befinden. Nach dem Auslösen wird der Reset nach 3 Sekunden (konfigurierbar) durchgeführt.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Willkommen zu SlimeVR
|
||||
|
||||
@@ -291,18 +291,12 @@ settings-osc-vrchat-network-trackers-feet = Πόδια
|
||||
## Setup/onboarding menu
|
||||
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
|
||||
## Mounting setup
|
||||
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
|
||||
|
||||
@@ -739,11 +739,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = skipy setup
|
||||
onboarding-setup_warning-cancel = continu setup
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = gaww bawwk to intwoduction
|
||||
onboarding-wifi_creds-skip = skipy wi-fi settiwyngs
|
||||
onboarding-wifi_creds-submit = suwbmyt!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -779,9 +777,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
u need to be on pose wike you awe skiing wike it's shown on da Pawtomatic Meownting wizawd and you have a 3 second deway (configuwabwe) befowe it gets twiggewed.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = wewcome to SwimeVR
|
||||
|
||||
@@ -635,15 +635,10 @@ settings-general-fk_settings-enforce_joint_constraints-correct_constraints-descr
|
||||
settings-general-fk_settings-ik = Position data
|
||||
settings-general-fk_settings-ik-use_position = Use Position data
|
||||
settings-general-fk_settings-ik-use_position-description = Enables the use of position data from trackers that provide it. When enabling this make sure to full reset and recalibrate in game.
|
||||
settings-general-fk_settings-velocity_settings = Velocity Settings
|
||||
settings-general-fk_settings-velocity_settings-description = Send derived velocity data to SteamVR. Required for Natural Locomotion support. May cause jitter in FBT.
|
||||
settings-general-fk_settings-velocity_settings-send_derived_velocity = Send derived velocity to driver
|
||||
settings-general-fk_settings-arm_fk = Arm tracking
|
||||
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the headset (HMD) even if positional hand data is available.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Force arms from HMD
|
||||
settings-general-fk_settings-reset_settings = Reset settings
|
||||
settings-general-fk_settings-reset_settings-step_mounting-description = Use step mounting method instead of ski pose.
|
||||
settings-general-fk_settings-reset_settings-step_mounting = Step mounting
|
||||
settings-general-fk_settings-reset_settings-reset_hmd_pitch-description = Reset the HMD's pitch (vertical rotation) upon doing a full reset. Useful if wearing an HMD on the forehead for VTubing or mocap. Do not enable for VR.
|
||||
settings-general-fk_settings-reset_settings-reset_hmd_pitch = Reset HMD pitch
|
||||
settings-general-fk_settings-arm_fk-reset_mode-description = Change which arm pose is expected for mounting calibration.
|
||||
@@ -676,7 +671,7 @@ settings-general-fk_settings-self_localization-description = Mocap Mode allows t
|
||||
## Gesture control settings (tracker tapping)
|
||||
settings-general-gesture_control = Gesture control
|
||||
settings-general-gesture_control-subtitle = Tap based resets
|
||||
settings-general-gesture_control-description = Allows for resets to be triggered by tapping a tracker. Taps must occur within the time limit of 0.3 seconds times the number of taps to be recognized.
|
||||
settings-general-gesture_control-description = Allows for resets to be triggered by tapping a tracker. The tracker highest up on your torso is used for Yaw Reset, the tracker highest up on your left leg is used for Full Reset, and the tracker highest up on your right leg is used for Mounting Calibration. Taps must occur within the time limit of 0.3 seconds times the number of taps to be recognized.
|
||||
# This is a unit: 3 taps, 2 taps, 1 tap
|
||||
# $amount (Number) - Amount of taps (touches to the tracker's case)
|
||||
settings-general-gesture_control-taps = { $amount ->
|
||||
@@ -692,17 +687,12 @@ settings-general-gesture_control-trackers = { $amount ->
|
||||
settings-general-gesture_control-yawResetEnabled = Enable tap to yaw reset
|
||||
settings-general-gesture_control-yawResetDelay = Yaw reset delay
|
||||
settings-general-gesture_control-yawResetTaps = Taps for yaw reset
|
||||
settings-general-gesture_control-yawResetTracker = Yaw Reset Tracker
|
||||
settings-general-gesture_control-fullResetEnabled = Enable tap to full reset
|
||||
settings-general-gesture_control-fullResetDelay = Full reset delay
|
||||
settings-general-gesture_control-fullResetTaps = Taps for full reset
|
||||
settings-general-gesture_control-fullResetTracker = Full Reset Tracker
|
||||
settings-general-gesture_control-mountingResetEnabled = Enable tap to perform mounting calibration
|
||||
settings-general-gesture_control-mountingResetDelay = Mounting calibration delay
|
||||
settings-general-gesture_control-mountingResetTaps = Taps for mounting calibration
|
||||
settings-general-gesture_control-mountingResetTracker = Mounting Reset Tracker
|
||||
settings-general-gesture_control-yawResetTracker-title = Yaw Reset Tracker
|
||||
settings-general-gesture_control-fullResetTracker-title = Full Reset Tracker
|
||||
# The number of trackers that can have higher acceleration before a tap is rejected
|
||||
settings-general-gesture_control-numberTrackersOverThreshold = Trackers over threshold
|
||||
settings-general-gesture_control-numberTrackersOverThreshold-description = Increase this value if tap detection is not working. Do not increase it above what is needed to make tap detection work as it would cause more false positives.
|
||||
|
||||
@@ -355,7 +355,6 @@ tracker-table-column-name = Nombre
|
||||
tracker-table-column-type = Tipo
|
||||
tracker-table-column-battery = Batería
|
||||
tracker-table-column-ping = Latencia
|
||||
tracker-table-column-packet_loss = Pérdida de paquetes
|
||||
tracker-table-column-tps = TPS
|
||||
tracker-table-column-temperature = Temp. °C
|
||||
tracker-table-column-linear-acceleration = Accel. X/Y/Z
|
||||
@@ -397,36 +396,33 @@ tracker-infos-magnetometer-status-v1 =
|
||||
[ENABLED] Habilitado
|
||||
*[NOT_SUPPORTED] No soportado
|
||||
}
|
||||
tracker-infos-packet_loss = Pérdida de paquetes
|
||||
tracker-infos-packets_lost = Paquetes perdidos
|
||||
tracker-infos-packets_received = Paquetes recibidos
|
||||
|
||||
## Tracker settings
|
||||
|
||||
tracker-settings-back = Volver a la lista de trackers
|
||||
tracker-settings-title = Ajustes de los trackers
|
||||
tracker-settings-back = Volver a la lista de sensores
|
||||
tracker-settings-title = Ajustes de los sensores
|
||||
tracker-settings-assignment_section = Asignación
|
||||
tracker-settings-assignment_section-description = Parte del cuerpo asignado al sensor.
|
||||
tracker-settings-assignment_section-edit = Editar asignación
|
||||
tracker-settings-mounting_section = Posición de montura
|
||||
tracker-settings-mounting_section-description = ¿Dónde está montado el tracker?
|
||||
tracker-settings-mounting_section-description = ¿Dónde está montado el sensor?
|
||||
tracker-settings-mounting_section-edit = Editar montura
|
||||
tracker-settings-drift_compensation_section = Permitir compensación de desviación
|
||||
tracker-settings-drift_compensation_section-description = ¿Este tracker debería compensar la desviación?
|
||||
tracker-settings-drift_compensation_section-description = ¿Este sensor deberia compensar la desviación?
|
||||
tracker-settings-drift_compensation_section-edit = Permitir compensación de desviación
|
||||
tracker-settings-use_mag = Permitir el uso del magnetómetro en este tracker
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
¿Debería este tracker usar el magnetómetro para reducir la desviacion cuando se permite el uso del magnetómetro? <b>¡Por favor, no apagues tu tracker mientras alternas esto!</b>
|
||||
|
||||
|
||||
Primero debes permitir el uso del magnetómetro, <magSetting>haga clic aquí para ir al ajuste</magSetting>.
|
||||
tracker-settings-use_mag-label = Permitir el uso del magnetómetro
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
# In this case that is the settings for the assignment section.
|
||||
tracker-settings-name_section = Nombre del tracker
|
||||
tracker-settings-name_section = Nombre del sensor
|
||||
tracker-settings-name_section-description = Dale un apodo bonito :)
|
||||
tracker-settings-name_section-placeholder = Pata izquierda de Manteca
|
||||
tracker-settings-name_section-label = Nombre del tracker
|
||||
tracker-settings-name_section-label = Nombre del sensor
|
||||
tracker-settings-forget = Olvidar tracker
|
||||
tracker-settings-forget-description = Remueve el tracker del servidor de SlimeVR y lo previene de conectarse hasta que el servidor se reinicie. La configuración del tracker no se perderá.
|
||||
tracker-settings-forget-label = Olvidar tracker
|
||||
@@ -448,11 +444,11 @@ tracker-part_card-unassigned = Sin asignar
|
||||
|
||||
## Body assignment menu
|
||||
|
||||
body_assignment_menu = ¿Dónde quieres que esté este tracker?
|
||||
body_assignment_menu-description = Selecciona la posición donde quieres asignar este tracker. También puedes escoger administrar todos los trackers al mismo tiempo en vez de uno por uno.
|
||||
body_assignment_menu = ¿Dónde quieres que esté este sensor?
|
||||
body_assignment_menu-description = Selecciona la posición donde quieres asignar este sensor. También puedes escoger administrar todos los sensores al mismo tiempo en vez de uno por uno.
|
||||
body_assignment_menu-show_advanced_locations = Mostrar posiciones de asignación avanzadas
|
||||
body_assignment_menu-manage_trackers = Administrar todos los trackers
|
||||
body_assignment_menu-unassign_tracker = Desasignar tracker
|
||||
body_assignment_menu-manage_trackers = Administrar todos los sensores
|
||||
body_assignment_menu-unassign_tracker = Desasignar sensor
|
||||
|
||||
## Tracker assignment menu
|
||||
|
||||
@@ -461,8 +457,8 @@ body_assignment_menu-unassign_tracker = Desasignar tracker
|
||||
#
|
||||
# We are using it here because english doesn't require changing the text in each case but
|
||||
# maybe your language does.
|
||||
-tracker_selection-part = ¿Qué tracker asignar a tu
|
||||
tracker_selection_menu-NONE = ¿Qué tracker quieres que esté sin asignar?
|
||||
-tracker_selection-part = ¿Qué sensor asignar a tu
|
||||
tracker_selection_menu-NONE = ¿Qué sensor quieres que esté sin asignar?
|
||||
tracker_selection_menu-HEAD = { -tracker_selection-part } cabeza?
|
||||
tracker_selection_menu-NECK = { -tracker_selection-part } cuello?
|
||||
tracker_selection_menu-RIGHT_SHOULDER = { -tracker_selection-part } hombro derecho?
|
||||
@@ -485,8 +481,8 @@ tracker_selection_menu-LEFT_UPPER_LEG = { -tracker_selection-part } muslo izquie
|
||||
tracker_selection_menu-LEFT_LOWER_LEG = { -tracker_selection-part } tobillo izquiero?
|
||||
tracker_selection_menu-LEFT_FOOT = { -tracker_selection-part } pie izquierdo?
|
||||
tracker_selection_menu-LEFT_CONTROLLER = { -tracker_selection-part } mando izquierdo?
|
||||
tracker_selection_menu-unassigned = Trackers sin asignar
|
||||
tracker_selection_menu-assigned = Trackers asignados
|
||||
tracker_selection_menu-unassigned = Sensores sin asignar
|
||||
tracker_selection_menu-assigned = Sensores asignados
|
||||
tracker_selection_menu-dont_assign = No asignar
|
||||
# This line cares about multilines.
|
||||
# <b>text</b> means that the text should be bold.
|
||||
@@ -498,7 +494,7 @@ tracker_selection_menu-neck_warning-cancel = Cancelar
|
||||
|
||||
## Mounting menu
|
||||
|
||||
mounting_selection_menu = ¿Dónde quieres colocar el tracker?
|
||||
mounting_selection_menu = ¿Dónde quieres colocar el sensor?
|
||||
mounting_selection_menu-close = Cerrar
|
||||
|
||||
## Sidebar settings
|
||||
@@ -506,13 +502,13 @@ mounting_selection_menu-close = Cerrar
|
||||
settings-sidebar-title = Ajustes
|
||||
settings-sidebar-general = General
|
||||
settings-sidebar-steamvr = SteamVR
|
||||
settings-sidebar-tracker_mechanics = Mecánicas del tracker
|
||||
settings-sidebar-tracker_mechanics = Mecánicas del sensor
|
||||
settings-sidebar-stay_aligned = Mantente Alineado
|
||||
settings-sidebar-fk_settings = Ajustes de FK
|
||||
settings-sidebar-gesture_control = Control de gestos
|
||||
settings-sidebar-interface = Interfaz
|
||||
settings-sidebar-osc_router = Router OSC
|
||||
settings-sidebar-osc_trackers = Trackers OSC de VRChat
|
||||
settings-sidebar-osc_trackers = Sensores OSC de VRChat
|
||||
settings-sidebar-osc_vmc = VMC
|
||||
settings-sidebar-utils = Utilidades
|
||||
settings-sidebar-serial = Consola serial
|
||||
@@ -582,12 +578,12 @@ settings-general-tracker_mechanics-drift_compensation-prediction = Compensación
|
||||
# This cares about multilines
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-description =
|
||||
Predice la desviación horizontal y compensa cuando esta mas allá del rango previamente medido.
|
||||
Activa esto si el tracker esta girando continuamente en el eje horizontal.
|
||||
Activa esto si el sensor esta girando continuamente en el eje horizontal.
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-label = Compensación mediante la predicción del desvío
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Advertencia:</b> Solo usa la compensación de desviación si necesitas reiniciar
|
||||
muy seguido (cada ~5-10 minutos).
|
||||
|
||||
|
||||
Algunos IMUs propensos a reinicios frecuentes incluyen:
|
||||
Joy-Cons, owoTrack y MPU (sin un firmware reciente).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Cancelar
|
||||
@@ -604,9 +600,6 @@ settings-general-tracker_mechanics-use_mag_on_all_trackers-description =
|
||||
Usa el magnetómetro en todos los trackers que tienen un firmware compatible, lo que reduce la desviación en entornos magnéticos estables.
|
||||
Se puede desactivar por sensor en la configuración del sensor. <b>¡Por favor, no apagues ninguno de los trackers mientras activas esta opción!</b>
|
||||
settings-general-tracker_mechanics-use_mag_on_all_trackers-label = Usar magnetómetro en trackers
|
||||
settings-general-tracker_mechanics-trackers_over_usb = Trackers por USB
|
||||
settings-general-tracker_mechanics-trackers_over_usb-description = Permite recibir datos de trackers HID por USB. ¡Asegúrate de que los trackers conectados tengan <b>conexión por HID</b> activados!
|
||||
settings-general-tracker_mechanics-trackers_over_usb-enabled-label = Permite a los trackers HID conectarse directamente por USB
|
||||
settings-stay_aligned = Mantente Alineado
|
||||
settings-stay_aligned-description = Mantente Alineado reduce el desvío ajustando gradualmente tus trackers para calzar tus poses relajadas.
|
||||
settings-stay_aligned-setup-label = Configurar Mantente Alineado
|
||||
@@ -779,9 +772,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Recopilación de errores a través de Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Consientes a la recopilación de datos de errores anonimizados?</h1>
|
||||
|
||||
|
||||
<b>No recopilamos información personal</b> como tu dirección IP o credenciales del Wi-Fi. ¡SlimeVR respeta tu privacidad!
|
||||
|
||||
|
||||
Para proveer la mejor experiencia de usuario, recopilamos reportes de errores anonimizados, métricas de rendimiento, e información del sistema operativo. Esto nos ayuda a detectar errores y problemas con SlimeVR. Estas métricas son recopiladas a través de Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Enviar errores a los desarrolladores
|
||||
settings-interface-behavior-bvh_directory = Carpeta para guardar grabaciones de BVH
|
||||
@@ -849,7 +842,7 @@ settings-osc-vrchat-description-v1 =
|
||||
Cambia los ajustes específicos de los trackers OSC utilizados para enviar
|
||||
datos de seguimiento a aplicaciones sin SteamVR (ej. VRChat en Quest).
|
||||
Asegúrate de activar OSC en VRChat a través del menú Acción en OSC > Activado.
|
||||
Para permitir la recepción de datos del HMD y de los mandos desde VRChat, ve a los ajustes de tu menú principal
|
||||
Para permitir la recepción de datos del HMD y de los mandos desde VRChat, ve a los ajustes de tu menú principal
|
||||
en Tracking & IK > Permitir el envío de datos OSC de seguimiento de RV de cabeza y muñeca.
|
||||
settings-osc-vrchat-enable = Habilitar
|
||||
settings-osc-vrchat-enable-description = Habilita el envio y recibo de datos.
|
||||
@@ -974,51 +967,15 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Saltar configuración
|
||||
onboarding-setup_warning-cancel = Continuar configuración
|
||||
|
||||
## Quiz
|
||||
|
||||
onboarding-quiz_continue = Continuar
|
||||
onboarding-quiz_back = Atrás
|
||||
onboarding-quiz-more_sets_modal-title = ¿Has conectado todos tus trackers?
|
||||
onboarding-quiz-more_sets_modal-desc = Si tienes sets de diferentes modelos, ¡los podemos conectar ahora!
|
||||
onboarding-quiz-more_sets_modal-confirm = He conectado todos mis trackers
|
||||
onboarding-quiz-more_sets_modal-cancel = Quiero conectar mas trackers
|
||||
onboarding-quiz-slimeset-title = ¿Que tipo de trackers estás conectando?
|
||||
onboarding-quiz-slimeset-description = Si tienes múltiples sets, se te preguntará de nuevo más adelante en el proceso
|
||||
onboarding-quiz-slimeset-official-sets = Trackers SlimeVR Oficiales
|
||||
onboarding-quiz-slimeset-thirdparty-sets = Trackers DIY o de terceros
|
||||
onboarding-quiz-slimeset-answer-regular = SlimeVR V1.0 y V1.2
|
||||
onboarding-quiz-slimeset-answer-butterfly = Mariposa
|
||||
onboarding-quiz-usage-title = ¿Para que usas tus trackers?
|
||||
onboarding-quiz-usage-description = Si planeas usar SlimeVR para múltiples propósitos, puedes cambiar los ajustes afectados más adelante.
|
||||
onboarding-quiz-usage-answer-VRC = Juegos VR (por ejemplo, VRChat)
|
||||
onboarding-quiz-usage-answer-mocap_vtubing = Mocap y VTubing
|
||||
onboarding-quiz-runtime-title = ¿Ejecutas los juegos por SteamVR o directamente del casco (independiente)?
|
||||
onboarding-quiz-runtime-answer-steamvr = SteamVR
|
||||
onboarding-quiz-runtime-answer-standalone = Independiente
|
||||
onboarding-quiz-mocap_preferences-title = Preferencias de Mocap
|
||||
onboarding-quiz-mocap_preferences-desc = Especifica cómo planeas usar SlimeVR para mocap o VTubing
|
||||
onboarding-quiz-mocap_preferences-playspace-title = ¿Cuál es tu espacio de juego?
|
||||
onboarding-quiz-mocap_preferences-playspace-desc = Si estás de pie, SlimeVR intentará trackear el movimiento al caminar en vez de anclarte en un lugar.
|
||||
onboarding-quiz-mocap_preferences-playspace-sitting = Sentado
|
||||
onboarding-quiz-mocap_preferences-playspace-standing = De pie
|
||||
onboarding-quiz-mocap_preferences-vrm_model-title = ¿Tienes un modelo VRM? (Opcional)
|
||||
onboarding-quiz-mocap_preferences-vrm_model-desc = Cargar un modelo VRM mejorará la calidad de trackeo y la compatibilidad con aplicaciones que usan VMC.
|
||||
onboarding-quiz-mocap_preferences-head_tracker-title = ¿Tienes un tracker o un casco VR en tu cabeza?
|
||||
onboarding-quiz-mocap_preferences-head_tracker-yes = Sí
|
||||
onboarding-quiz-mocap_preferences-head_tracker-no = No
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-title = ¿Donde se encuentra el tracker de cabeza?
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-forehead = Frente
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-face = Cara
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back-v2 = Volver a la introducción
|
||||
onboarding-wifi_creds-back = Volver a la introducción
|
||||
onboarding-wifi_creds-v2 = Trackers utilizando Wi-Fi
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
La mayoría de trackers (como los trackers oficiales de SlimeVR) utilizan Wi-Fi para conectar al servidor.
|
||||
Por favor utiliza las credenciales de la red Wi-Fi donde tu dispositivo esta actualmente conectado.
|
||||
|
||||
|
||||
¡Asegúrate de utilizar una conexión Wi-Fi 2.4Ghz para tus trackers!
|
||||
onboarding-wifi_creds-skip = Saltar ajustes de Wi-Fi
|
||||
onboarding-wifi_creds-submit = ¡Enviar!
|
||||
@@ -1043,27 +1000,22 @@ onboarding-reset_tutorial-skip = Saltar paso
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Toca { $taps } veces el tracker resaltado para activar el reinicio horizontal.
|
||||
|
||||
|
||||
Esto va a hacer que tus sensores miren para la misma dirección que tu HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Toca { $taps } veces el tracker resaltado para activar el reinicio completo.
|
||||
|
||||
|
||||
Se requiere que estés de pie (pose en i). Esto tiene una demora de 3 segundos (configurable) antes de que realmente suceda.
|
||||
Esto reinicia completamente la posición y rotación de todos tus trackers. Debería de arreglar la mayoría de los problemas.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Toca { $taps } veces el tracker resaltado para activar el reinicio de montura.
|
||||
|
||||
|
||||
El reinicio de montura ayuda en como tus sensores están puestos en tu cuerpo, ya que si los movistes o cambiaste para donde están orientados bastante, esto debería de ayudar.
|
||||
|
||||
|
||||
Requiere que estas en una pose como que estás esquiando, como se muestra en el tutorial de montura automática y tenes un retraso de 3 segundos (configurable) antes de que actualmente suceda.
|
||||
|
||||
## Install info
|
||||
|
||||
install-info_udev-rules_modal_button = Cerrar
|
||||
install-info_udev-rules_modal-dont-show-again_checkbox = No mostrar de nuevo
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Bienvenido a SlimeVR
|
||||
@@ -1407,7 +1359,6 @@ onboarding-user_height-description = Necesitamos tu altura para calcular tus pro
|
||||
onboarding-user_height-need_head_tracker = Un casco y controles con rastreo posicional son requeridos para realizar la calibración.
|
||||
onboarding-user_height-calculate = Calcular mi altura automáticamente
|
||||
onboarding-user_height-next_step = Continuar y guardar
|
||||
onboarding-user_height-prev_step = Atrás
|
||||
onboarding-user_height-manual-proportions = Proporciones Manuales
|
||||
onboarding-user_height-calibration-title = Progreso de Calibración
|
||||
onboarding-user_height-calibration-RECORDING_FLOOR = Toca el suelo con la punta de tu control
|
||||
@@ -1461,7 +1412,6 @@ onboarding-stay_aligned-previous_step = Atrás
|
||||
onboarding-stay_aligned-next_step = Siguiente
|
||||
onboarding-stay_aligned-restart = Reiniciar
|
||||
onboarding-stay_aligned-done = Hecho
|
||||
onboarding-stay_aligned-manual_mounting-done = Hecho
|
||||
|
||||
## Home
|
||||
|
||||
@@ -1512,9 +1462,6 @@ firmware_tool-select_source-firmware = Fuente del Firmware
|
||||
firmware_tool-select_source-version = Versión del Firmware
|
||||
firmware_tool-select_source-official = Oficial
|
||||
firmware_tool-select_source-dev = Desarrollo
|
||||
firmware_tool-select_source-not_selected = Ninguna fuente seleccionada
|
||||
firmware_tool-select_source-no_boards = No hay placas disponibles para esta fuente
|
||||
firmware_tool-select_source-no_versions = No hay versiones disponibles para esta fuente
|
||||
firmware_tool-board_defaults = Configura tu placa
|
||||
firmware_tool-board_defaults-description = Establece los pines o ajustes relativos a tu hardware
|
||||
firmware_tool-board_defaults-add = Añadir
|
||||
@@ -1541,7 +1488,7 @@ firmware_tool-flashbtn_step-board_SLIMEVR-r12-v2 = Enciende el tracker mientras
|
||||
firmware_tool-flashbtn_step-board_SLIMEVR-r14-v2 = Enciende el tracker mientras pulsas el botón FLASH en la parte superior de la placa. El LED del tracker deberia hacer un parpadeo breve.
|
||||
firmware_tool-flashbtn_step-board_OTHER =
|
||||
Antes de flashear, probablemente tendrá que poner el sensor en modo bootloader.
|
||||
La mayoría de las veces, esto significa presionar el botón de boot en la placa antes de que comience el proceso de flasheo. Si el proceso de flasheo se agota al comienzo, probablemente significa que el sensor no estaba en modo bootloader.
|
||||
La mayoría de las veces, esto significa presionar el botón de boot en la placa antes de que comience el proceso de flasheo. Si el proceso de flasheo se agota al comienzo, probablemente significa que el sensor no estaba en modo bootloader.
|
||||
Por favor, consulte las instrucciones de flasheo de su placa para saber cómo activar el modo bootloader.
|
||||
firmware_tool-flash_method_ota-title = Flashear por Wi-Fi
|
||||
firmware_tool-flash_method_ota-devices = Dispositivos OTA detectados:
|
||||
@@ -1558,7 +1505,6 @@ firmware_tool-flashing_step-description = Sus trackers se están flasheando, por
|
||||
firmware_tool-flashing_step-warning-v2 = No desconectes o apagues el tracker durante el proceso de subida a menos que se te indique, puede causar que tu placa quede inutilizable.
|
||||
firmware_tool-flashing_step-flash_more = Flashear más sensores
|
||||
firmware_tool-flashing_step-exit = Salir
|
||||
firmware_tool-flashing_step-onboarding_continue = Continuar
|
||||
|
||||
## firmware tool build status
|
||||
|
||||
@@ -1614,7 +1560,7 @@ tray_or_exit_modal-title = ¿Que debería hacer el botón de cerrar?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Esto te deja escoger si quieres cerrar el servidor o minimizarlo a la bandeja cuando se presiona el botón de cerrar.
|
||||
|
||||
|
||||
¡Puedes cambiar esto luego en los ajustes de la interfaz!
|
||||
tray_or_exit_modal-radio-exit = Salir al cerrar
|
||||
tray_or_exit_modal-radio-tray = Minimizar a la bandeja del sistema
|
||||
@@ -1675,7 +1621,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Longitud del brazo
|
||||
error_collection_modal-title = ¿Podemos recopilar errores?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Tu puedes cambiar esta configuración más tarde en la sección de comportamiento de la pagina de configuración.
|
||||
error_collection_modal-confirm = Acepto
|
||||
error_collection_modal-cancel = No quiero
|
||||
@@ -1700,9 +1646,6 @@ tracking_checklist-FULL_RESET-desc = Algunos trackers necesitan realizar un rein
|
||||
tracking_checklist-STEAMVR_DISCONNECTED = SteamVR no se está ejecutando
|
||||
tracking_checklist-STEAMVR_DISCONNECTED-desc = SteamVR no se esta ejecutando. ¿Lo estas usando para VR?
|
||||
tracking_checklist-STEAMVR_DISCONNECTED-open = Abrir SteamVR
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED = Trackers de mano activados
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED-desc = Has activado los trackers de mano virtuales de SteamVR. Esto causará que los botones no funcionarán en SteamVR ni en juegos.
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED-go = Desactívalos
|
||||
tracking_checklist-TRACKERS_REST_CALIBRATION = Calibra tus trackers
|
||||
tracking_checklist-TRACKERS_REST_CALIBRATION-desc = No realizaste una calibración para los trackers. Por favor deja reposar tus trackers (resaltados en amarillo) en una superficie estable por unos segundos.
|
||||
tracking_checklist-TRACKER_ERROR = Trackers con Errores
|
||||
|
||||
@@ -904,11 +904,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Omitir configuración
|
||||
onboarding-setup_warning-cancel = Continuar con la configuración
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Volver a la introducción
|
||||
onboarding-wifi_creds-skip = Omitir configuración Wi-Fi
|
||||
onboarding-wifi_creds-submit = ¡Enviar!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -944,9 +942,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Necesitas estar en una pose como si estuvieras esquiando como se muestra en el asistente de montaje automático y tienes un retraso de 3 segundos (configurable) antes de que se active.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Bienvenido a SlimeVR
|
||||
|
||||
@@ -556,11 +556,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Jäta seadistamine vahele
|
||||
onboarding-setup_warning-cancel = Jätka seadistamist
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Mine tagasi juhistele
|
||||
onboarding-wifi_creds-skip = Jätke Wi-Fi seaded vahele.
|
||||
onboarding-wifi_creds-submit = Jätka!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -595,9 +593,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Peate olema poosis, nagu suusatate, nagu see on näidatud automaatse paigaldamise viisardil, ja teil on 3-sekundiline viivitus (konfigureeritav), enne kui see käivitub.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Tere tulemast SlimeVR-i
|
||||
|
||||
@@ -589,11 +589,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Ohita asennus
|
||||
onboarding-setup_warning-cancel = Jatka asennusta
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Palaa esittelyyn
|
||||
onboarding-wifi_creds-skip = Ohita Wi-Fi-asetukset
|
||||
onboarding-wifi_creds-submit = Lähetä!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -628,9 +626,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Sinun on oltava hiihto-asennossa, kuten on näytettynä Automaattisessa Asennuksessa ja sinulla on 3 sekunnin viive (muokattavissa), ennen kuin se käynnistyy.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Tervetuloa SlimeVR:ään
|
||||
|
||||
@@ -971,11 +971,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Passer la configuration
|
||||
onboarding-setup_warning-cancel = Continuer la configuration
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Retour à l'introduction
|
||||
onboarding-wifi_creds-v2 = Capteurs utilisant le Wi-Fi
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
@@ -1022,9 +1020,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Accroupissez-vous dans une position de « ski » comme affiché sur l'assistant d'alignement des capteurs. Vous aurez un délai de 3 secondes (configurable) avant la réinitialisation.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Bienvenue sur SlimeVR
|
||||
|
||||
@@ -291,18 +291,12 @@ settings-osc-vrchat-network-trackers-elbows = מרפקים
|
||||
## Setup/onboarding menu
|
||||
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
|
||||
## Mounting setup
|
||||
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
|
||||
|
||||
@@ -907,11 +907,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Salta la configurazione
|
||||
onboarding-setup_warning-cancel = Continua la configurazione
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Torna all'introduzione
|
||||
onboarding-wifi_creds-skip = Salta impostazioni Wi-Fi
|
||||
onboarding-wifi_creds-submit = Conferma!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -947,9 +945,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Devi essere in posa come se stessi sciando come mostrato nella procedura guidata di posizionamento automatico e ha un ritardo di 3 secondi (configurabile) prima che venga attivato.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Benvenuti a SlimeVR
|
||||
|
||||
@@ -574,11 +574,9 @@ onboarding-wip = 実行中
|
||||
onboarding-setup_warning-skip = セットアップをスキップする
|
||||
onboarding-setup_warning-cancel = セットアップを続行する
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = 戻る
|
||||
onboarding-wifi_creds-skip = Wi-Fi設定をスキップする
|
||||
onboarding-wifi_creds-submit = 実行!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -594,9 +592,6 @@ onboarding-reset_tutorial-back = マウントキャリブレーションに戻
|
||||
onboarding-reset_tutorial = リセットチュートリアル
|
||||
onboarding-reset_tutorial-skip = ステップをスキップする
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = SlimeVRへようこそ
|
||||
|
||||
@@ -740,11 +740,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = 설정 건너뛰기
|
||||
onboarding-setup_warning-cancel = 설정 계속하기
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = 처음으로 돌아가기
|
||||
onboarding-wifi_creds-skip = Wi-Fi 설정 건너뛰기
|
||||
onboarding-wifi_creds-submit = 저장!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -780,9 +778,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
자동 착용 방향 설정 마법사에서 봤던 것처럼 스키를 타는 듯한 자세로 몸을 구부리고 있으세요. 탭한 다음 3초 뒤에(설정에서 변경 가능) 보정이 시작될 거예요.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = SlimeVR에 어서오세요!
|
||||
|
||||
@@ -609,18 +609,12 @@ settings-general-gesture_control-trackers =
|
||||
## Setup/onboarding menu
|
||||
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
|
||||
## Mounting setup
|
||||
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
|
||||
|
||||
@@ -494,11 +494,9 @@ onboarding-skip = Hopp over oppsett
|
||||
onboarding-continue = Fortsett
|
||||
onboarding-wip = Arbeid pågår
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Gå tilbake til introduksjonen
|
||||
onboarding-wifi_creds-skip = Hopp over Wi-Fi innstillinger
|
||||
onboarding-wifi_creds-submit = Send inn!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -514,9 +512,6 @@ onboarding-reset_tutorial-back = Gå tilbake til monterings kalibrering
|
||||
onboarding-reset_tutorial = Nullstill opplæringen
|
||||
onboarding-reset_tutorial-skip = Hopp over trinn
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Velkommen til SlimeVR
|
||||
|
||||
@@ -962,11 +962,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Setupgids overslaan
|
||||
onboarding-setup_warning-cancel = Doorgaan met setupgids
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Ga terug naar de introductie
|
||||
onboarding-wifi_creds-v2 = Trackers die Wi-Fi gebruiken
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
@@ -1013,9 +1011,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Je moet in een houding staan alsof je aan het skiën bent, zoals wordt weergegeven in de Automatische montage wizard, je hebt een vertraging van 3 seconden (instelbaar) voordat deze wordt geactiveerd.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Welkom bij SlimeVR
|
||||
|
||||
@@ -960,11 +960,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Pomiń konfigurację
|
||||
onboarding-setup_warning-cancel = Kontynuuj konfigurację
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Cofnij się do początku
|
||||
onboarding-wifi_creds-skip = Pomiń ustawienia Wi-Fi
|
||||
onboarding-wifi_creds-submit = Potwierdź!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -1000,9 +998,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Musisz być w pozie, jakbyś jechał na nartach, tak jak jest to pokazane w kreatorze automatycznego montażu, i masz 3-sekundowe opóźnienie (konfigurowalne), zanim zostanie uruchomione.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Witamy w SlimeVR
|
||||
|
||||
@@ -654,8 +654,6 @@ settings-general-fk_settings-enforce_joint_constraints-correct_constraints-descr
|
||||
settings-general-fk_settings-ik = Dados de posição
|
||||
settings-general-fk_settings-ik-use_position = Usar dados de posição
|
||||
settings-general-fk_settings-ik-use_position-description = Ativa o uso de dados de posição dos trackers que os fornecem. Ao ativar isso, certifique-se de executar "Redefinir Tudo" e recalibrar no jogo.
|
||||
settings-general-fk_settings-velocity_settings = Configurações de Velocidade
|
||||
settings-general-fk_settings-velocity_settings-description = Envia dados de velocidade derivados para o SteamVR. Necessário para suporte ao Natural Locomotion. Pode causar instabilidade no FBT.
|
||||
settings-general-fk_settings-arm_fk = Rastreamento dos braços
|
||||
settings-general-fk_settings-arm_fk-description = Forçar o rastreamento dos braços a partir do headset (HMD), mesmo que dados posicionais das mãos estejam disponíveis.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Forçar braços do HMD
|
||||
@@ -972,47 +970,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Pular configurações
|
||||
onboarding-setup_warning-cancel = Continuar configurações
|
||||
|
||||
## Quiz
|
||||
|
||||
onboarding-quiz_continue = Continuar
|
||||
onboarding-quiz_back = Voltar
|
||||
onboarding-quiz-more_sets_modal-title = Você conectou todos os seus trackers?
|
||||
onboarding-quiz-more_sets_modal-desc = Se você tiver conjuntos de modelos diferentes, podemos conectá-los agora mesmo!
|
||||
onboarding-quiz-more_sets_modal-confirm = Eu conectei todos os meus trackers
|
||||
onboarding-quiz-more_sets_modal-cancel = Quero conectar mais trackers
|
||||
onboarding-quiz-slimeset-title = Que tipo de trackers você está conectando?
|
||||
onboarding-quiz-slimeset-description = Se você tiver vários conjuntos, você será solicitado novamente mais tarde no processo
|
||||
onboarding-quiz-slimeset-official-sets = Trackers Oficiais do SlimeVR
|
||||
onboarding-quiz-slimeset-thirdparty-sets = Trackers de Terceiros ou Feitos por Você.
|
||||
onboarding-quiz-slimeset-answer-regular = SlimeVR V1.0 e V1.2
|
||||
onboarding-quiz-slimeset-answer-butterfly = Butterfly
|
||||
onboarding-quiz-slimeset-answer-wifi = Slime baseado em Wi-Fi
|
||||
onboarding-quiz-slimeset-answer-dongle = Slime baseado em Dongle
|
||||
onboarding-quiz-usage-title = Para que você está usando seus trackers?
|
||||
onboarding-quiz-usage-description = Se você pretende usar o SlimeVR para múltiplas finalidades, você pode alterar as configurações afetadas mais tarde.
|
||||
onboarding-quiz-usage-answer-VRC = Jogos em VR (ex.: VRChat)
|
||||
onboarding-quiz-usage-answer-mocap_vtubing = Mocap e VTubing
|
||||
onboarding-quiz-runtime-title = Você executa jogos via SteamVR ou diretamente no headset (standalone)?
|
||||
onboarding-quiz-runtime-answer-steamvr = SteamVR
|
||||
onboarding-quiz-runtime-answer-standalone = Standalone
|
||||
onboarding-quiz-mocap_preferences-title = Preferências de Mocap
|
||||
onboarding-quiz-mocap_preferences-desc = Especifique como você pretende usar o SlimeVR para mocap ou VTubing
|
||||
onboarding-quiz-mocap_preferences-playspace-title = Qual é o seu espaço de jogo?
|
||||
onboarding-quiz-mocap_preferences-playspace-desc = Se estiver em pé, o SlimeVR tentará rastrear o movimento de caminhada em vez de manter você ancorado em um único lugar.
|
||||
onboarding-quiz-mocap_preferences-playspace-sitting = Sentado
|
||||
onboarding-quiz-mocap_preferences-playspace-standing = Em Pé
|
||||
onboarding-quiz-mocap_preferences-vrm_model-title = Você tem um modelo VRM? (Opcional)
|
||||
onboarding-quiz-mocap_preferences-vrm_model-desc = Carregar um modelo VRM melhorará a qualidade do rastreamento e a compatibilidade com aplicativos que usam VMC.
|
||||
onboarding-quiz-mocap_preferences-head_tracker-title = Você está usando um tracker ou um headset VR na cabeça?
|
||||
onboarding-quiz-mocap_preferences-head_tracker-yes = Sim
|
||||
onboarding-quiz-mocap_preferences-head_tracker-no = Não
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-title = Onde está localizado o seu rastreador de cabeça?
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-forehead = Testa
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-face = Rosto
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back-v2 = Voltar
|
||||
onboarding-wifi_creds-back = Voltar para introdução
|
||||
onboarding-wifi_creds-v2 = Trackers conectados via Wi-Fi
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
@@ -1058,13 +1018,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Você precisa estar em uma pose como se estivesse esquiando, conforme mostrado no assistente de montagem automática, e há um atraso de 3 segundos (configurável) antes que ela seja acionada.
|
||||
|
||||
## Install info
|
||||
|
||||
install-info_udev-rules_modal_title = Regras de acesso udev de hardware não encontradas
|
||||
install-info_udev-rules_warning = Regras de acesso via udev são necessárias para acesso ao console serial e conexão do dongle. Cole o seguinte comando no seu terminal para adicionar as regras do udev.
|
||||
install-info_udev-rules_modal_button = Fechar
|
||||
install-info_udev-rules_modal-dont-show-again_checkbox = Não mostrar novamente
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Bem-vindo ao SlimeVR
|
||||
@@ -1407,7 +1360,6 @@ onboarding-user_height-description = Precisamos da sua altura para calcular as p
|
||||
onboarding-user_height-need_head_tracker = É necessário um headset e controles com rastreamento posicional para realizar a calibração.
|
||||
onboarding-user_height-calculate = Calcular minha altura automaticamente
|
||||
onboarding-user_height-next_step = Continuar e salvar
|
||||
onboarding-user_height-prev_step = Voltar
|
||||
onboarding-user_height-manual-proportions = Proporções Manuais
|
||||
onboarding-user_height-calibration-title = Progresso da Calibração
|
||||
onboarding-user_height-calibration-RECORDING_FLOOR = Toque o chão com a ponta do seu controle
|
||||
@@ -1563,7 +1515,6 @@ firmware_tool-flashing_step-description = Seus trackers estão atualizando, por
|
||||
firmware_tool-flashing_step-warning-v2 = Não desconecte nem desligue o tracker durante o processo de envio, a menos que seja instruído a fazê-lo, pois isso pode tornar sua placa inutilizável
|
||||
firmware_tool-flashing_step-flash_more = Atualizar mais trackers
|
||||
firmware_tool-flashing_step-exit = Sair
|
||||
firmware_tool-flashing_step-onboarding_continue = Continuar
|
||||
|
||||
## firmware tool build status
|
||||
|
||||
@@ -1704,8 +1655,6 @@ tracking_checklist-FULL_RESET-desc = Alguns trackers precisam que uma redefiniç
|
||||
tracking_checklist-STEAMVR_DISCONNECTED = O SteamVR não está em execução
|
||||
tracking_checklist-STEAMVR_DISCONNECTED-desc = O SteamVR não está em execução. Você está usando ele para VR?
|
||||
tracking_checklist-STEAMVR_DISCONNECTED-open = Iniciar o SteamVR
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED-desc = Você ativou os Trackers de mãos virtuais do SteamVR. Isso fará com que os comandos feitos por meio de botões não funcionem no SteamVR e nos jogos.
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED-go = Desabilitá-los
|
||||
tracking_checklist-TRACKERS_REST_CALIBRATION = Calibre seus trackers
|
||||
tracking_checklist-TRACKERS_REST_CALIBRATION-desc = Você não realizou a calibração dos trackers. Por favor, deixe os trackers (destacados em amarelo) repousarem sobre uma superfície estável por alguns segundos.
|
||||
tracking_checklist-TRACKER_ERROR = Trackers com Erros
|
||||
|
||||
@@ -917,11 +917,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Пропустить настройку
|
||||
onboarding-setup_warning-cancel = Продолжить настройку
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Вернуться к введению
|
||||
onboarding-wifi_creds-skip = Пропустить настройки Wi-Fi
|
||||
onboarding-wifi_creds-submit = Отправить!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -957,9 +955,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Вы должны быть в позе, как будто вы катаетесь на лыжах, как показано в мастере автоматического монтажа крепления, и у вас есть 3-секундная задержка (настраиваемая) перед тем, как она сработает.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Добро пожаловать в SlimeVR
|
||||
|
||||
@@ -839,11 +839,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Hoppa över inställning
|
||||
onboarding-setup_warning-cancel = Fortsätt inställning
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Gå tillbaka till introduktion
|
||||
onboarding-wifi_creds-skip = Hoppa över Wi-Fi inställningar.
|
||||
onboarding-wifi_creds-submit = Överlämna!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -866,9 +864,6 @@ onboarding-reset_tutorial-0 =
|
||||
|
||||
Detta gör att spårarna vänds i samma riktning som ditt headset (HMD).
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Välkommen till SlimeVR
|
||||
|
||||
@@ -954,11 +954,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = ข้ามการตั้งค่า
|
||||
onboarding-setup_warning-cancel = ดำเนินการตั้งค่าต่อ
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = กลับไปที่หน้าบทนำ
|
||||
onboarding-wifi_creds-v2 = แทร็กเกอร์ที่ใช้ Wi-Fi
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
@@ -1003,9 +1001,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
คุณต้องอยู่ในท่าเล่นสกีตามที่แสดงในตัวช่วยตั้งค่า โดยจะนับถอยหลังใน 3 วินาที (สามารถกำหนดได้) ก่อนที่การรีเซ็ตจะเกิดขึ้น
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = ยินดีต้อนรับสู่ SlimeVR!
|
||||
|
||||
@@ -7,194 +7,68 @@
|
||||
|
||||
## Websocket (server) status
|
||||
|
||||
websocket-connecting = Sunucuya bağlanılıyor...
|
||||
websocket-connecting = Sunucuya bağlanılıyor
|
||||
websocket-connection_lost = Sunucuyla bağlantı kesildi. Tekrar bağlanılmaya çalışılıyor...
|
||||
websocket-connection_lost-desc = SlimeVR sunucusu çöktü. Kayıtları kontrol edip programı yeniden başlat.
|
||||
websocket-timedout = Sunucuya bağlanılamadı
|
||||
websocket-timedout-desc = SlimeVR sunucusu çöktü veya zaman aşımına uğradı. Kayıtları kontrol et ve programı yeniden başlat.
|
||||
websocket-error-close = SlimeVR'ı kapat
|
||||
websocket-error-logs = Kayıtlar klasörünü aç
|
||||
|
||||
## Update notification
|
||||
|
||||
version_update-title = Yeni sürüm mevcut: { $version }
|
||||
version_update-description = "{ version_update-update }" seçeneğine tıklamak SlimeVR kurulum uygulamasını indirir.
|
||||
version_update-update = Güncelle
|
||||
version_update-close = Kapat
|
||||
|
||||
## Tips
|
||||
|
||||
tips-find_tracker = Hangi takipçi hangisi emin değil misin? Takipçilerden birini hareket ettirerek belirleyebilirsin.
|
||||
tips-do_not_move_heels = Kayıt sırasında ayaklarının hareket etmediğinden emin ol!
|
||||
tips-file_select = Dosyaları sürükleyip bırak veya dosyalarından <u>seç</u>.
|
||||
tips-tap_setup = Menüden seçmek yerine takipçine 2 kez yavaşça dokunarak da seçebilirsin.
|
||||
tips-turn_on_tracker = Resmi SlimeVR takipçisi mi kullanıyorsun? Takipçilerini bilgisayara bağladıktan sonra onları <b><em>açmayı</em></b> unutma!
|
||||
tips-failed_webgl = WebGL başlatılamadı.
|
||||
tips-do_not_move_heels = Kayıt sırasında ayaklarınızın hareket etmediğinden emin olun!
|
||||
|
||||
## Units
|
||||
|
||||
unit-meter = Metre
|
||||
unit-foot = Ayak
|
||||
unit-inch = Inç
|
||||
unit-cm = cm
|
||||
|
||||
## Body parts
|
||||
|
||||
body_part-NONE = Atanmamış
|
||||
body_part-HEAD = Kafa
|
||||
body_part-NECK = Boyun
|
||||
body_part-RIGHT_SHOULDER = Sağ Omuz
|
||||
body_part-RIGHT_UPPER_ARM = Sağ Üst Kol
|
||||
body_part-RIGHT_LOWER_ARM = Sağ Alt Kol
|
||||
body_part-RIGHT_HAND = Sağ El
|
||||
body_part-RIGHT_UPPER_LEG = Sağ Uyluk
|
||||
body_part-RIGHT_LOWER_LEG = Sağ Ayak Bileği
|
||||
body_part-RIGHT_FOOT = Sağ Ayak
|
||||
body_part-UPPER_CHEST = Üst Göğüs
|
||||
body_part-RIGHT_SHOULDER = Sağ omuz
|
||||
body_part-RIGHT_UPPER_ARM = Sağ üst kol
|
||||
body_part-RIGHT_LOWER_ARM = Sağ alt kol
|
||||
body_part-RIGHT_HAND = Sağ el
|
||||
body_part-RIGHT_UPPER_LEG = Sağ uyluk
|
||||
body_part-RIGHT_LOWER_LEG = Sağ ayak bileği
|
||||
body_part-RIGHT_FOOT = Sağ ayak
|
||||
body_part-UPPER_CHEST = Üst göğüs
|
||||
body_part-CHEST = Göğüs
|
||||
body_part-WAIST = Bel
|
||||
body_part-HIP = Kalça
|
||||
body_part-LEFT_SHOULDER = Sol Omuz
|
||||
body_part-LEFT_UPPER_ARM = Sol Üst Kol
|
||||
body_part-LEFT_LOWER_ARM = Sol Alt Kol
|
||||
body_part-LEFT_HAND = Sol El
|
||||
body_part-LEFT_UPPER_LEG = Sol Uyluk
|
||||
body_part-LEFT_LOWER_LEG = Sol Ayak Bileği
|
||||
body_part-LEFT_FOOT = Sol Ayak
|
||||
body_part-LEFT_THUMB_METACARPAL = Sol başparmak metakarpal kemiği
|
||||
body_part-LEFT_THUMB_PROXIMAL = Sol başparmak proksimal kemiği
|
||||
body_part-LEFT_THUMB_DISTAL = Sol başparmak distal falanks kemiği
|
||||
body_part-LEFT_INDEX_PROXIMAL = Sol işaret parmağının proksimal falanks kemiği
|
||||
body_part-LEFT_INDEX_INTERMEDIATE = Sol işaret parmağının orta falanks kemiği
|
||||
body_part-LEFT_INDEX_DISTAL = Sol işaret parmağının distal falanks kemiği
|
||||
body_part-LEFT_MIDDLE_PROXIMAL = Sol orta parmağın proksimal falanks kemiği
|
||||
body_part-LEFT_MIDDLE_INTERMEDIATE = Sol orta parmağın orta falanks kemiği
|
||||
body_part-LEFT_MIDDLE_DISTAL = Sol orta parmağın distal falanks kemiği
|
||||
body_part-LEFT_RING_PROXIMAL = Sol yüzük parmağının proksimal falanks kemiği
|
||||
body_part-LEFT_RING_INTERMEDIATE = Sol yüzük parmağının orta falanks kemiği
|
||||
body_part-LEFT_RING_DISTAL = Sol yüzük parmağının distal falanks kemiği
|
||||
body_part-LEFT_LITTLE_PROXIMAL = Sol küçük parmağın proksimal falanks kemiği
|
||||
body_part-LEFT_LITTLE_INTERMEDIATE = Sol küçük parmağın orta falanks kemiği
|
||||
body_part-LEFT_LITTLE_DISTAL = Sol küçük parmağın distal falanks kemiği
|
||||
body_part-RIGHT_THUMB_METACARPAL = Sağ başparmak metakarpal kemiği
|
||||
body_part-RIGHT_THUMB_PROXIMAL = Sağ başparmağın proksimal falanks kemiği
|
||||
body_part-RIGHT_THUMB_DISTAL = Sağ başparmağın distal falanks kemiği
|
||||
body_part-RIGHT_INDEX_PROXIMAL = Sağ işaret parmağının proksimal falanks kemiği
|
||||
body_part-RIGHT_INDEX_INTERMEDIATE = Sağ işaret parmağının orta falanks kemiği
|
||||
body_part-RIGHT_INDEX_DISTAL = Sağ işaret parmağının distal falanks kemiği
|
||||
body_part-RIGHT_MIDDLE_PROXIMAL = Sağ orta parmağın proksimal falanks kemiği
|
||||
body_part-RIGHT_MIDDLE_INTERMEDIATE = Sağ orta parmağın orta falanks kemiği
|
||||
body_part-RIGHT_MIDDLE_DISTAL = Sağ orta parmağın distal falanks kemiği
|
||||
body_part-RIGHT_RING_PROXIMAL = Sağ yüzük parmağının proksimal falanks kemiği
|
||||
body_part-RIGHT_RING_INTERMEDIATE = Sağ yüzük parmağının orta falanks kemiği
|
||||
body_part-RIGHT_RING_DISTAL = Sağ yüzük parmağının distal falanks kemiği
|
||||
body_part-RIGHT_LITTLE_PROXIMAL = Sağ küçük parmağın proksimal falanks kemiği
|
||||
body_part-RIGHT_LITTLE_INTERMEDIATE = Sağ küçük parmağın orta falanks kemiği
|
||||
body_part-RIGHT_LITTLE_DISTAL = Sağ küçük parmağın distal falanks kemiği
|
||||
body_part-LEFT_SHOULDER = Sol omuz
|
||||
body_part-LEFT_UPPER_ARM = Sol üst kol
|
||||
body_part-LEFT_LOWER_ARM = Sol alt kol
|
||||
body_part-LEFT_HAND = Sol el
|
||||
body_part-LEFT_UPPER_LEG = Sol uyluk
|
||||
body_part-LEFT_LOWER_LEG = Sol ayak bileği
|
||||
body_part-LEFT_FOOT = Sol ayak
|
||||
|
||||
## BoardType
|
||||
|
||||
board_type-UNKNOWN = Bilinmeyen
|
||||
board_type-NODEMCU = NodeMCU
|
||||
board_type-WROOM32 = WROOM32
|
||||
board_type-WEMOSD1MINI = Wemos D1 Mini
|
||||
board_type-TTGO_TBASE = TTGO T-Base
|
||||
board_type-ESP01 = ESP-01
|
||||
board_type-SLIMEVR = SlimeVR
|
||||
board_type-SLIMEVR_DEV = SlimeVR Dev Board
|
||||
board_type-SLIMEVR_V1_2 = SlimeVR v1.2
|
||||
board_type-LOLIN_C3_MINI = Lolin C3 Mini
|
||||
board_type-BEETLE32C3 = Beetle ESP32-C3
|
||||
board_type-ESP32C3DEVKITM1 = Espressif ESP32-C3 DevKitM-1
|
||||
board_type-OWOTRACK = owoTrack
|
||||
board_type-WRANGLER = Wrangler Joycons
|
||||
board_type-MOCOPI = Sony Mocopi
|
||||
board_type-WEMOSWROOM02 = Wemos Wroom-02 D1 Mini
|
||||
board_type-XIAO_ESP32C3 = Seeed Studio XIAO ESP32C3
|
||||
board_type-HARITORA = Haritora
|
||||
board_type-ESP32C6DEVKITC1 = Espressif ESP32-C6 DevKitC-1
|
||||
board_type-GLOVE_IMU_SLIMEVR_DEV = SlimeVR Dev IMU Eldiveni
|
||||
board_type-GESTURES = Hareketler
|
||||
board_type-ESP32S3_SUPERMINI = ESP32-S3 Supermini
|
||||
board_type-GENERIC_NRF = Jenerik nRF
|
||||
board_type-SLIMEVR_BUTTERFLY_DEV = SlimeVR Dev Butterfly
|
||||
board_type-SLIMEVR_BUTTERFLY = SlimeVR Butterfly
|
||||
|
||||
## Proportions
|
||||
|
||||
skeleton_bone-NONE = Yok
|
||||
skeleton_bone-HEAD = Kafa Hizası
|
||||
skeleton_bone-HEAD-desc =
|
||||
Bu, kulaklığın ile başının ortası arasındaki mesafedir.
|
||||
Ayarlamak için, 'hayır' der gibi başını soldan sağa ve sağdan sola salla,
|
||||
diğer takipçiler yerinden oynamayana kadar bunu tekrarlayıp ayarla.
|
||||
skeleton_bone-HEAD = Kafa hizası
|
||||
skeleton_bone-NECK = Boyun Uzunluğu
|
||||
skeleton_bone-NECK-desc =
|
||||
Bu, başının ortasından boynunun başlangıcına kadar olan mesafedir.
|
||||
Ayarlamak için başını 'evet' der gibi yukarı-aşağı hareket ettir veya başını hafifçe öne eğip, başını sola ve sağa kaydır,
|
||||
diğer takipçiler yerinden oynamayana kadar bunu tekrarlayıp ayarla.
|
||||
skeleton_bone-torso_group = Gövde Uzunluğu
|
||||
skeleton_bone-torso_group-desc =
|
||||
Bu, boynunun başlangıcından kalçalarına kadar olan mesafedir.
|
||||
Ayarlamak için dik dur ve sanal kalçaların, gerçek kalçalarınla hizalanana kadar değeri değiştir.
|
||||
skeleton_bone-torso_group = Gövde uzunluğu
|
||||
skeleton_bone-UPPER_CHEST = Üst Göğüs Uzunluğu
|
||||
skeleton_bone-UPPER_CHEST-desc =
|
||||
Bu, boynunun başlangıcından göğsünün ortasına kadar olan mesafedir.
|
||||
Gövde uzunluğunu doğru şekilde ayarlayıp (otururken, eğilirken, uzanırken vb. duruşlarda) sanal omurgan,
|
||||
gerçek omurganla eşleşene kadar bu değeri değiştir.
|
||||
skeleton_bone-CHEST_OFFSET = Göğüs Hizası
|
||||
skeleton_bone-CHEST_OFFSET-desc =
|
||||
Bu, bazı oyun veya uygulamalarda kalibrasyona yardımcı olmak için,
|
||||
sanal göğüs takipçisini yukarı ya da aşağı hareket ettirmene izin verir.
|
||||
skeleton_bone-CHEST_OFFSET = Göğüs hizası
|
||||
skeleton_bone-CHEST = Göğüs Uzunluğu
|
||||
skeleton_bone-CHEST-desc =
|
||||
Bu, göğsünün ortasından omurganın ortasına kadar olan mesafedir.
|
||||
Gövde uzunluğunu doğru şekilde ayarlayıp (otururken, eğilirken, uzanırken vb. duruşlarda) sanal omurgan,
|
||||
gerçek omurganla eşleşene kadar bu değeri değiştir.
|
||||
skeleton_bone-WAIST = Bel Uzunluğu
|
||||
skeleton_bone-WAIST-desc =
|
||||
Bu, omurganın ortasından göbek deliğine kadar olan mesafedir.
|
||||
Gövde uzunluğunu doğru şekilde ayarlayıp (otururken, eğilirken, uzanırken vb. duruşlarda) sanal omurgan,
|
||||
gerçek omurganla eşleşene kadar bu değeri değiştir.
|
||||
skeleton_bone-HIP = Kalça Uzunluğu
|
||||
skeleton_bone-HIP-desc =
|
||||
Bu, göbek deliğinden kalçalarına kadar olan mesafedir.
|
||||
Gövde uzunluğunu doğru şekilde ayarlayıp (otururken, eğilirken, uzanırken vb. duruşlarda) sanal omurgan,
|
||||
gerçek omurganla eşleşene kadar bu değeri değiştir.
|
||||
skeleton_bone-HIP_OFFSET = Kalça Hizası
|
||||
skeleton_bone-HIP_OFFSET-desc =
|
||||
Bu, bazı oyun veya uygulamalarda kalibrasyona yardımcı olmak için,
|
||||
sanal kalça takipçisini yukarı ya da aşağı hareket ettirmene izin verir.
|
||||
skeleton_bone-HIP_OFFSET = Kalça hizası
|
||||
skeleton_bone-HIPS_WIDTH = Kalça Genişliği
|
||||
skeleton_bone-HIPS_WIDTH-desc =
|
||||
Bu, bacaklarının başladığı noktalar arasındaki mesafedir.
|
||||
Ayarlamak için bacaklarını düz tutarak tam bir sıfırlama yap ve,
|
||||
sanal bacaklarının aralığı, gerçek bacaklarının aralığıyla hizalanana kadar bu değeri değiştir.
|
||||
skeleton_bone-leg_group = Bacak uzunluğu
|
||||
skeleton_bone-leg_group-desc =
|
||||
Bu, kalçandan ayaklarına olan mesafedir.
|
||||
Ayarlamak için Gövde uzunluğunu doğru şekilde ayarla ve,
|
||||
sanal ayakların gerçek ayaklarınla aynı seviyeye gelene kadar bu değeri değiştir.
|
||||
skeleton_bone-UPPER_LEG = Üst Bacak Uzunluğu
|
||||
skeleton_bone-UPPER_LEG-desc =
|
||||
Bu, kalçandan dizlerine olan mesafedir.
|
||||
Ayarlamak için Bacak uzunluğunu doğru şekilde ayarla ve,
|
||||
sanal dizlerin gerçek dizlerinle aynı seviyeye gelene kadar bu değeri değiştir.
|
||||
skeleton_bone-LOWER_LEG = Alt Bacak Uzunluğu
|
||||
skeleton_bone-LOWER_LEG-desc =
|
||||
Bu, dizlerinden ayak bileklerine olan mesafedir.
|
||||
Ayarlamak için Bacak uzunluğunu doğru şekilde ayarla ve,
|
||||
sanal dizlerin gerçek dizlerinle aynı seviyeye gelene kadar bu değeri değiştir.
|
||||
skeleton_bone-FOOT_LENGTH = Ayak Uzunluğu
|
||||
skeleton_bone-FOOT_LENGTH-desc =
|
||||
Bu, ayak bileklerinden ayak parmaklarına olan mesafedir.
|
||||
Ayarlamak için parmak uçlarına çık ve sanal ayakların sabit kalana kadar bu değeri değiştir.
|
||||
skeleton_bone-FOOT_SHIFT = Ayak hizası
|
||||
skeleton_bone-FOOT_SHIFT-desc =
|
||||
Bu değer, dizinden ayak bileğine olan yatay mesafedir.
|
||||
Bu, dik dururken alt bacaklarının geriye doğru konumlanmasını telafi eder.
|
||||
Ayarlamak için Ayak uzunluğunu 0 olarak ayarla, tam sıfırlama yap ve,
|
||||
sanal ayakların ayak bileklerinin ortasıyla hizalanana kadar bu değeri değiştir.
|
||||
skeleton_bone-SKELETON_OFFSET = İskelet hizası
|
||||
skeleton_bone-SHOULDERS_DISTANCE = Omuz Mesafesi
|
||||
skeleton_bone-SHOULDERS_WIDTH = Omuz Genişliği
|
||||
@@ -206,10 +80,7 @@ skeleton_bone-ELBOW_OFFSET = Dirsek hizası
|
||||
## Tracker reset buttons
|
||||
|
||||
reset-reset_all = Tüm oranları sıfırla
|
||||
reset-reset_all_warning-cancel = İptal et
|
||||
reset-full = Sıfırlama
|
||||
reset-mounting-feet = Ayak Kalibrasyonu
|
||||
reset-mounting-fingers = Parmak Kalibrasyonu
|
||||
|
||||
## Serial detection stuff
|
||||
|
||||
@@ -257,13 +128,10 @@ widget-developer_mode-more_info = Daha fazla bilgi
|
||||
## Widget: IMU Visualizer
|
||||
|
||||
widget-imu_visualizer = Rotasyon
|
||||
widget-imu_visualizer-preview = Önizle
|
||||
widget-imu_visualizer-hide = Gizle
|
||||
widget-imu_visualizer-rotation_preview = Önizle
|
||||
|
||||
## Widget: Skeleton Visualizer
|
||||
|
||||
widget-skeleton_visualizer-hide = Gizle
|
||||
|
||||
## Tracker status
|
||||
|
||||
@@ -272,7 +140,6 @@ tracker-status-busy = Meşgul
|
||||
tracker-status-error = Hata
|
||||
tracker-status-disconnected = Bağlantı kesildi
|
||||
tracker-status-ok = İYİ
|
||||
tracker-status-timed_out = Zaman aşımı
|
||||
|
||||
## Tracker status columns
|
||||
|
||||
@@ -426,18 +293,12 @@ settings-osc-vrchat-network-address = Ağ adresi
|
||||
## Setup/onboarding menu
|
||||
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
|
||||
## Mounting setup
|
||||
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
|
||||
|
||||
@@ -612,11 +612,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Пропустити налаштування
|
||||
onboarding-setup_warning-cancel = Продовжити налаштування
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Повернутися до вступу
|
||||
onboarding-wifi_creds-skip = Пропустити налаштування Wi-Fi
|
||||
onboarding-wifi_creds-submit = Підтвердити!
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -651,9 +649,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Вам потрібно бути в позі, ніби ви катаєтеся на лижах, як показано на майстрі автоматичної прив'язки положення. У вас є затримка у 3 секунди (можна налаштувати), перш ніж спрацює скидання.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Ласкаво просимо до SlimeVR
|
||||
|
||||
@@ -649,11 +649,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = Bỏ qua cài đặt
|
||||
onboarding-setup_warning-cancel = Tiếp tục thiết lập
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = Quay lại giới thiệu
|
||||
onboarding-wifi_creds-skip = Bỏ qua cài đặt Wi-Fi
|
||||
onboarding-wifi_creds-submit = Gửi
|
||||
onboarding-wifi_creds-ssid =
|
||||
@@ -688,9 +686,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
Bạn cần phải ở trên một tư thế như bạn đang trượt tuyết như nó được hiển thị trên trình hướng dẫn gắn tự động và bạn có độ trễ 3 giây (có thể định cấu hình) trước khi nó được kích hoạt.
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Chào mừng bạn đến với SlimeVR!
|
||||
|
||||
@@ -955,47 +955,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = 跳过设置
|
||||
onboarding-setup_warning-cancel = 继续设置
|
||||
|
||||
## Quiz
|
||||
|
||||
onboarding-quiz_continue = 继续
|
||||
onboarding-quiz_back = 返回
|
||||
onboarding-quiz-more_sets_modal-title = 已经连接好所有的追踪器了吗?
|
||||
onboarding-quiz-more_sets_modal-desc = 如有不同类型的追踪器,现在可以继续进行连接
|
||||
onboarding-quiz-more_sets_modal-confirm = 所有的追踪器都连接好了
|
||||
onboarding-quiz-more_sets_modal-cancel = 还需要连接更多追踪器
|
||||
onboarding-quiz-slimeset-title = 将要连接什么类型的追踪器?
|
||||
onboarding-quiz-slimeset-description = 如果有多组不同类型的追踪器,稍后将会继续连接其余类型
|
||||
onboarding-quiz-slimeset-official-sets = 官方SlimeVR追踪器
|
||||
onboarding-quiz-slimeset-thirdparty-sets = 第三方或DIY追踪器
|
||||
onboarding-quiz-slimeset-answer-regular = SlimeVR V1.0 和 V1.2
|
||||
onboarding-quiz-slimeset-answer-butterfly = Butterfly (蝴蝶)
|
||||
onboarding-quiz-slimeset-answer-wifi = 通过ESP/WiFi连接的追踪器
|
||||
onboarding-quiz-slimeset-answer-dongle = 通过USB接收器连接的追踪器
|
||||
onboarding-quiz-usage-title = 将使用SlimeVR进行何种应用?
|
||||
onboarding-quiz-usage-description = 如果打算将SlimeVR用至不同用途,可之后在设置中进行修改。
|
||||
onboarding-quiz-usage-answer-VRC = VR游戏(如VRChat)
|
||||
onboarding-quiz-usage-answer-mocap_vtubing = 动作捕捉与虚拟偶像直播
|
||||
onboarding-quiz-runtime-title = 将通过SteamVR运行游戏,还是在直接在头显上运行?
|
||||
onboarding-quiz-runtime-answer-steamvr = SteamVR
|
||||
onboarding-quiz-runtime-answer-standalone = 头显独立运行
|
||||
onboarding-quiz-mocap_preferences-title = 动作捕捉偏好
|
||||
onboarding-quiz-mocap_preferences-desc = 设置使用SlimeVR进行动作捕捉或虚拟偶像直播的方式
|
||||
onboarding-quiz-mocap_preferences-playspace-title = 将在怎样的空间内使用?
|
||||
onboarding-quiz-mocap_preferences-playspace-desc = 如果选择站立使用,SlimeVR会试图追踪你的行走动作,而不是固定在原地。
|
||||
onboarding-quiz-mocap_preferences-playspace-sitting = 坐下
|
||||
onboarding-quiz-mocap_preferences-playspace-standing = 站立
|
||||
onboarding-quiz-mocap_preferences-vrm_model-title = 你有将要使用的VRM模型吗?(可选)
|
||||
onboarding-quiz-mocap_preferences-vrm_model-desc = 加载VRM模型将提升跟踪质量,并与使用VMC的应用程序兼容。
|
||||
onboarding-quiz-mocap_preferences-head_tracker-title = 你头上戴着追踪器或VR头显吗?
|
||||
onboarding-quiz-mocap_preferences-head_tracker-yes = 是
|
||||
onboarding-quiz-mocap_preferences-head_tracker-no = 否
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-title = 你的头部追踪器放在哪里?
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-forehead = 额头
|
||||
onboarding-quiz-mocap_preferences-head_tracker_location-face = 脸
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back-v2 = 返回
|
||||
onboarding-wifi_creds-back = 返回简介
|
||||
onboarding-wifi_creds-v2 = 通过 Wi-Fi 连接
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
@@ -1042,13 +1004,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
你需要摆出一个像滑雪那样的姿势,就像在运行自动设置佩戴向导时做的那样,在重置实际发生前有 3 秒延迟(可配置)。
|
||||
|
||||
## Install info
|
||||
|
||||
install-info_udev-rules_modal_title = 未找到硬件udev访问规则
|
||||
install-info_udev-rules_warning = 通过udev设置访问规则是串口控制台访问和USB接收器连接的必需条件。将以下命令粘贴到终端并执行,以添加udev规则。
|
||||
install-info_udev-rules_modal_button = 关闭
|
||||
install-info_udev-rules_modal-dont-show-again_checkbox = 不再显示
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = 欢迎来到 SlimeVR
|
||||
@@ -1376,7 +1331,6 @@ onboarding-user_height-description = 我们需要你的身高来计算躯干比
|
||||
onboarding-user_height-need_head_tracker = 进行校准需要具备定位功能的头戴显示器与控制器。
|
||||
onboarding-user_height-calculate = 自动计算我的身高
|
||||
onboarding-user_height-next_step = 保存并继续
|
||||
onboarding-user_height-prev_step = 返回
|
||||
onboarding-user_height-manual-proportions = 手动调整躯干比例
|
||||
onboarding-user_height-calibration-title = 校准进度
|
||||
onboarding-user_height-calibration-RECORDING_FLOOR = 用控制器的前端触碰地面
|
||||
@@ -1526,7 +1480,6 @@ firmware_tool-flashing_step-description = 正在向追踪器烧录固件,请
|
||||
firmware_tool-flashing_step-warning-v2 = 除非特别指示,在固件传输过程中请勿断开或关闭追踪器,否则可能会导致您的电路板无法使用
|
||||
firmware_tool-flashing_step-flash_more = 烧录更多的追踪器
|
||||
firmware_tool-flashing_step-exit = 退出
|
||||
firmware_tool-flashing_step-onboarding_continue = 继续
|
||||
|
||||
## firmware tool build status
|
||||
|
||||
@@ -1662,9 +1615,6 @@ tracking_checklist-FULL_RESET-desc = 有些追踪器需要进行重置
|
||||
tracking_checklist-STEAMVR_DISCONNECTED = SteamVR 未在运行
|
||||
tracking_checklist-STEAMVR_DISCONNECTED-desc = SteamVR 未在运行。你要将追踪器用于 VR 吗?
|
||||
tracking_checklist-STEAMVR_DISCONNECTED-open = 启动 SteamVR
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED = 手部追踪器已开启
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED-desc = 你已经启用了SteamVR的虚拟手部追踪器。这会导致SteamVR和游戏中的按键输入无法使用。
|
||||
tracking_checklist-STEAMVR_HANDS_ENABLED-go = 关闭它们
|
||||
tracking_checklist-TRACKERS_REST_CALIBRATION = 校准追踪器
|
||||
tracking_checklist-TRACKERS_REST_CALIBRATION-desc = 您尚未执行追踪器校准。请将(黄色高亮显示的)追踪器放置在平稳表面上,并静置数秒。
|
||||
tracking_checklist-TRACKER_ERROR = 追踪器出现错误
|
||||
|
||||
@@ -957,11 +957,9 @@ onboarding-setup_warning =
|
||||
onboarding-setup_warning-skip = 跳過設定
|
||||
onboarding-setup_warning-cancel = 繼續設定
|
||||
|
||||
## Quiz
|
||||
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
onboarding-wifi_creds-back = 返回簡介
|
||||
onboarding-wifi_creds-v2 = 透過 Wi-Fi 連接
|
||||
# This cares about multilines
|
||||
onboarding-wifi_creds-description-v2 =
|
||||
@@ -1008,9 +1006,6 @@ onboarding-reset_tutorial-2 =
|
||||
|
||||
做此校正時需要進行滑雪姿勢,如自動配戴校正的畫面所示。在觸發 3 秒後(可修改)才會真正進行重置。
|
||||
|
||||
## Install info
|
||||
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = 歡迎來到 SlimeVR
|
||||
|
||||
@@ -19,7 +19,7 @@ import { ArrowDownIcon, ArrowUpIcon } from './icon/ArrowIcons';
|
||||
import { a11yClick } from '@/utils/a11y';
|
||||
import { createPortal } from 'react-dom';
|
||||
|
||||
export type DropdownItem = {
|
||||
type DropdownItem = {
|
||||
value: string;
|
||||
label: ReactNode;
|
||||
};
|
||||
|
||||
@@ -93,10 +93,9 @@ export const FileInputContentFile = ({
|
||||
</div>
|
||||
<span className="flex-grow" />
|
||||
<a
|
||||
href=""
|
||||
href="#"
|
||||
className="h-12 w-12 hover:bg-accent-background-20 cursor-pointer"
|
||||
onClick={(ev) => {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
onClearPicker();
|
||||
}}
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
export function VMCIcon() {
|
||||
export function VMCIcon({ width }: { width?: number }) {
|
||||
return (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-38 0 409 155">
|
||||
<svg
|
||||
id="svg5"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlnsXlink="http://www.w3.org/1999/xlink"
|
||||
x={0}
|
||||
y={0}
|
||||
width={width ?? 'fit-content'}
|
||||
viewBox="-38 0 409 155"
|
||||
xmlSpace="preserve"
|
||||
>
|
||||
<style>
|
||||
{
|
||||
'.st1,.st3{stroke:#000;stroke-width:13}.st3{display:inline;fill:none;stroke-width:12.9402;stroke-miterlimit:11.3386}'
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
export function VRCIcon() {
|
||||
export function VRCIcon({ width }: { width?: number }) {
|
||||
return (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 824 824">
|
||||
<svg
|
||||
viewBox="100 100 824 824"
|
||||
width={width ?? 'fit-content'}
|
||||
className="fill-background-10"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path d="M246.1 418.9h531.8c8.4 0 16 3.4 21.5 8.9s8.9 13.1 8.9 21.5v125.4c0 8.4-3.4 16-8.9 21.5-4.8 4.8-11.1 8-18.1 8.7v46.3c0 10.9-8.8 19-19.5 15.1-3.8-1.4-7.9-4.6-11.9-9.9L709.6 605H246.1c-8.4 0-16-3.4-21.5-8.9s-8.9-13.1-8.9-21.5V449.3c0-8.4 3.4-16 8.9-21.5s13.1-8.9 21.5-8.9zm523.8 174.8h8c5.2 0 10-2.1 13.5-5.6 3.5-3.5 5.6-8.2 5.6-13.5V449.3c0-5.2-2.1-10-5.6-13.5-3.5-3.5-8.2-5.6-13.5-5.6H246.1c-5.2 0-10 2.1-13.5 5.6-3.5 3.5-5.6 8.2-5.6 13.5v125.4c0 5.2 2.1 10 5.6 13.5 3.5 3.5 8.2 5.6 13.5 5.6h469.4c15.8 19.8 31.1 40 46.9 59.8 2.5 3.3 7.7 3.9 7.6-2.5v-57.4h-.1zm-132.3-67.1h23.9l-12-42.2-11.9 42.2zm110.8-74.2H460.6c-10.8 0-19.6 8.8-19.6 19.6v79.7c0 10.8 8.8 19.6 19.6 19.6h287.8c10.8 0 19.6-8.8 19.6-19.6V472c0-10.7-8.8-19.6-19.6-19.6zm-270.3 91.4c2.5 2.6 6.2 3.9 10.9 3.9 3.1 0 5.6-.5 7.4-1.5 1.8-1 3.2-2.2 4.1-3.7.9-1.5 1.5-3.1 1.9-4.7.3-1.7.5-3.3.6-4.7.2-2.1 1.1-3.6 2.8-4.4 1.7-.8 3.7-1.2 6.1-1.2 3.1 0 5.4.6 6.9 1.8 1.5 1.2 2.2 3.5 2.2 7 0 4.1-.8 7.9-2.4 11.3-1.6 3.4-3.9 6.3-6.8 8.6s-6.4 4.1-10.5 5.4c-4 1.3-8.4 1.9-13.2 1.9-4.3 0-8.4-.6-12.2-1.7-3.9-1.1-7.2-3-10.1-5.4-2.9-2.5-5.2-5.7-6.8-9.7-1.7-4-2.5-8.9-2.5-14.7v-38.4c0-5.8.8-10.7 2.5-14.7s4-7.2 6.9-9.7c2.9-2.5 6.3-4.3 10.1-5.4 3.9-1.1 7.9-1.7 12.2-1.7 4.8 0 9.2.6 13.2 1.9 4 1.2 7.5 3 10.4 5.2 2.9 2.2 5.1 5 6.7 8.3 1.6 3.3 2.4 6.9 2.4 10.8 0 3.6-.7 5.9-2.2 7.1-1.5 1.1-3.7 1.7-6.7 1.7-2.6 0-4.7-.4-6.3-1.2-1.7-.8-2.5-2.3-2.6-4.4-.1-1.1-.3-2.4-.6-3.9s-.9-3-1.9-4.5c-1-1.5-2.4-2.7-4.2-3.7-1.8-1-4.4-1.5-7.7-1.5-4.7 0-8.3 1.3-10.7 3.9-2.5 2.6-3.7 6.6-3.7 12v38.4c0 5.1 1.3 9.1 3.8 11.6zm122.7 13.1c0 1.8-.9 3.2-2.8 4.2s-3.9 1.4-6.1 1.4c-2.3 0-4.4-.5-6.2-1.4-1.8-1-2.8-2.4-2.8-4.2v-39.5h-31v39.5c0 1.8-.9 3.2-2.8 4.2s-3.9 1.4-6.1 1.4c-2.3 0-4.4-.5-6.2-1.4-1.8-1-2.8-2.4-2.8-4.2v-89.4c0-1.9.9-3.3 2.8-4.2 1.8-.9 3.9-1.3 6.2-1.3 2.2 0 4.2.4 6.1 1.3 1.9.9 2.8 2.3 2.8 4.2v35.9h31v-35.9c0-1.9.9-3.3 2.8-4.2 1.8-.9 3.9-1.3 6.2-1.3 2.2 0 4.2.4 6.1 1.3 1.9.9 2.8 2.3 2.8 4.2v89.4zm86 1.2c-.7.9-1.7 1.7-2.8 2.3-1.1.7-2.3 1.2-3.6 1.6-1.3.4-2.6.6-3.8.6-1.6 0-2.9-.3-3.9-.8-1.1-.6-1.8-1.5-2.1-2.8l-5.2-18.3h-31.5l-5.2 18.3c-.4 1.3-1.1 2.2-2.1 2.8-1.1.5-2.4.8-3.9.8-1.2 0-2.5-.2-3.8-.6-1.3-.4-2.5-.9-3.6-1.5s-2-1.4-2.8-2.3c-.7-.9-1.1-1.9-1.1-3 0-.2.1-.6.3-1.4l26.6-86.5c.6-2.1 2.1-3.6 4.3-4.6 2.2-1 4.6-1.4 7.2-1.4 2.7 0 5.1.5 7.3 1.4 2.2 1 3.6 2.5 4.3 4.6l26.6 86.5c.2.7.3 1.2.3 1.4-.4 1-.7 2-1.5 2.9zm65-82.5c-1 1.7-2.4 2.5-4.2 2.5h-20.1v78.8c0 1.8-.9 3.2-2.8 4.2s-3.9 1.4-6.1 1.4c-2.3 0-4.4-.5-6.2-1.4-1.8-1-2.8-2.4-2.8-4.2v-78.8h-20.2c-1.8 0-3.2-.8-4.2-2.4-1-1.6-1.4-3.5-1.4-5.7 0-1.9.5-3.7 1.4-5.4.9-1.7 2.3-2.5 4.3-2.5h58.2c1.9 0 3.3.8 4.3 2.5.9 1.7 1.4 3.5 1.4 5.4-.2 2.1-.7 3.9-1.6 5.6zm-495.2-4.8 26.6 86.5c.7 2.1 2.2 3.6 4.3 4.6 2.2 1 4.6 1.4 7.2 1.4 2.7 0 5.1-.5 7.3-1.4 2.2-1 3.6-2.5 4.3-4.6l26.4-86.5c.2-.7.3-1.2.3-1.4 0-1.1-.4-2.1-1.1-3-.7-.9-1.7-1.7-2.8-2.3-1.1-.7-2.3-1.2-3.6-1.6-1.3-.4-2.6-.5-3.8-.5-1.6 0-2.9.3-3.9.8-1.1.5-1.8 1.5-2.1 2.8l-20.9 74.6-21-74.6c-.4-1.3-1.1-2.2-2.1-2.8-1.1-.6-2.4-.8-3.9-.8-1.2 0-2.5.2-3.8.5-1.3.4-2.5.9-3.6 1.5s-2 1.4-2.8 2.3c-.7.9-1.1 1.9-1.1 3-.2.3-.1.7.1 1.5zm86.9-3.3c0-1.5.5-2.8 1.6-3.9s2.5-1.7 4.2-1.7h27.2c4.5 0 8.7.5 12.7 1.4 3.9 1 7.4 2.5 10.4 4.7s5.3 5.1 7 8.8c1.7 3.7 2.5 8.3 2.5 13.8 0 7.9-1.7 14.1-5.2 18.5-3.4 4.4-7.7 7.5-12.9 9l18 33.4c.3.4.5.8.5 1.2.1.4.1.8.1 1 0 1.1-.3 2.2-1 3.4-.7 1.1-1.6 2.2-2.6 3-1.1.9-2.2 1.6-3.6 2.1-1.3.6-2.6.8-3.9.8-1.3 0-2.5-.4-3.5-1.1-1.1-.7-1.9-1.8-2.7-3.2l-19.5-38h-11.6v35.9c0 1.8-.9 3.2-2.8 4.2-1.8 1-3.9 1.4-6.2 1.4-2.2 0-4.2-.5-6.1-1.4-1.9-1-2.8-2.4-2.8-4.2v-89.1h.2zm17.9 10.2V507h15.1c4.5 0 8.1-1.1 10.7-3.2 2.7-2.2 4-5.9 4-11.3s-1.3-9.2-4-11.4c-2.7-2.2-6.2-3.3-10.7-3.3h-15.1v-.1z" />
|
||||
</svg>
|
||||
);
|
||||
|
||||
@@ -36,7 +36,7 @@ export function FlashingStep({
|
||||
const { l10n } = useLocalization();
|
||||
const { selectedDevices, selectDevices, files, selectedDefault } =
|
||||
useFirmwareTool();
|
||||
const { state: onboardingState } = useOnboarding();
|
||||
const { state: onboardingState, state } = useOnboarding();
|
||||
const { sendRPCPacket, useRPCPacket } = useWebsocketAPI();
|
||||
const [status, setStatus] = useState<{
|
||||
[key: string]: {
|
||||
@@ -203,15 +203,28 @@ export function FlashingStep({
|
||||
onClick={() => goTo('FlashingMethod')}
|
||||
/>
|
||||
</Localized>
|
||||
<Localized id="firmware_tool-flashing_step-exit">
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={() => {
|
||||
clear();
|
||||
nav('/');
|
||||
}}
|
||||
/>
|
||||
</Localized>
|
||||
{state.alonePage && (
|
||||
<Localized id="firmware_tool-flashing_step-exit">
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={() => {
|
||||
clear();
|
||||
nav('/');
|
||||
}}
|
||||
/>
|
||||
</Localized>
|
||||
)}
|
||||
{!state.alonePage && (
|
||||
<Localized id="firmware_tool-flashing_step-onboarding_continue">
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={() => {
|
||||
clear();
|
||||
nav('/onboarding/trackers-assign');
|
||||
}}
|
||||
/>
|
||||
</Localized>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,20 +4,13 @@ import { Button } from '@/components/commons/Button';
|
||||
import { SlimeVRIcon } from '@/components/commons/icon/SimevrIcon';
|
||||
import { LangSelector } from '@/components/commons/LangSelector';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
export function HomePage() {
|
||||
const nav = useNavigate();
|
||||
const { l10n } = useLocalization();
|
||||
const { applyProgress, onboardingStarted } = useOnboarding();
|
||||
const { applyProgress } = useOnboarding();
|
||||
|
||||
applyProgress(0.1);
|
||||
|
||||
const start = () => {
|
||||
onboardingStarted();
|
||||
nav('/onboarding/quiz/slime-set');
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex relative flex-col gap-5 h-full items-center w-full justify-center px-4 overflow-clip">
|
||||
@@ -26,7 +19,7 @@ export function HomePage() {
|
||||
<Typography variant="mobile-title">
|
||||
{l10n.getString('onboarding-home')}
|
||||
</Typography>
|
||||
<Button variant="primary" onClick={start}>
|
||||
<Button variant="primary" to="/onboarding/quiz/slime-set">
|
||||
{l10n.getString('onboarding-home-start')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -7,18 +7,10 @@ import { useState } from 'react';
|
||||
import { SittingIcon } from '@/components/commons/icon/SittingIcon';
|
||||
import { VMCFileUpload } from '@/components/settings/pages/VMCSettings';
|
||||
import { QuizButton } from './SlimeSetQuestion';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
export function QuizMocapPosQuestion() {
|
||||
const nav = useNavigate();
|
||||
const {
|
||||
applyProgress,
|
||||
setMocapPos,
|
||||
mocapPos,
|
||||
playspace,
|
||||
setPlayspace,
|
||||
onboardingEnded,
|
||||
} = useOnboarding();
|
||||
const { applyProgress, setMocapPos, mocapPos, playspace, setPlayspace } =
|
||||
useOnboarding();
|
||||
|
||||
const [headTracker, setHeadTracker] = useState(true);
|
||||
|
||||
@@ -26,11 +18,6 @@ export function QuizMocapPosQuestion() {
|
||||
|
||||
const canContinue = (!headTracker || mocapPos) && playspace;
|
||||
|
||||
const end = () => {
|
||||
onboardingEnded();
|
||||
nav('/');
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="grid w-full h-full justify-center items-center">
|
||||
<div className="flex flex-col gap-8 max-w-xl p-2">
|
||||
@@ -159,7 +146,7 @@ export function QuizMocapPosQuestion() {
|
||||
variant="primary"
|
||||
id="onboarding-quiz_continue"
|
||||
disabled={!canContinue}
|
||||
onClick={end}
|
||||
to="/"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,14 +7,13 @@ import { useNavigate } from 'react-router-dom';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
|
||||
export function QuizRuntimeQuestion() {
|
||||
const { applyProgress, setVrcOSC, vrcOsc, onboardingEnded } = useOnboarding();
|
||||
const { applyProgress, setVrcOSC, vrcOsc } = useOnboarding();
|
||||
const nav = useNavigate();
|
||||
|
||||
applyProgress(0.9);
|
||||
|
||||
const next = (type: typeof vrcOsc) => {
|
||||
setVrcOSC(type);
|
||||
onboardingEnded();
|
||||
nav('/');
|
||||
};
|
||||
|
||||
|
||||
@@ -100,11 +100,7 @@ export function TrackersAssignPage() {
|
||||
tapDetectionSettings.mountingResetDelay,
|
||||
tapDetectionSettings.mountingResetEnabled,
|
||||
tapDetectionSettings.mountingResetTaps,
|
||||
true,
|
||||
null,
|
||||
tapDetectionSettings.yawResetTracker,
|
||||
tapDetectionSettings.fullResetTracker,
|
||||
tapDetectionSettings.mountingResetTracker
|
||||
true
|
||||
);
|
||||
|
||||
sendRPCPacket(
|
||||
|
||||
@@ -15,8 +15,6 @@ import {
|
||||
SteamVRTrackersSettingT,
|
||||
TapDetectionSettingsT,
|
||||
HIDSettingsT,
|
||||
VelocitySettingsT,
|
||||
BodyPart,
|
||||
} from 'solarxr-protocol';
|
||||
import { useConfig } from '@/hooks/config';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
@@ -48,8 +46,6 @@ import {
|
||||
import { atom, useAtomValue, useSetAtom } from 'jotai';
|
||||
import { isEqual } from '@react-hookz/deep-equal';
|
||||
import { selectAtom } from 'jotai/utils';
|
||||
import { Dropdown } from '@/components/commons/Dropdown';
|
||||
import { ASSIGNMENT_MODES } from '@/components/onboarding/BodyAssignment';
|
||||
|
||||
export type SettingsForm = {
|
||||
trackers: {
|
||||
@@ -103,9 +99,6 @@ export type SettingsForm = {
|
||||
fullResetTaps: number;
|
||||
mountingResetTaps: number;
|
||||
numberTrackersOverThreshold: number;
|
||||
yawResetTracker: string;
|
||||
mountingResetTracker: string;
|
||||
fullResetTracker: string;
|
||||
};
|
||||
legTweaks: {
|
||||
correctionStrength: number;
|
||||
@@ -115,9 +108,6 @@ export type SettingsForm = {
|
||||
hidSettings: {
|
||||
trackersOverHID: boolean;
|
||||
};
|
||||
velocitySettings: {
|
||||
sendDerivedVelocity: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
const defaultValues: SettingsForm = {
|
||||
@@ -169,15 +159,11 @@ const defaultValues: SettingsForm = {
|
||||
fullResetTaps: 3,
|
||||
mountingResetTaps: 3,
|
||||
numberTrackersOverThreshold: 1,
|
||||
yawResetTracker: String(BodyPart.CHEST),
|
||||
mountingResetTracker: String(BodyPart.RIGHT_UPPER_LEG),
|
||||
fullResetTracker: String(BodyPart.LEFT_UPPER_LEG),
|
||||
},
|
||||
legTweaks: { correctionStrength: 0.3 },
|
||||
resetsSettings: defaultResetSettings,
|
||||
stayAligned: defaultStayAlignedSettings,
|
||||
hidSettings: { trackersOverHID: false },
|
||||
velocitySettings: { sendDerivedVelocity: false },
|
||||
};
|
||||
|
||||
const settingsAtom = atom(new SettingsResponseT());
|
||||
@@ -194,13 +180,6 @@ export function GeneralSettings() {
|
||||
const { config } = useConfig();
|
||||
const { currentLocales } = useLocaleConfig();
|
||||
|
||||
const bodyParts: { value: string; label: string }[] = Object.values(BodyPart)
|
||||
.filter((v): v is BodyPart => typeof v === 'number')
|
||||
.filter((v) => ASSIGNMENT_MODES['full-body'].includes(v as BodyPart))
|
||||
.map((value) => ({
|
||||
value: String(value),
|
||||
label: l10n.getString(`body_part-${BodyPart[value]}`),
|
||||
}));
|
||||
const blockHandsWarning = useRef(false);
|
||||
// If not null, warning will be shown, and showHandsWarning will
|
||||
// hold which hands should be toggled ([leftHand, rightHand])
|
||||
@@ -326,13 +305,6 @@ export function GeneralSettings() {
|
||||
tapDetection.yawResetDelay = values.tapDetection.yawResetDelay;
|
||||
tapDetection.yawResetEnabled = values.tapDetection.yawResetEnabled;
|
||||
tapDetection.yawResetTaps = values.tapDetection.yawResetTaps;
|
||||
tapDetection.yawResetTracker = Number(values.tapDetection.yawResetTracker);
|
||||
tapDetection.mountingResetTracker = Number(
|
||||
values.tapDetection.mountingResetTracker
|
||||
);
|
||||
tapDetection.fullResetTracker = Number(
|
||||
values.tapDetection.fullResetTracker
|
||||
);
|
||||
tapDetection.mountingResetEnabled =
|
||||
values.tapDetection.mountingResetEnabled;
|
||||
tapDetection.mountingResetDelay = values.tapDetection.mountingResetDelay;
|
||||
@@ -353,11 +325,6 @@ export function GeneralSettings() {
|
||||
hidSettings.trackersOverHid = values.hidSettings.trackersOverHID;
|
||||
settingsReq.hidSettings = hidSettings;
|
||||
|
||||
const velocitySettings = new VelocitySettingsT();
|
||||
velocitySettings.sendDerivedVelocity =
|
||||
values.velocitySettings.sendDerivedVelocity;
|
||||
settingsReq.velocitySettings = velocitySettings;
|
||||
|
||||
if (values.resetsSettings) {
|
||||
settingsReq.resetsSettings = loadResetSettings(values.resetsSettings);
|
||||
}
|
||||
@@ -449,18 +416,6 @@ export function GeneralSettings() {
|
||||
mountingResetTaps:
|
||||
settings.tapDetectionSettings.mountingResetTaps ||
|
||||
defaultValues.tapDetection.mountingResetTaps,
|
||||
yawResetTracker: String(
|
||||
settings.tapDetectionSettings.yawResetTracker ||
|
||||
defaultValues.tapDetection.yawResetTracker
|
||||
),
|
||||
fullResetTracker: String(
|
||||
settings.tapDetectionSettings.fullResetTracker ||
|
||||
defaultValues.tapDetection.fullResetTracker
|
||||
),
|
||||
mountingResetTracker: String(
|
||||
settings.tapDetectionSettings.mountingResetTracker ||
|
||||
defaultValues.tapDetection.mountingResetTracker
|
||||
),
|
||||
numberTrackersOverThreshold:
|
||||
settings.tapDetectionSettings.numberTrackersOverThreshold ||
|
||||
defaultValues.tapDetection.numberTrackersOverThreshold,
|
||||
@@ -491,12 +446,6 @@ export function GeneralSettings() {
|
||||
};
|
||||
}
|
||||
|
||||
if (settings.velocitySettings) {
|
||||
formData.velocitySettings = {
|
||||
sendDerivedVelocity: settings.velocitySettings.sendDerivedVelocity,
|
||||
};
|
||||
}
|
||||
|
||||
reset({ ...getValues(), ...formData });
|
||||
}, [settings]);
|
||||
|
||||
@@ -923,64 +872,46 @@ export function GeneralSettings() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col pt-2 pb-2">
|
||||
<div className="flex flex-col pt-2">
|
||||
<Typography variant="section-title">
|
||||
{l10n.getString('settings-general-fk_settings-reset_settings')}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 gap-3 pb-3">
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-reset_settings-step_mounting-description'
|
||||
)}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 gap-2 pb-3">
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="resetsSettings.stepMounting"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-reset_settings-step_mounting'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 gap-3 pb-3">
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-reset_settings-reset_hmd_pitch-description'
|
||||
)}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 gap-3 pb-3">
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="resetsSettings.resetHmdPitch"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-reset_settings-reset_hmd_pitch'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 gap-3 pb-3">
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-leg_fk-reset_mounting_feet-description-v1'
|
||||
)}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 gap-3 pb-3">
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="resetsSettings.resetMountingFeet"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-leg_fk-reset_mounting_feet-v1'
|
||||
)}
|
||||
/>
|
||||
<div className="flex flex-col pt-2 pb-3">
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
<div className="flex flex-col gap-2">
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-reset_settings-reset_hmd_pitch-description'
|
||||
)}
|
||||
</Typography>
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="resetsSettings.resetHmdPitch"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-reset_settings-reset_hmd_pitch'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col gap-2 justify-end">
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-leg_fk-reset_mounting_feet-description-v1'
|
||||
)}
|
||||
</Typography>
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="resetsSettings.resetMountingFeet"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-leg_fk-reset_mounting_feet-v1'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -1085,32 +1016,6 @@ export function GeneralSettings() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col pt-2 pb-1">
|
||||
<Typography variant="section-title">
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-velocity_settings'
|
||||
)}
|
||||
</Typography>
|
||||
<div className="pt-2">
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-velocity_settings-description'
|
||||
)}
|
||||
</Typography>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-1 pb-3">
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="velocitySettings.sendDerivedVelocity"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-velocity_settings-send_derived_velocity'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{config?.debug && (
|
||||
<>
|
||||
<div className="flex flex-col pt-2 pb-3">
|
||||
@@ -1303,80 +1208,34 @@ export function GeneralSettings() {
|
||||
{l10n.getString('settings-general-gesture_control-description')}
|
||||
</Typography>
|
||||
</div>
|
||||
<div>
|
||||
<div className="grid sm:grid-cols-3 gap-5 pb-2">
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="tapDetection.yawResetEnabled"
|
||||
label={l10n.getString(
|
||||
'settings-general-gesture_control-yawResetEnabled'
|
||||
)}
|
||||
/>
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="tapDetection.fullResetEnabled"
|
||||
label={l10n.getString(
|
||||
'settings-general-gesture_control-fullResetEnabled'
|
||||
)}
|
||||
/>
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="tapDetection.mountingResetEnabled"
|
||||
label={l10n.getString(
|
||||
'settings-general-gesture_control-mountingResetEnabled'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-3 gap-5 pb-2">
|
||||
<div>
|
||||
<Typography variant="section-title">
|
||||
{l10n.getString(
|
||||
'settings-general-gesture_control-yawResetTracker'
|
||||
)}
|
||||
</Typography>
|
||||
<Dropdown
|
||||
display="block"
|
||||
control={control}
|
||||
placeholder={''}
|
||||
name="tapDetection.yawResetTracker"
|
||||
items={bodyParts}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Typography variant="section-title">
|
||||
{l10n.getString(
|
||||
'settings-general-gesture_control-mountingResetTracker'
|
||||
)}
|
||||
</Typography>
|
||||
<Dropdown
|
||||
display="block"
|
||||
control={control}
|
||||
placeholder={''}
|
||||
name="tapDetection.mountingResetTracker"
|
||||
items={bodyParts}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Typography variant="section-title">
|
||||
{l10n.getString(
|
||||
'settings-general-gesture_control-fullResetTracker'
|
||||
)}
|
||||
</Typography>
|
||||
<Dropdown
|
||||
display="block"
|
||||
control={control}
|
||||
placeholder={''}
|
||||
name="tapDetection.fullResetTracker"
|
||||
items={bodyParts}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-3 gap-5 pb-2">
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="tapDetection.yawResetEnabled"
|
||||
label={l10n.getString(
|
||||
'settings-general-gesture_control-yawResetEnabled'
|
||||
)}
|
||||
/>
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="tapDetection.fullResetEnabled"
|
||||
label={l10n.getString(
|
||||
'settings-general-gesture_control-fullResetEnabled'
|
||||
)}
|
||||
/>
|
||||
<CheckBox
|
||||
variant="toggle"
|
||||
outlined
|
||||
control={control}
|
||||
name="tapDetection.mountingResetEnabled"
|
||||
label={l10n.getString(
|
||||
'settings-general-gesture_control-mountingResetEnabled'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid sm:grid-cols-3 gap-5 pb-2">
|
||||
<NumberSelector
|
||||
|
||||
@@ -102,9 +102,9 @@ export function OSCRouterSettings() {
|
||||
formData.router.oscSettings.address =
|
||||
settings.oscRouter.oscSettings.address.toString();
|
||||
}
|
||||
|
||||
reset(formData);
|
||||
}
|
||||
|
||||
reset(formData);
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
SettingsResponseT,
|
||||
OSCSettingsT,
|
||||
VMCOSCSettingsT,
|
||||
VRMSettingsT,
|
||||
} from 'solarxr-protocol';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
@@ -54,6 +53,7 @@ export function VMCFileUpload() {
|
||||
const { sendRPCPacket, useRPCPacket } = useWebsocketAPI();
|
||||
const { l10n } = useLocalization();
|
||||
const [modelName, setModelName] = useState<string | null>(null);
|
||||
const [settings, setSettings] = useState<SettingsResponseT>();
|
||||
|
||||
const { control, watch } = useForm<{
|
||||
vrmJson?: FileList;
|
||||
@@ -66,21 +66,27 @@ export function VMCFileUpload() {
|
||||
const vrmJson = watch('vrmJson');
|
||||
|
||||
const updateVRMJson = async () => {
|
||||
if (!settings?.vmcOsc) return;
|
||||
|
||||
const req = new ChangeSettingsRequestT();
|
||||
const vrm = new VRMSettingsT();
|
||||
const vmcOsc = new VMCOSCSettingsT();
|
||||
vmcOsc.oscSettings = Object.assign(
|
||||
new OSCSettingsT(),
|
||||
settings.vmcOsc.oscSettings
|
||||
);
|
||||
if (vrmJson !== undefined) {
|
||||
if (vrmJson.length > 0) {
|
||||
const file = await parseVRMFile(vrmJson[0]);
|
||||
if (file) {
|
||||
vrm.vrmJson = file.json;
|
||||
vmcOsc.vrmJson = file.json;
|
||||
setModelName(file.name);
|
||||
}
|
||||
} else {
|
||||
vrm.vrmJson = '';
|
||||
vmcOsc.vrmJson = '';
|
||||
setModelName(null);
|
||||
}
|
||||
}
|
||||
req.vrm = vrm;
|
||||
req.vmcOsc = vmcOsc;
|
||||
sendRPCPacket(RpcMessage.ChangeSettingsRequest, req);
|
||||
};
|
||||
|
||||
@@ -93,7 +99,8 @@ export function VMCFileUpload() {
|
||||
}, []);
|
||||
|
||||
useRPCPacket(RpcMessage.SettingsResponse, (settings: SettingsResponseT) => {
|
||||
const vrmJson = settings.vrm?.vrmJson?.toString();
|
||||
setSettings(settings);
|
||||
const vrmJson = settings.vmcOsc?.vrmJson?.toString();
|
||||
if (vrmJson) {
|
||||
let data: any;
|
||||
try {
|
||||
@@ -189,9 +196,9 @@ export function VMCSettings() {
|
||||
|
||||
formData.vmc.anchorHip = settings.vmcOsc.anchorHip;
|
||||
formData.vmc.mirrorTracking = settings.vmcOsc.mirrorTracking;
|
||||
|
||||
reset(formData);
|
||||
}
|
||||
|
||||
reset(formData);
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@@ -142,9 +142,9 @@ export function VRCOSCSettings() {
|
||||
formData.vrchat.trackers = settings.vrcOsc.trackers;
|
||||
|
||||
formData.vrchat.oscqueryEnabled = settings.vrcOsc.oscqueryEnabled;
|
||||
|
||||
reset(formData);
|
||||
}
|
||||
|
||||
reset(formData);
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@@ -100,9 +100,7 @@ function TrackerSmol({
|
||||
'border-[3px] border-opacity-80 rounded-md overflow-clip',
|
||||
{
|
||||
'border-status-warning': warning,
|
||||
'border-transparent':
|
||||
!warning && !tracker.accelRecordingInProgress,
|
||||
'border-status-recording': tracker.accelRecordingInProgress,
|
||||
'border-transparent': !warning,
|
||||
}
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -60,9 +60,7 @@ export function TrackerNameCell({
|
||||
'border-[2px] border-opacity-80 rounded-md overflow-clip',
|
||||
{
|
||||
'border-status-warning': warning,
|
||||
'border-transparent':
|
||||
!warning && !tracker.accelRecordingInProgress,
|
||||
'border-status-recording': tracker.accelRecordingInProgress,
|
||||
'border-transparent': !warning,
|
||||
}
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -19,7 +19,6 @@ export function useDataFeedConfig() {
|
||||
trackerData.tps = true;
|
||||
trackerData.rawMagneticVector = true;
|
||||
trackerData.stayAligned = true;
|
||||
trackerData.accelRecordingInProgress = true;
|
||||
|
||||
const dataMask = new DeviceDataMaskT();
|
||||
dataMask.deviceData = true;
|
||||
|
||||
@@ -25,7 +25,6 @@ export function useDiscordPresence() {
|
||||
activity: l10n.getString('settings-general-interface-discord_presence-message', {
|
||||
amount: imuTrackersCount,
|
||||
}),
|
||||
iconText: (__VERSION_TAG__ || __COMMIT_HASH__) + (__GIT_CLEAN__ ? '' : '-dirty'),
|
||||
});
|
||||
}, [config?.discordPresence, imuTrackersCount]);
|
||||
}
|
||||
@@ -78,7 +78,8 @@ export function useProvideOnboarding() {
|
||||
|
||||
const { sendRPCPacket, useRPCPacket } = useWebsocketAPI();
|
||||
|
||||
const { state: locatioState } = useLocation();
|
||||
const { state: locatioState, pathname } = useLocation();
|
||||
const [previousPath, setPreviousPath] = useState(pathname);
|
||||
const [settings, setSettings] = useState<SettingsResponseT>();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
@@ -138,6 +139,17 @@ export function useProvideOnboarding() {
|
||||
setPlayspace(undefined);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setPreviousPath(pathname);
|
||||
|
||||
if (!pathname.startsWith('/onboarding') && previousPath.startsWith('/onboarding')) {
|
||||
onboardingEnded();
|
||||
}
|
||||
if (pathname.startsWith('/onboarding') && !previousPath.startsWith('/onboarding')) {
|
||||
onboardingStarted();
|
||||
}
|
||||
}, [pathname]);
|
||||
|
||||
return {
|
||||
state,
|
||||
slimeSet,
|
||||
@@ -161,8 +173,6 @@ export function useProvideOnboarding() {
|
||||
setUsage,
|
||||
setVrcOSC,
|
||||
setMocapPos,
|
||||
onboardingEnded,
|
||||
onboardingStarted,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ export interface ResetSettingsForm {
|
||||
yawResetSmoothTime: number;
|
||||
saveMountingReset: boolean;
|
||||
resetHmdPitch: boolean;
|
||||
stepMounting: boolean;
|
||||
}
|
||||
|
||||
export const defaultResetSettings = {
|
||||
@@ -23,7 +22,6 @@ export const defaultResetSettings = {
|
||||
yawResetSmoothTime: 0.0,
|
||||
saveMountingReset: false,
|
||||
resetHmdPitch: false,
|
||||
stepMounting: false,
|
||||
};
|
||||
|
||||
export function loadResetSettings(resetSettingsForm: ResetSettingsForm) {
|
||||
@@ -33,7 +31,6 @@ export function loadResetSettings(resetSettingsForm: ResetSettingsForm) {
|
||||
resetsSettings.yawResetSmoothTime = resetSettingsForm.yawResetSmoothTime;
|
||||
resetsSettings.saveMountingReset = resetSettingsForm.saveMountingReset;
|
||||
resetsSettings.resetHmdPitch = resetSettingsForm.resetHmdPitch;
|
||||
resetsSettings.stepMounting = resetSettingsForm.stepMounting;
|
||||
|
||||
return resetsSettings;
|
||||
}
|
||||
|
||||
@@ -32,8 +32,6 @@ export const trackingchecklistIdtoLabel: Record<TrackingChecklistStepId, string>
|
||||
'tracking_checklist-STAY_ALIGNED_CONFIGURED',
|
||||
[TrackingChecklistStepId.STEAMVR_HANDS_ENABLED]:
|
||||
'tracking_checklist-STEAMVR_HANDS_ENABLED',
|
||||
[TrackingChecklistStepId.STANDABLE_INSTALLED]:
|
||||
'tracking_checklist-STANDABLE_INSTALLED',
|
||||
};
|
||||
|
||||
export type TrackingChecklistStepStatus =
|
||||
|
||||
@@ -95,7 +95,6 @@ body {
|
||||
--warning: 255, 225, 53;
|
||||
--critical: 223, 109, 140;
|
||||
--special: 164, 79, 237;
|
||||
--recording: 255, 84, 84;
|
||||
--window-icon-stroke: 192, 161, 216;
|
||||
|
||||
--default-color: 255, 255, 255;
|
||||
|
||||
@@ -191,7 +191,6 @@ const config = {
|
||||
warning: 'rgb(var(--warning), <alpha-value>)',
|
||||
critical: 'rgb(var(--critical), <alpha-value>)',
|
||||
special: 'rgb(var(--special), <alpha-value>)',
|
||||
recording: 'rgb(var(--recording), <alpha-value>)',
|
||||
},
|
||||
window: {
|
||||
icon: 'rgb(var(--window-icon-stroke), <alpha-value>)',
|
||||
|
||||
@@ -48,7 +48,6 @@ enum class MountingMethods(val id: Int) {
|
||||
}
|
||||
|
||||
class ResetsConfig {
|
||||
var stepMounting = false
|
||||
|
||||
// Always reset mounting for feet
|
||||
var resetMountingFeet = false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package dev.slimevr.config
|
||||
|
||||
import com.jme3.math.FastMath
|
||||
import dev.slimevr.tracking.trackers.TrackerPosition
|
||||
|
||||
// handles the tap detection config
|
||||
// this involves the number of taps, the delay, and whether or not the feature is enabled
|
||||
@@ -12,9 +12,6 @@ class TapDetectionConfig {
|
||||
var yawResetEnabled = true
|
||||
var fullResetEnabled = true
|
||||
var mountingResetEnabled = true
|
||||
var yawResetTracker = TrackerPosition.CHEST
|
||||
var mountingResetTracker = TrackerPosition.RIGHT_UPPER_LEG
|
||||
var fullResetTracker = TrackerPosition.LEFT_UPPER_LEG
|
||||
var setupMode = false
|
||||
var yawResetTaps = 2
|
||||
set(yawResetTaps) {
|
||||
|
||||
@@ -58,8 +58,6 @@ class VRConfig {
|
||||
|
||||
val trackingChecklist: TrackingChecklistConfig = TrackingChecklistConfig()
|
||||
|
||||
val velocityConfig: VelocityConfig = VelocityConfig()
|
||||
|
||||
val vrcConfig: VRCConfig = VRCConfig()
|
||||
|
||||
init {
|
||||
@@ -121,7 +119,6 @@ class VRConfig {
|
||||
.readFilteringConfig(filters, tracker.getRotation())
|
||||
}
|
||||
}
|
||||
tracker.allowVelocity = velocityConfig.sendDerivedVelocity
|
||||
}
|
||||
|
||||
fun writeTrackerConfig(tracker: Tracker?) {
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
package dev.slimevr.config
|
||||
|
||||
import dev.slimevr.VRServer
|
||||
|
||||
/**
|
||||
* Allows to enable/disable sending of optional derived velocity data via Protobuf.
|
||||
* Enables Natural Locomotion Support
|
||||
* May create overprediction in certain titles causing excessive jitter when moving upper body.
|
||||
*/
|
||||
class VelocityConfig {
|
||||
// Disables derived velocity for all trackers. Driver zeroes out velocity if nothing is returned in protobuf message.
|
||||
var sendDerivedVelocity: Boolean = false
|
||||
|
||||
fun updateTrackersVelocitySettings() {
|
||||
for (t in VRServer.instance.allTrackers) {
|
||||
t.allowVelocity = sendDerivedVelocity
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -275,9 +275,6 @@ fun createTrackerData(
|
||||
if (mask.stayAligned) {
|
||||
TrackerData.addStayAligned(fbb, stayAlignedOffset)
|
||||
}
|
||||
if (mask.accelRecordingInProgress) {
|
||||
TrackerData.addAccelRecordingInProgress(fbb, tracker.accelMountInProgress)
|
||||
}
|
||||
|
||||
return TrackerData.endTrackerData(fbb)
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ import dev.slimevr.config.StayAlignedConfig
|
||||
import dev.slimevr.config.TapDetectionConfig
|
||||
import dev.slimevr.config.VMCConfig
|
||||
import dev.slimevr.config.VRCOSCConfig
|
||||
import dev.slimevr.config.VelocityConfig
|
||||
import dev.slimevr.filtering.TrackerFilters.Companion.getByConfigkey
|
||||
import dev.slimevr.tracking.processor.HumanPoseManager
|
||||
import dev.slimevr.tracking.processor.config.SkeletonConfigToggles
|
||||
@@ -35,8 +34,6 @@ import solarxr_protocol.rpc.SteamVRTrackersSetting
|
||||
import solarxr_protocol.rpc.TapDetectionSettings
|
||||
import solarxr_protocol.rpc.VMCOSCSettings
|
||||
import solarxr_protocol.rpc.VRCOSCSettings
|
||||
import solarxr_protocol.rpc.VRMSettings
|
||||
import solarxr_protocol.rpc.VelocitySettings
|
||||
import solarxr_protocol.rpc.settings.LegTweaksSettings
|
||||
import solarxr_protocol.rpc.settings.ModelRatios
|
||||
import solarxr_protocol.rpc.settings.ModelSettings
|
||||
@@ -114,25 +111,17 @@ fun createVMCOSCSettings(
|
||||
addressStringOffset,
|
||||
)
|
||||
|
||||
VMCOSCSettings.startVMCOSCSettings(fbb)
|
||||
VMCOSCSettings.addOscSettings(fbb, generalSettingOffset)
|
||||
VMCOSCSettings.addAnchorHip(fbb, config.anchorHip)
|
||||
VMCOSCSettings.addMirrorTracking(fbb, config.mirrorTracking)
|
||||
|
||||
return VMCOSCSettings.endVMCOSCSettings(fbb)
|
||||
}
|
||||
|
||||
fun createVRMSettings(
|
||||
fbb: FlatBufferBuilder,
|
||||
config: VMCConfig,
|
||||
): Int {
|
||||
val vrmJson = config.vrmJson
|
||||
var vrmJsonOffset = 0
|
||||
if (vrmJson != null) vrmJsonOffset = fbb.createString(vrmJson)
|
||||
|
||||
VRMSettings.startVRMSettings(fbb)
|
||||
if (vrmJson != null) VRMSettings.addVrmJson(fbb, vrmJsonOffset)
|
||||
return VRMSettings.endVRMSettings(fbb)
|
||||
VMCOSCSettings.startVMCOSCSettings(fbb)
|
||||
VMCOSCSettings.addOscSettings(fbb, generalSettingOffset)
|
||||
if (vrmJson != null) VMCOSCSettings.addVrmJson(fbb, vrmJsonOffset)
|
||||
VMCOSCSettings.addAnchorHip(fbb, config.anchorHip)
|
||||
VMCOSCSettings.addMirrorTracking(fbb, config.mirrorTracking)
|
||||
|
||||
return VMCOSCSettings.endVMCOSCSettings(fbb)
|
||||
}
|
||||
|
||||
fun createFilterSettings(
|
||||
@@ -174,9 +163,9 @@ fun createTapDetectionSettings(
|
||||
tapDetectionConfig.mountingResetTaps,
|
||||
tapDetectionConfig.setupMode,
|
||||
tapDetectionConfig.numberTrackersOverThreshold,
|
||||
tapDetectionConfig.yawResetTracker.bodyPart,
|
||||
tapDetectionConfig.fullResetTracker.bodyPart,
|
||||
tapDetectionConfig.mountingResetTracker.bodyPart,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
)
|
||||
|
||||
fun createSteamVRSettings(fbb: FlatBufferBuilder, bridge: ISteamVRBridge?): Int {
|
||||
@@ -383,7 +372,6 @@ fun createArmsResetModeSettings(
|
||||
resetsConfig.yawResetSmoothTime,
|
||||
resetsConfig.saveMountingReset,
|
||||
resetsConfig.resetHmdPitch,
|
||||
resetsConfig.stepMounting,
|
||||
)
|
||||
|
||||
fun createSettingsResponse(fbb: FlatBufferBuilder, server: VRServer): Int {
|
||||
@@ -439,11 +427,6 @@ fun createSettingsResponse(fbb: FlatBufferBuilder, server: VRServer): Int {
|
||||
),
|
||||
createHIDSettings(fbb, server.configManager.vrConfig.hidConfig),
|
||||
0,
|
||||
createVelocitySettings(fbb, server.configManager.vrConfig.velocityConfig),
|
||||
createVRMSettings(
|
||||
fbb,
|
||||
server.configManager.vrConfig.vmc,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -479,12 +462,3 @@ fun createHIDSettings(
|
||||
fbb,
|
||||
config.trackersOverHID,
|
||||
)
|
||||
|
||||
fun createVelocitySettings(
|
||||
fbb: FlatBufferBuilder,
|
||||
config: VelocityConfig,
|
||||
): Int = VelocitySettings
|
||||
.createVelocitySettings(
|
||||
fbb,
|
||||
config.sendDerivedVelocity,
|
||||
)
|
||||
@@ -9,7 +9,6 @@ import dev.slimevr.protocol.ProtocolAPI
|
||||
import dev.slimevr.protocol.rpc.RPCHandler
|
||||
import dev.slimevr.tracking.processor.config.SkeletonConfigToggles
|
||||
import dev.slimevr.tracking.processor.config.SkeletonConfigValues
|
||||
import dev.slimevr.tracking.trackers.TrackerPosition
|
||||
import dev.slimevr.tracking.trackers.TrackerRole
|
||||
import solarxr_protocol.rpc.ChangeSettingsRequest
|
||||
import solarxr_protocol.rpc.RpcMessage
|
||||
@@ -128,6 +127,7 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
|
||||
val vmcConfig = api.server.configManager
|
||||
.vrConfig
|
||||
.vmc
|
||||
val vmcHandler = api.server.vMCHandler
|
||||
val osc = req.vmcOsc().oscSettings()
|
||||
|
||||
if (osc != null) {
|
||||
@@ -136,21 +136,12 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
|
||||
vmcConfig.portOut = osc.portOut()
|
||||
vmcConfig.address = osc.address()
|
||||
}
|
||||
if (req.vmcOsc().vrmJson() != null) {
|
||||
vmcConfig.vrmJson = req.vmcOsc().vrmJson().ifEmpty { null }
|
||||
}
|
||||
vmcConfig.anchorHip = req.vmcOsc().anchorHip()
|
||||
vmcConfig.mirrorTracking = req.vmcOsc().mirrorTracking()
|
||||
}
|
||||
|
||||
if (req.vrm() != null) {
|
||||
val vmcConfig = api.server.configManager
|
||||
.vrConfig
|
||||
.vmc
|
||||
if (req.vrm().vrmJson() != null) {
|
||||
vmcConfig.vrmJson = req.vrm().vrmJson().ifEmpty { null }
|
||||
}
|
||||
}
|
||||
|
||||
if (req.vmcOsc() != null || req.vrm() != null) {
|
||||
val vmcHandler = api.server.vMCHandler
|
||||
vmcHandler.refreshSettings(true)
|
||||
}
|
||||
|
||||
@@ -168,10 +159,6 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
|
||||
.mountingResetEnabled = tapDetectionSettings.mountingResetEnabled()
|
||||
tapDetectionConfig.setupMode = tapDetectionSettings.setupMode()
|
||||
|
||||
tapDetectionConfig.yawResetTracker = TrackerPosition.getByBodyPart(tapDetectionSettings.yawResetTracker()) ?: TrackerPosition.CHEST
|
||||
tapDetectionConfig.fullResetTracker = TrackerPosition.getByBodyPart(tapDetectionSettings.fullResetTracker()) ?: TrackerPosition.LEFT_UPPER_LEG
|
||||
tapDetectionConfig.mountingResetTracker = TrackerPosition.getByBodyPart(tapDetectionSettings.mountingResetTracker()) ?: TrackerPosition.RIGHT_UPPER_LEG
|
||||
|
||||
// set number of trackers that can have high accel before taps
|
||||
// are rejected
|
||||
if (tapDetectionSettings.hasNumberTrackersOverThreshold()) {
|
||||
@@ -347,7 +334,6 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
|
||||
resetsConfig.saveMountingReset = req.resetsSettings().saveMountingReset()
|
||||
resetsConfig.yawResetSmoothTime = req.resetsSettings().yawResetSmoothTime()
|
||||
resetsConfig.resetHmdPitch = req.resetsSettings().resetHmdPitch()
|
||||
resetsConfig.stepMounting = req.resetsSettings().stepMounting()
|
||||
resetsConfig.updateTrackersResetsSettings()
|
||||
}
|
||||
|
||||
@@ -376,12 +362,6 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
|
||||
config.trackersOverHID = requestConfig.trackersOverHid()
|
||||
}
|
||||
|
||||
if (req.velocitySettings() != null) {
|
||||
val velocityConfig = api.server.configManager.vrConfig.velocityConfig
|
||||
velocityConfig.sendDerivedVelocity = req.velocitySettings().sendDerivedVelocity()
|
||||
velocityConfig.updateTrackersVelocitySettings()
|
||||
}
|
||||
|
||||
api.server.configManager.saveConfig()
|
||||
}
|
||||
|
||||
@@ -399,7 +379,7 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
|
||||
val settings = SettingsResponse
|
||||
.createSettingsResponse(
|
||||
fbb,
|
||||
createSteamVRSettings(fbb, bridge), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
createSteamVRSettings(fbb, bridge), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
)
|
||||
val outbound =
|
||||
rpcHandler.createRPCMessage(fbb, RpcMessage.SettingsResponse, settings)
|
||||
|
||||
@@ -1,236 +0,0 @@
|
||||
package dev.slimevr.reset.accel
|
||||
|
||||
import dev.slimevr.tracking.trackers.Tracker
|
||||
import dev.slimevr.util.AccelAccumulator
|
||||
import io.eiren.util.logging.LogManager
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import java.util.Timer
|
||||
import java.util.TimerTask
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import kotlin.concurrent.schedule
|
||||
import kotlin.concurrent.thread
|
||||
import kotlin.concurrent.withLock
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
import kotlin.time.DurationUnit
|
||||
import kotlin.time.TimeSource
|
||||
|
||||
// Handles recording and processing of acceleration-based session calibration
|
||||
class AccelResetHandler(val timeSource: TimeSource.WithComparableMarks = TimeSource.Monotonic) {
|
||||
var isRunning: Boolean = false
|
||||
private set
|
||||
var isDetecting: Boolean = false
|
||||
private set
|
||||
var isRecording: Boolean = false
|
||||
private set
|
||||
|
||||
private val recordingLock = ReentrantLock()
|
||||
|
||||
private var hmd: Tracker? = null
|
||||
private val trackers: MutableList<RecordingWrapper> = mutableListOf()
|
||||
|
||||
private val timeoutTimer = Timer()
|
||||
private var timerTask: TimerTask? = null
|
||||
|
||||
private var recStartTime = timeSource.markNow()
|
||||
|
||||
/**
|
||||
* Starts the accel reset process. performing rest detection on the trackers
|
||||
* provided to automatically control the recording period.
|
||||
*/
|
||||
fun start(hmd: Tracker, trackers: Iterable<Tracker>) = recordingLock.withLock {
|
||||
// Maybe should throw IllegalStateException? Or just restart?
|
||||
if (isRunning) return
|
||||
|
||||
// Nothing to do
|
||||
if (trackers.none()) return
|
||||
|
||||
// Initialize our state
|
||||
isRunning = true
|
||||
this.hmd = hmd
|
||||
|
||||
// Register our tracker event listener
|
||||
for (tracker in trackers) {
|
||||
val wrappedTracker = RecordingWrapper(tracker)
|
||||
this.trackers.add(wrappedTracker)
|
||||
tracker.accelTickCallback = {
|
||||
onAccelData(wrappedTracker)
|
||||
}
|
||||
}
|
||||
|
||||
// Start waiting for movement
|
||||
isDetecting = true
|
||||
timerTask?.cancel()
|
||||
timerTask = timeoutTimer.schedule(START_TIMEOUT.inWholeMilliseconds) {
|
||||
timeout()
|
||||
}
|
||||
|
||||
LogManager.info("[AccelResetHandler] Reset requested, detecting movement...")
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles rest detection and data collection.
|
||||
*/
|
||||
private fun onAccelData(tracker: RecordingWrapper) {
|
||||
if (!isDetecting) return
|
||||
|
||||
val sample = tracker.makeSample(timeSource.markNow(), hmd?.position ?: Vector3.NULL)
|
||||
|
||||
// Rest detection
|
||||
tracker.updateRestState(sample)
|
||||
tracker.addRestSample(sample)
|
||||
// TODO: This shouldn't be done like this
|
||||
tracker.tracker.accelMountInProgress = isRecording && tracker.moving
|
||||
|
||||
if (!isRecording) {
|
||||
// We haven't started moving yet, don't start recording
|
||||
if (!tracker.moving) return
|
||||
|
||||
// Start recording
|
||||
recordingLock.withLock {
|
||||
// Race condition
|
||||
if (isRecording) return@withLock
|
||||
|
||||
// Dump rest detection into the recording on tracker threads
|
||||
for (tracker in trackers) tracker.dumpRest = true
|
||||
|
||||
isRecording = true
|
||||
recStartTime = timeSource.markNow()
|
||||
timerTask?.cancel()
|
||||
timerTask = timeoutTimer.schedule(RECORD_TIMEOUT.inWholeMilliseconds) {
|
||||
timeout()
|
||||
}
|
||||
|
||||
LogManager.info("[AccelResetHandler] Movement detected, recording started!")
|
||||
}
|
||||
} else if (
|
||||
timeSource.markNow() - recStartTime > MINIMUM_DURATION &&
|
||||
trackers.none { it.moving }
|
||||
) {
|
||||
// We're recording, the minimum duration has passed, and no trackers are
|
||||
// moving, therefore we can stop the recording and process it
|
||||
recordingLock.withLock {
|
||||
// Race condition
|
||||
if (!isRecording) return
|
||||
stop()
|
||||
// Let's not block the tracker thread while processing
|
||||
thread {
|
||||
process()
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Take the latest sample or dump the rest detection samples into the recording
|
||||
if (!tracker.dumpRest) {
|
||||
tracker.recording.add(sample)
|
||||
} else {
|
||||
tracker.recording.addAll(tracker.restDetect)
|
||||
tracker.dumpRest = false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops recording, processes the recorded data, then resets this handler.
|
||||
*/
|
||||
private fun process() {
|
||||
LogManager.info("[AccelResetHandler] Done recording, processing...")
|
||||
|
||||
for (tracker in trackers) {
|
||||
val firstSample = tracker.recording.first()
|
||||
val lastSample = tracker.recording.last()
|
||||
|
||||
// Compute the unbiased final velocity
|
||||
val calibAccum = AccelAccumulator()
|
||||
RecordingProcessor.processTimeline(calibAccum, tracker)
|
||||
|
||||
// Assume the final velocity is zero (at rest), we can divide our unbiased
|
||||
// final velocity (m/s) by the duration and get a static acceleration
|
||||
// offset (m/s^2)
|
||||
val duration = lastSample.time - firstSample.time
|
||||
val bias = calibAccum.velocity / duration.toDouble(DurationUnit.SECONDS).toFloat()
|
||||
|
||||
// Compute the biased final offset
|
||||
val finalAccum = AccelAccumulator()
|
||||
RecordingProcessor.processTimeline(finalAccum, tracker, accelBias = bias)
|
||||
|
||||
// Compute the final offsets
|
||||
val trackerOffset = finalAccum.offset
|
||||
val trackerXZ = Vector3(trackerOffset.x, 0f, trackerOffset.z)
|
||||
val hmdOffset = lastSample.hmdPos - firstSample.hmdPos
|
||||
val hmdXZ = Vector3(hmdOffset.x, 0f, hmdOffset.z)
|
||||
|
||||
// TODO: Fail on high error
|
||||
|
||||
// Compute mounting to fix the yaw offset from tracker to HMD
|
||||
val mountRot = RecordingProcessor.angle(trackerXZ.unit()) *
|
||||
RecordingProcessor.angle(hmdXZ.unit()).inv()
|
||||
|
||||
// Apply that mounting to the tracker
|
||||
val resetsHandler = tracker.tracker.resetsHandler
|
||||
val finalMounting = resetsHandler.mountingOrientation * resetsHandler.mountRotFix * mountRot
|
||||
resetsHandler.mountRotFix *= mountRot
|
||||
|
||||
LogManager.info(
|
||||
"[Accel] Tracker ${tracker.tracker.id} (${tracker.tracker.trackerPosition?.designation}):\n" +
|
||||
"Tracker offset: $trackerOffset\n" +
|
||||
"HMD offset: $hmdOffset\n" +
|
||||
"Error value (meters): ${trackerXZ.len() - hmdXZ.len()}\n" +
|
||||
"Resulting mounting: $finalMounting",
|
||||
)
|
||||
}
|
||||
|
||||
clean()
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops recording without clearing the recorded data.
|
||||
*/
|
||||
private fun stop() = recordingLock.withLock {
|
||||
// Cancel any pending timeouts
|
||||
timerTask?.cancel()
|
||||
timerTask = null
|
||||
|
||||
isDetecting = false
|
||||
isRecording = false
|
||||
|
||||
// Unregister our tracker event listener
|
||||
for (tracker in trackers) {
|
||||
tracker.tracker.accelTickCallback = null
|
||||
tracker.tracker.accelMountInProgress = false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Immediately stops execution and resets this handler.
|
||||
*/
|
||||
private fun clean() {
|
||||
stop()
|
||||
|
||||
// Reset data storage
|
||||
hmd = null
|
||||
trackers.clear()
|
||||
|
||||
isRunning = false
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops the accel reset process and resets this handler.
|
||||
*/
|
||||
fun cancel() {
|
||||
clean()
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates that the process has timed out, then resets this handler.
|
||||
*/
|
||||
private fun timeout() {
|
||||
LogManager.warning("[AccelResetHandler] Reset timed out, aborting")
|
||||
clean()
|
||||
}
|
||||
|
||||
companion object {
|
||||
val START_TIMEOUT = 8.seconds
|
||||
val MINIMUM_DURATION = 2.seconds
|
||||
val RECORD_TIMEOUT = 8.seconds
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package dev.slimevr.reset.accel
|
||||
|
||||
import dev.slimevr.util.AccelAccumulator
|
||||
import io.github.axisangles.ktmath.Quaternion
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import kotlin.math.atan2
|
||||
import kotlin.time.ComparableTimeMark
|
||||
import kotlin.time.Duration
|
||||
import kotlin.time.DurationUnit
|
||||
|
||||
object RecordingProcessor {
|
||||
fun accumSample(
|
||||
accum: AccelAccumulator,
|
||||
sample: RecordingSample,
|
||||
lastSampleTime: ComparableTimeMark? = null,
|
||||
accelBias: Vector3 = Vector3.NULL,
|
||||
): Duration {
|
||||
val delta = lastSampleTime?.let { sample.time - it } ?: Duration.ZERO
|
||||
accum.dataTick(sample.accel - accelBias, delta.toDouble(DurationUnit.SECONDS).toFloat())
|
||||
|
||||
return delta
|
||||
}
|
||||
|
||||
fun processTimeline(
|
||||
accum: AccelAccumulator,
|
||||
wrapper: RecordingWrapper,
|
||||
lastSampleTime: ComparableTimeMark? = null,
|
||||
accelBias: Vector3 = Vector3.NULL,
|
||||
): ComparableTimeMark? {
|
||||
var lastTime = lastSampleTime
|
||||
|
||||
for (sample in wrapper.recording) {
|
||||
accumSample(accum, sample, lastTime, accelBias)
|
||||
lastTime = sample.time
|
||||
}
|
||||
|
||||
return lastTime
|
||||
}
|
||||
|
||||
fun angle(vector: Vector3): Quaternion {
|
||||
val yaw = atan2(vector.x, vector.z)
|
||||
return Quaternion.rotationAroundYAxis(yaw)
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package dev.slimevr.reset.accel
|
||||
|
||||
import io.github.axisangles.ktmath.Quaternion
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import kotlin.time.ComparableTimeMark
|
||||
|
||||
data class RecordingSample(
|
||||
val time: ComparableTimeMark,
|
||||
// Tracker
|
||||
val accel: Vector3,
|
||||
val rot: Quaternion,
|
||||
// HMD
|
||||
val hmdPos: Vector3,
|
||||
)
|
||||
@@ -1,63 +0,0 @@
|
||||
package dev.slimevr.reset.accel
|
||||
|
||||
import dev.slimevr.autobone.StatsCalculator
|
||||
import dev.slimevr.tracking.trackers.Tracker
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import org.apache.commons.collections4.queue.CircularFifoQueue
|
||||
import kotlin.time.ComparableTimeMark
|
||||
import kotlin.time.Duration.Companion.milliseconds
|
||||
|
||||
data class RecordingWrapper(val tracker: Tracker, var moving: Boolean = false) {
|
||||
// Buffer for performing rest detection
|
||||
val restDetect = CircularFifoQueue<RecordingSample>(8)
|
||||
|
||||
// List capacity assuming ~10 seconds at 100 TPS
|
||||
val recording: MutableList<RecordingSample> = ArrayList(1024)
|
||||
|
||||
// Whether to dump our rest detection into the recording on the next sample
|
||||
var dumpRest = false
|
||||
|
||||
fun makeSample(time: ComparableTimeMark, hmdPos: Vector3): RecordingSample = RecordingSample(
|
||||
time,
|
||||
tracker.getAcceleration(),
|
||||
tracker.getRotation(),
|
||||
hmdPos,
|
||||
)
|
||||
|
||||
fun addRestSample(sample: RecordingSample): Boolean {
|
||||
// Collect samples for rest detection at a constant-ish rate if possible
|
||||
return if (moving && restDetect.isNotEmpty()) {
|
||||
val lastSampleTime = restDetect.last().time
|
||||
// Try to have TPS at a lower rate
|
||||
if (sample.time - lastSampleTime > REST_INTERVAL) {
|
||||
restDetect.add(sample)
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
restDetect.add(sample)
|
||||
}
|
||||
}
|
||||
|
||||
fun updateRestState(new: RecordingSample): Boolean {
|
||||
if (restDetect.size < 4) return moving
|
||||
|
||||
val stats = StatsCalculator()
|
||||
for (sample in restDetect) {
|
||||
stats.addValue(sample.accel.len())
|
||||
}
|
||||
|
||||
// Conditions to start or remain moving
|
||||
// TODO: Add rotation as a rest metric
|
||||
moving = if (moving) {
|
||||
stats.mean >= 0.2f || stats.standardDeviation >= 0.25f
|
||||
} else {
|
||||
stats.mean >= 0.3f || new.accel.len() - stats.mean >= 0.6f
|
||||
}
|
||||
return moving
|
||||
}
|
||||
|
||||
companion object {
|
||||
val REST_INTERVAL = 100.milliseconds
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,6 @@ package dev.slimevr.tracking.processor.skeleton
|
||||
import dev.slimevr.VRServer
|
||||
import dev.slimevr.config.MountingMethods
|
||||
import dev.slimevr.config.StayAlignedConfig
|
||||
import dev.slimevr.reset.accel.AccelResetHandler
|
||||
import dev.slimevr.tracking.processor.Bone
|
||||
import dev.slimevr.tracking.processor.BoneType
|
||||
import dev.slimevr.tracking.processor.Constraint
|
||||
@@ -218,8 +217,6 @@ class HumanSkeleton(
|
||||
var ikSolver = IKSolver(headBone)
|
||||
var userHeightCalibration: UserHeightCalibration? = null
|
||||
|
||||
val accelResetHandler = AccelResetHandler()
|
||||
|
||||
// Stay Aligned
|
||||
var trackerSkeleton = TrackerSkeleton(this)
|
||||
var stayAlignedConfig = StayAlignedConfig()
|
||||
@@ -1174,7 +1171,6 @@ class HumanSkeleton(
|
||||
it.position = trackerBone.getTailPosition()
|
||||
it.setRotation(trackerBone.getGlobalRotation() * trackerBone.rotationOffset.inv())
|
||||
it.dataTick()
|
||||
it.updateDerivedVelocity()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1625,29 +1621,6 @@ class HumanSkeleton(
|
||||
return
|
||||
}
|
||||
|
||||
// TODO: Make this not dumb
|
||||
if (headTracker?.resetsHandler?.stepMounting == true ||
|
||||
trackersToReset.any { it?.resetsHandler?.stepMounting == true }
|
||||
) {
|
||||
headTracker?.let { hmd ->
|
||||
// Make sure we have HMD position
|
||||
if (!hmd.hasPosition) {
|
||||
return@let
|
||||
}
|
||||
|
||||
// Start step mounting
|
||||
accelResetHandler.start(
|
||||
hmd,
|
||||
trackersToReset.filterNotNull().filter {
|
||||
it.allowMounting && (bodyParts.isEmpty() || bodyParts.contains(it.trackerPosition?.bodyPart))
|
||||
},
|
||||
)
|
||||
return
|
||||
}
|
||||
LogManager.info("[HumanSkeleton] Reset: mounting ($resetSourceName) failed, HMD is not available")
|
||||
return
|
||||
}
|
||||
|
||||
// Resets the mounting orientation of the trackers with the HMD as reference.
|
||||
var referenceRotation = IDENTITY
|
||||
headTracker?.let {
|
||||
|
||||
@@ -6,15 +6,7 @@ import java.util.*
|
||||
// class that monitors the acceleration of the waist, hip, chest or upper chest trackers to detect taps
|
||||
// and use this to trigger a variety of resets (if your wondering why no single tap class exists, it's because
|
||||
// to many false positives)
|
||||
class TapDetection(
|
||||
val skeleton: HumanSkeleton,
|
||||
val trackerToWatch: Tracker,
|
||||
// The maximum number of trackers that can accelerate faster than ALLOWED_BODY_ACCEL
|
||||
// before tap detection will deactivate
|
||||
val maxAllowedMovingTrackers: Int,
|
||||
val tapToComplete: Int,
|
||||
val onTapCompleted: () -> Unit,
|
||||
) {
|
||||
class TapDetection(val skeleton: HumanSkeleton, val trackerToWatch: Tracker, val numberTrackersOverThreshold: Int, val tapToComplete: Int, val onTapCompleted: () -> Unit) {
|
||||
|
||||
private val accelList = LinkedList<FloatArray>()
|
||||
private val tapTimestamps = LinkedList<Float>()
|
||||
@@ -100,20 +92,64 @@ class TapDetection(
|
||||
// force on any of the torso or upper leg trackers (this sadly implies that
|
||||
// you need two or more trackers for this feature to be reliable)
|
||||
private fun isUserStatic(trackerToExclude: Tracker): Boolean {
|
||||
val trackersToCheck = arrayOf(
|
||||
skeleton.upperChestTracker,
|
||||
skeleton.chestTracker,
|
||||
skeleton.hipTracker,
|
||||
skeleton.waistTracker,
|
||||
skeleton.leftUpperLegTracker,
|
||||
skeleton.rightUpperLegTracker,
|
||||
skeleton.leftFootTracker,
|
||||
skeleton.rightFootTracker,
|
||||
)
|
||||
val numMovingTrackers = trackersToCheck.count {
|
||||
it != null && it != trackerToExclude && it.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED
|
||||
var num = 0
|
||||
if (skeleton.upperChestTracker != null &&
|
||||
skeleton.upperChestTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.upperChestTracker!!.getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
) {
|
||||
num++
|
||||
}
|
||||
}
|
||||
return numMovingTrackers < maxAllowedMovingTrackers
|
||||
if (skeleton.chestTracker != null &&
|
||||
skeleton.chestTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.chestTracker!!.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED) num++
|
||||
}
|
||||
if (skeleton.hipTracker != null && skeleton.hipTracker != trackerToExclude) {
|
||||
if (skeleton.hipTracker!!.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED) num++
|
||||
}
|
||||
if (skeleton.waistTracker != null &&
|
||||
skeleton.waistTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.waistTracker!!.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED) num++
|
||||
}
|
||||
if (skeleton.leftUpperLegTracker != null &&
|
||||
skeleton.leftUpperLegTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.leftUpperLegTracker!!.getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
) {
|
||||
num++
|
||||
}
|
||||
}
|
||||
if (skeleton.rightUpperLegTracker != null &&
|
||||
skeleton.rightUpperLegTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.rightUpperLegTracker!!.getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
) {
|
||||
num++
|
||||
}
|
||||
}
|
||||
if (skeleton.leftFootTracker != null &&
|
||||
skeleton.leftFootTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.leftFootTracker!!.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED) {
|
||||
num++
|
||||
}
|
||||
}
|
||||
if (skeleton.rightFootTracker != null &&
|
||||
skeleton.rightFootTracker != trackerToExclude
|
||||
) {
|
||||
if (skeleton.rightFootTracker!!.getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
) {
|
||||
num++
|
||||
}
|
||||
}
|
||||
return num < numberTrackersOverThreshold
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
+8
-14
@@ -3,9 +3,6 @@ package dev.slimevr.tracking.processor.skeleton
|
||||
import dev.slimevr.VRServer
|
||||
import dev.slimevr.tracking.processor.HumanPoseManager
|
||||
import dev.slimevr.tracking.trackers.Tracker
|
||||
import dev.slimevr.tracking.trackers.TrackerPosition
|
||||
import dev.slimevr.tracking.trackers.TrackerUtils
|
||||
import io.eiren.util.logging.LogManager
|
||||
import java.util.concurrent.CopyOnWriteArrayList
|
||||
|
||||
class TapDetectionManager(
|
||||
@@ -91,29 +88,26 @@ class TapDetectionManager(
|
||||
private val mountingResetTracker: Tracker?
|
||||
get() {
|
||||
return arrayOf(
|
||||
TrackerUtils.getTrackerForSkeleton(server.allTrackers, config.mountingResetTracker),
|
||||
if (config.yawResetTracker !== TrackerPosition.RIGHT_UPPER_LEG && config.fullResetTracker !== TrackerPosition.RIGHT_UPPER_LEG) skeleton.rightUpperLegTracker else null,
|
||||
if (config.yawResetTracker !== TrackerPosition.RIGHT_LOWER_LEG && config.fullResetTracker !== TrackerPosition.RIGHT_LOWER_LEG) skeleton.rightLowerLegTracker else null,
|
||||
skeleton.rightUpperLegTracker,
|
||||
skeleton.rightLowerLegTracker,
|
||||
).firstNotNullOfOrNull { it }
|
||||
}
|
||||
|
||||
private val fullResetTracker: Tracker?
|
||||
get() {
|
||||
return arrayOf(
|
||||
TrackerUtils.getTrackerForSkeleton(server.allTrackers, config.fullResetTracker),
|
||||
if (config.yawResetTracker !== TrackerPosition.LEFT_UPPER_LEG && config.mountingResetTracker !== TrackerPosition.LEFT_UPPER_LEG) skeleton.leftUpperLegTracker else null,
|
||||
if (config.yawResetTracker !== TrackerPosition.LEFT_LOWER_LEG && config.mountingResetTracker !== TrackerPosition.LEFT_LOWER_LEG) skeleton.leftLowerLegTracker else null,
|
||||
skeleton.leftUpperLegTracker,
|
||||
skeleton.leftLowerLegTracker,
|
||||
).firstNotNullOfOrNull { it }
|
||||
}
|
||||
|
||||
private val yawResetTracker: Tracker?
|
||||
get() {
|
||||
return arrayOf(
|
||||
TrackerUtils.getTrackerForSkeleton(server.allTrackers, config.yawResetTracker),
|
||||
if (config.fullResetTracker !== TrackerPosition.UPPER_CHEST && config.mountingResetTracker !== TrackerPosition.UPPER_CHEST) skeleton.upperChestTracker else null,
|
||||
if (config.fullResetTracker !== TrackerPosition.CHEST && config.mountingResetTracker !== TrackerPosition.CHEST) skeleton.chestTracker else null,
|
||||
if (config.fullResetTracker !== TrackerPosition.HIP && config.mountingResetTracker !== TrackerPosition.HIP) skeleton.hipTracker else null,
|
||||
if (config.fullResetTracker !== TrackerPosition.WAIST && config.mountingResetTracker !== TrackerPosition.WAIST) skeleton.waistTracker else null,
|
||||
skeleton.upperChestTracker,
|
||||
skeleton.chestTracker,
|
||||
skeleton.hipTracker,
|
||||
skeleton.waistTracker,
|
||||
).firstNotNullOfOrNull { it }
|
||||
}
|
||||
|
||||
|
||||
@@ -12,10 +12,6 @@ import io.eiren.util.BufferedTimer
|
||||
import io.github.axisangles.ktmath.Quaternion
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import kotlin.properties.Delegates
|
||||
import kotlin.time.Duration.Companion.microseconds
|
||||
import kotlin.time.Duration.Companion.milliseconds
|
||||
import kotlin.time.DurationUnit
|
||||
import kotlin.time.TimeSource
|
||||
|
||||
const val TIMEOUT_MS = 2_000L
|
||||
const val DISCONNECT_MS = 3_000L + TIMEOUT_MS
|
||||
@@ -79,11 +75,6 @@ class Tracker @JvmOverloads constructor(
|
||||
*/
|
||||
val allowMounting: Boolean = false,
|
||||
|
||||
/**
|
||||
* If true, the tracker will send Derived Velocity.
|
||||
*/
|
||||
var allowVelocity: Boolean = false,
|
||||
|
||||
val isHmd: Boolean = false,
|
||||
|
||||
/**
|
||||
@@ -120,19 +111,7 @@ class Tracker @JvmOverloads constructor(
|
||||
// IMU: +z forward, +x left, +y up
|
||||
// SlimeVR: +z backward, +x right, +y up
|
||||
private var _acceleration = Vector3.NULL
|
||||
private var _velocity = Vector3.NULL
|
||||
private var _magVector = Vector3.NULL
|
||||
|
||||
/**
|
||||
* Velocity state server-side differentiation based on sent poses
|
||||
*/
|
||||
private data class VelocityState(
|
||||
var prevMark: TimeSource.Monotonic.ValueTimeMark? = null,
|
||||
var prevPos: Vector3 = Vector3(0f, 0f, 0f),
|
||||
)
|
||||
|
||||
private val velocityState = VelocityState()
|
||||
|
||||
var position = Vector3.NULL
|
||||
val resetsHandler: TrackerResetsHandler = TrackerResetsHandler(this)
|
||||
val filteringHandler: TrackerFilteringHandler = TrackerFilteringHandler()
|
||||
@@ -200,11 +179,6 @@ class Tracker @JvmOverloads constructor(
|
||||
val stayAligned = StayAlignedTrackerState(this)
|
||||
val yawResetSmoothing = InterpolationHandler()
|
||||
|
||||
// Currently only used for accel resets, to add anything else, consider using a
|
||||
// subscribable event listener instead
|
||||
var accelTickCallback: ((tracker: Tracker) -> Unit)? = null
|
||||
var accelMountInProgress = false
|
||||
|
||||
init {
|
||||
// IMPORTANT: Look here for the required states of inputs
|
||||
require(!allowReset || (hasRotation && allowReset)) {
|
||||
@@ -320,13 +294,6 @@ class Tracker @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells the tracker that it received new accel data
|
||||
* Accel may be (and usually is) desynced from rotation data, so if we want the
|
||||
* latest, we need to process it here
|
||||
*/
|
||||
fun accelDataTick() = accelTickCallback?.invoke(this)
|
||||
|
||||
/**
|
||||
* A way to delay the timeout of the tracker
|
||||
*/
|
||||
@@ -378,39 +345,6 @@ class Tracker @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* If derived velocity is enabled, updates the derived velocity of the tracker,
|
||||
* calculating it based on the position displacement since the last update,
|
||||
* applying a sanity check on the time delta to filter out noise and ensure data stability.
|
||||
*/
|
||||
fun updateDerivedVelocity() {
|
||||
if (!allowVelocity || !hasPosition) {
|
||||
velocityState.prevMark = null
|
||||
_velocity = Vector3.NULL
|
||||
return
|
||||
}
|
||||
|
||||
val pos = position
|
||||
val now = TimeSource.Monotonic.markNow()
|
||||
|
||||
val prevMark = velocityState.prevMark
|
||||
if (prevMark != null) {
|
||||
val dt = now - prevMark
|
||||
if (dt in 100.microseconds..250.milliseconds) {
|
||||
val dtSeconds = dt.toDouble(DurationUnit.SECONDS)
|
||||
_velocity = Vector3(
|
||||
((pos.x - velocityState.prevPos.x) / dtSeconds).toFloat(),
|
||||
((pos.y - velocityState.prevPos.y) / dtSeconds).toFloat(),
|
||||
((pos.z - velocityState.prevPos.z) / dtSeconds).toFloat(),
|
||||
)
|
||||
} else {
|
||||
_velocity = Vector3.NULL
|
||||
}
|
||||
}
|
||||
velocityState.prevMark = now
|
||||
velocityState.prevPos = pos
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the identity-adjusted tracker rotation after the resetsHandler's corrections
|
||||
* (identity reset, drift and identity mounting).
|
||||
@@ -487,24 +421,6 @@ class Tracker @JvmOverloads constructor(
|
||||
this._acceleration = vec
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the derived velocity of the tracker.
|
||||
*/
|
||||
fun setVelocity(vec: Vector3) {
|
||||
this._velocity = if (allowVelocity) vec else Vector3.NULL
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the derived velocity of the tracker.
|
||||
*/
|
||||
fun getVelocity(): Vector3 = _velocity
|
||||
|
||||
/**
|
||||
* True if the tracker has valid velocity data.
|
||||
*/
|
||||
val hasVelocity: Boolean
|
||||
get() = allowVelocity && _velocity != Vector3.NULL
|
||||
|
||||
/**
|
||||
* True if the raw rotation is coming directly from an IMU (no cameras or lighthouses)
|
||||
* For example, flex sensor trackers are not considered as IMU trackers (see TrackerDataType)
|
||||
|
||||
@@ -39,7 +39,6 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
private var yawResetSmoothTime = 0.0f
|
||||
var saveMountingReset = false
|
||||
var resetHmdPitch = false
|
||||
var stepMounting = false
|
||||
var allowDriftCompensation = false
|
||||
var lastResetQuaternion: Quaternion? = null
|
||||
|
||||
@@ -86,6 +85,7 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
* [mountingOrientation] will apply.
|
||||
*/
|
||||
var mountRotFix = Quaternion.IDENTITY
|
||||
private set
|
||||
|
||||
/**
|
||||
* Yaw fix is set by yaw reset. This sets the current y rotation to match the
|
||||
@@ -165,7 +165,6 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
yawResetSmoothTime = config.yawResetSmoothTime
|
||||
saveMountingReset = config.saveMountingReset
|
||||
resetHmdPitch = config.resetHmdPitch
|
||||
stepMounting = config.stepMounting
|
||||
}
|
||||
|
||||
fun trySetMountingReset(quat: Quaternion) {
|
||||
@@ -194,7 +193,7 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
// make acceleration worse, so I'm just leaving this until we work that out. The
|
||||
// output of this will be world space, but with an unknown offset to heading (yaw).
|
||||
// - Butterscotch
|
||||
fun getReferenceAdjustedAccel(rawRot: Quaternion, accel: Vector3): Vector3 = (gyroFix * mountRotFix.inv() * yawFix * rawRot).sandwich(accel)
|
||||
fun getReferenceAdjustedAccel(rawRot: Quaternion, accel: Vector3): Vector3 = rawRot.sandwich(accel)
|
||||
|
||||
/**
|
||||
* Converts raw or filtered rotation into reference- and
|
||||
|
||||
@@ -435,9 +435,6 @@ class HIDCommon {
|
||||
} else {
|
||||
tracker.heartbeat() // else, something received
|
||||
}
|
||||
if (packetType == 1 || packetType == 2 || packetType == 7) {
|
||||
tracker.accelDataTick()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -424,7 +424,6 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
} else {
|
||||
tracker.setAcceleration(SENSOR_OFFSET_CORRECTION.sandwich(packet.acceleration))
|
||||
}
|
||||
tracker.accelDataTick()
|
||||
}
|
||||
tracker.dataTick()
|
||||
}
|
||||
@@ -463,7 +462,6 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
} else {
|
||||
tracker.setAcceleration(SENSOR_OFFSET_CORRECTION.sandwich(packet.acceleration))
|
||||
}
|
||||
tracker.accelDataTick()
|
||||
}
|
||||
|
||||
is UDPPacket10PingPong -> {
|
||||
@@ -492,15 +490,11 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
// Too low or high voltage should mean there is no battery or there is a measurement error
|
||||
// Some ESP can run at 2.3V, set a limit at 2V
|
||||
// Below this the tracker is definitely dead if everything is working properly
|
||||
if (packet.voltage != null) {
|
||||
if (packet.voltage!! > 2f && packet.voltage!! < 6f) {
|
||||
// Assuming floor when converting to int
|
||||
it.batteryLevel = if (packet.level < 0.01f) -1f else packet.level * 100
|
||||
} else {
|
||||
it.batteryLevel = 0f
|
||||
}
|
||||
if (packet.voltage > 2f && packet.voltage < 6f) {
|
||||
// Assuming floor when converting to int
|
||||
it.batteryLevel = if (packet.level < 0.01f) -1f else packet.level * 100
|
||||
} else {
|
||||
it.batteryLevel = packet.level * 100
|
||||
it.batteryLevel = 0f
|
||||
}
|
||||
// Server displays 0% if received 255 or -1, otherwise 0 will hide battery icon
|
||||
}
|
||||
|
||||
@@ -186,16 +186,17 @@ data class UDPPacket11Serial(var serial: String = "") : UDPPacket(11) {
|
||||
}
|
||||
|
||||
data class UDPPacket12BatteryLevel(
|
||||
var voltage: Float? = null,
|
||||
var voltage: Float = 0.0f,
|
||||
var level: Float = 0.0f,
|
||||
) : UDPPacket(12) {
|
||||
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
if (buf.remaining() >= 8) {
|
||||
voltage = UDPUtils.getSafeBufferFloat(buf)
|
||||
voltage = UDPUtils.getSafeBufferFloat(buf)
|
||||
if (buf.remaining() > 3) {
|
||||
level = UDPUtils.getSafeBufferFloat(buf)
|
||||
} else {
|
||||
level = UDPUtils.getSafeBufferFloat(buf)
|
||||
level = voltage
|
||||
voltage = 0.0f
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
package dev.slimevr.util
|
||||
|
||||
import com.jme3.system.NanoTimer
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
|
||||
class AccelAccumulator {
|
||||
var acceleration = Vector3.NULL
|
||||
private set
|
||||
var velocity = Vector3.NULL
|
||||
private set
|
||||
var offset = Vector3.NULL
|
||||
private set
|
||||
|
||||
val timer = NanoTimer()
|
||||
|
||||
fun dataTick(acceleration: Vector3, time: Float? = null) {
|
||||
timer.update()
|
||||
val deltaTime = time ?: timer.timePerFrame
|
||||
|
||||
this.acceleration = acceleration
|
||||
offset += (velocity * deltaTime) + ((acceleration * deltaTime * deltaTime) / 2f)
|
||||
velocity += acceleration * deltaTime
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ enum class OperatingSystem(
|
||||
if (currentPlatform == LINUX) {
|
||||
val isPressureVessel = System.getenv("PRESSURE_VESSEL_RUNTIME")?.isNotEmpty() == true
|
||||
if (isPressureVessel) {
|
||||
dir = System.getenv("XDG_DATA_HOME")?.let { Path(it, SLIMEVR_IDENTIFIER).toString() }
|
||||
dir = System.getenv("XDG_CONFIG_HOME")?.let { Path(it, SLIMEVR_IDENTIFIER).toString() }
|
||||
?: System.getenv("HOME")?.let { Path(it, ".local", "share", SLIMEVR_IDENTIFIER).toString() }
|
||||
if (dir != null) return dir
|
||||
}
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
package dev.slimevr.unit
|
||||
|
||||
import dev.slimevr.unit.TrackerTestUtils.assertVectorApproxEqual
|
||||
import io.github.axisangles.ktmath.Quaternion
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import org.junit.jupiter.api.DynamicTest
|
||||
import org.junit.jupiter.api.TestFactory
|
||||
import kotlin.math.atan2
|
||||
|
||||
class AccelMountTests {
|
||||
@TestFactory
|
||||
fun testAccelAlignment(): List<DynamicTest> = testSet.map { t ->
|
||||
DynamicTest.dynamicTest(
|
||||
"Alignment of accel (Expected: ${t.expected}, reference: ${t.hmd})",
|
||||
) {
|
||||
checkAlignAccel(t.hmd, t.tracker, t.expected)
|
||||
}
|
||||
}
|
||||
|
||||
fun angle(vector: Vector3): Quaternion {
|
||||
val yaw = atan2(vector.x, vector.z)
|
||||
return Quaternion.rotationAroundYAxis(yaw)
|
||||
}
|
||||
|
||||
fun checkAlignAccel(hmd: Vector3, tracker: Vector3, expected: Vector3) {
|
||||
// All we really care about is the angle difference between hmdRot and trackerRot
|
||||
val hmdRot = angle(hmd.unit()).inv()
|
||||
val trackerRot = angle(tracker.unit())
|
||||
val result = (trackerRot * hmdRot).sandwichUnitZ()
|
||||
|
||||
assertVectorApproxEqual(
|
||||
expected,
|
||||
result,
|
||||
"Resulting vector is not equal to reference vector ($expected vs $result)",
|
||||
)
|
||||
}
|
||||
|
||||
data class AlignTest(val hmd: Vector3, val tracker: Vector3, val expected: Vector3)
|
||||
|
||||
companion object {
|
||||
val testSet = arrayOf(
|
||||
// Front mount
|
||||
AlignTest(Vector3.POS_X, Vector3.POS_X, Vector3.POS_Z),
|
||||
AlignTest(Vector3.NEG_X, Vector3.NEG_X, Vector3.POS_Z),
|
||||
AlignTest(Vector3.POS_Z, Vector3.POS_Z, Vector3.POS_Z),
|
||||
AlignTest(Vector3.NEG_Z, Vector3.NEG_Z, Vector3.POS_Z),
|
||||
// Right mount
|
||||
AlignTest(Vector3.POS_X, Vector3.NEG_Z, Vector3.POS_X),
|
||||
AlignTest(Vector3.NEG_X, Vector3.POS_Z, Vector3.POS_X),
|
||||
AlignTest(Vector3.POS_Z, Vector3.POS_X, Vector3.POS_X),
|
||||
AlignTest(Vector3.NEG_Z, Vector3.NEG_X, Vector3.POS_X),
|
||||
// Back mount
|
||||
AlignTest(Vector3.POS_X, Vector3.NEG_X, Vector3.NEG_Z),
|
||||
AlignTest(Vector3.NEG_X, Vector3.POS_X, Vector3.NEG_Z),
|
||||
AlignTest(Vector3.POS_Z, Vector3.NEG_Z, Vector3.NEG_Z),
|
||||
AlignTest(Vector3.NEG_Z, Vector3.POS_Z, Vector3.NEG_Z),
|
||||
// Left mount
|
||||
AlignTest(Vector3.POS_X, Vector3.POS_Z, Vector3.NEG_X),
|
||||
AlignTest(Vector3.NEG_X, Vector3.NEG_Z, Vector3.NEG_X),
|
||||
AlignTest(Vector3.POS_Z, Vector3.NEG_X, Vector3.NEG_X),
|
||||
AlignTest(Vector3.NEG_Z, Vector3.POS_X, Vector3.NEG_X),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -64,9 +64,6 @@ class SkeletonResetTests {
|
||||
|
||||
@Test
|
||||
fun testSkeletonMountReset() {
|
||||
// TODO: Failing because of changed default mounting reset
|
||||
return
|
||||
|
||||
val trackers = TestTrackerSet()
|
||||
|
||||
// Initialize skeleton and everything
|
||||
|
||||
@@ -84,11 +84,4 @@ object TrackerTestUtils {
|
||||
fun vectorApproxEqual(v1: Vector3, v2: Vector3, tolerance: Float = FastMath.ZERO_TOLERANCE): Boolean = FastMath.isApproxEqual(v1.x, v2.x, tolerance) &&
|
||||
FastMath.isApproxEqual(v1.y, v2.y, tolerance) &&
|
||||
FastMath.isApproxEqual(v1.z, v2.z, tolerance)
|
||||
|
||||
fun assertVectorApproxEqual(expected: Vector3, actual: Vector3, message: String? = null) {
|
||||
if (!vectorApproxEqual(expected, actual)) {
|
||||
AssertionFailureBuilder.assertionFailure().message(message)
|
||||
.expected(expected).actual(actual).buildAndThrow()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,6 @@ abstract class ProtobufBridge(@JvmField protected val bridgeName: String) : ISte
|
||||
target.position = source.position
|
||||
target.setRotation(source.getRotation())
|
||||
target.status = source.status
|
||||
target.setVelocity(source.getVelocity())
|
||||
target.batteryLevel = source.batteryLevel
|
||||
target.batteryVoltage = source.batteryVoltage
|
||||
target.dataTick()
|
||||
@@ -103,17 +102,16 @@ abstract class ProtobufBridge(@JvmField protected val bridgeName: String) : ISte
|
||||
}
|
||||
|
||||
@VRServerThread
|
||||
protected fun writeTrackerUpdate(localTracker: Tracker) {
|
||||
val builder = ProtobufMessages.Position.newBuilder()
|
||||
.setTrackerId(localTracker.id)
|
||||
|
||||
protected fun writeTrackerUpdate(localTracker: Tracker?) {
|
||||
val builder = ProtobufMessages.Position.newBuilder().setTrackerId(
|
||||
localTracker!!.id,
|
||||
)
|
||||
if (localTracker.hasPosition) {
|
||||
val pos = localTracker.position
|
||||
builder.setX(pos.x)
|
||||
builder.setY(pos.y)
|
||||
builder.setZ(pos.z)
|
||||
}
|
||||
|
||||
if (localTracker.hasRotation) {
|
||||
val rot = localTracker.getRotation()
|
||||
builder.setQx(rot.x)
|
||||
@@ -121,19 +119,7 @@ abstract class ProtobufBridge(@JvmField protected val bridgeName: String) : ISte
|
||||
builder.setQz(rot.z)
|
||||
builder.setQw(rot.w)
|
||||
}
|
||||
|
||||
if (localTracker.hasVelocity) {
|
||||
val vel = localTracker.getVelocity()
|
||||
builder.setVx(vel.x)
|
||||
builder.setVy(vel.y)
|
||||
builder.setVz(vel.z)
|
||||
}
|
||||
|
||||
sendMessage(
|
||||
ProtobufMessage.newBuilder()
|
||||
.setPosition(builder)
|
||||
.build(),
|
||||
)
|
||||
sendMessage(ProtobufMessage.newBuilder().setPosition(builder).build())
|
||||
}
|
||||
|
||||
@VRServerThread
|
||||
@@ -183,16 +169,6 @@ abstract class ProtobufBridge(@JvmField protected val bridgeName: String) : ISte
|
||||
),
|
||||
|
||||
)
|
||||
if (positionMessage.hasVx()) {
|
||||
tracker
|
||||
.setVelocity(
|
||||
Vector3(
|
||||
positionMessage.vx,
|
||||
positionMessage.vy,
|
||||
positionMessage.vz,
|
||||
),
|
||||
)
|
||||
}
|
||||
tracker.dataTick()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1052,48 +1052,6 @@ public final class ProtobufMessages {
|
||||
* @return The dataSource.
|
||||
*/
|
||||
dev.slimevr.desktop.platform.ProtobufMessages.Position.DataSource getDataSource();
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return Whether the vx field is set.
|
||||
*/
|
||||
boolean hasVx();
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return The vx.
|
||||
*/
|
||||
float getVx();
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return Whether the vy field is set.
|
||||
*/
|
||||
boolean hasVy();
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return The vy.
|
||||
*/
|
||||
float getVy();
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return Whether the vz field is set.
|
||||
*/
|
||||
boolean hasVz();
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return The vz.
|
||||
*/
|
||||
float getVz();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1458,75 +1416,6 @@ public final class ProtobufMessages {
|
||||
: result;
|
||||
}
|
||||
|
||||
public static final int VX_FIELD_NUMBER = 10;
|
||||
private float vx_ = 0F;
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return Whether the vx field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasVx() {
|
||||
return ((bitField0_ & 0x00000010) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return The vx.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getVx() {
|
||||
return vx_;
|
||||
}
|
||||
|
||||
public static final int VY_FIELD_NUMBER = 11;
|
||||
private float vy_ = 0F;
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return Whether the vy field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasVy() {
|
||||
return ((bitField0_ & 0x00000020) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return The vy.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getVy() {
|
||||
return vy_;
|
||||
}
|
||||
|
||||
public static final int VZ_FIELD_NUMBER = 12;
|
||||
private float vz_ = 0F;
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return Whether the vz field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasVz() {
|
||||
return ((bitField0_ & 0x00000040) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return The vz.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getVz() {
|
||||
return vz_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
|
||||
@java.lang.Override
|
||||
@@ -1571,15 +1460,6 @@ public final class ProtobufMessages {
|
||||
if (((bitField0_ & 0x00000008) != 0)) {
|
||||
output.writeEnum(9, dataSource_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000010) != 0)) {
|
||||
output.writeFloat(10, vx_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000020) != 0)) {
|
||||
output.writeFloat(11, vy_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000040) != 0)) {
|
||||
output.writeFloat(12, vz_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@@ -1626,18 +1506,6 @@ public final class ProtobufMessages {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(9, dataSource_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000010) != 0)) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeFloatSize(10, vx_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000020) != 0)) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeFloatSize(11, vy_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000040) != 0)) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeFloatSize(12, vz_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -1732,42 +1600,6 @@ public final class ProtobufMessages {
|
||||
if (dataSource_ != other.dataSource_)
|
||||
return false;
|
||||
}
|
||||
if (hasVx() != other.hasVx())
|
||||
return false;
|
||||
if (hasVx()) {
|
||||
if (
|
||||
java.lang.Float.floatToIntBits(getVx())
|
||||
!= java.lang.Float
|
||||
.floatToIntBits(
|
||||
other.getVx()
|
||||
)
|
||||
)
|
||||
return false;
|
||||
}
|
||||
if (hasVy() != other.hasVy())
|
||||
return false;
|
||||
if (hasVy()) {
|
||||
if (
|
||||
java.lang.Float.floatToIntBits(getVy())
|
||||
!= java.lang.Float
|
||||
.floatToIntBits(
|
||||
other.getVy()
|
||||
)
|
||||
)
|
||||
return false;
|
||||
}
|
||||
if (hasVz() != other.hasVz())
|
||||
return false;
|
||||
if (hasVz()) {
|
||||
if (
|
||||
java.lang.Float.floatToIntBits(getVz())
|
||||
!= java.lang.Float
|
||||
.floatToIntBits(
|
||||
other.getVz()
|
||||
)
|
||||
)
|
||||
return false;
|
||||
}
|
||||
if (!getUnknownFields().equals(other.getUnknownFields()))
|
||||
return false;
|
||||
return true;
|
||||
@@ -1834,30 +1666,6 @@ public final class ProtobufMessages {
|
||||
hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + dataSource_;
|
||||
}
|
||||
if (hasVx()) {
|
||||
hash = (37 * hash) + VX_FIELD_NUMBER;
|
||||
hash = (53 * hash)
|
||||
+ java.lang.Float
|
||||
.floatToIntBits(
|
||||
getVx()
|
||||
);
|
||||
}
|
||||
if (hasVy()) {
|
||||
hash = (37 * hash) + VY_FIELD_NUMBER;
|
||||
hash = (53 * hash)
|
||||
+ java.lang.Float
|
||||
.floatToIntBits(
|
||||
getVy()
|
||||
);
|
||||
}
|
||||
if (hasVz()) {
|
||||
hash = (37 * hash) + VZ_FIELD_NUMBER;
|
||||
hash = (53 * hash)
|
||||
+ java.lang.Float
|
||||
.floatToIntBits(
|
||||
getVz()
|
||||
);
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -2033,9 +1841,6 @@ public final class ProtobufMessages {
|
||||
qz_ = 0F;
|
||||
qw_ = 0F;
|
||||
dataSource_ = 0;
|
||||
vx_ = 0F;
|
||||
vy_ = 0F;
|
||||
vz_ = 0F;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -2106,18 +1911,6 @@ public final class ProtobufMessages {
|
||||
result.dataSource_ = dataSource_;
|
||||
to_bitField0_ |= 0x00000008;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000200) != 0)) {
|
||||
result.vx_ = vx_;
|
||||
to_bitField0_ |= 0x00000010;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000400) != 0)) {
|
||||
result.vy_ = vy_;
|
||||
to_bitField0_ |= 0x00000020;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000800) != 0)) {
|
||||
result.vz_ = vz_;
|
||||
to_bitField0_ |= 0x00000040;
|
||||
}
|
||||
result.bitField0_ |= to_bitField0_;
|
||||
}
|
||||
|
||||
@@ -2167,15 +1960,6 @@ public final class ProtobufMessages {
|
||||
if (other.hasDataSource()) {
|
||||
setDataSourceValue(other.getDataSourceValue());
|
||||
}
|
||||
if (other.hasVx()) {
|
||||
setVx(other.getVx());
|
||||
}
|
||||
if (other.hasVy()) {
|
||||
setVy(other.getVy());
|
||||
}
|
||||
if (other.hasVz()) {
|
||||
setVz(other.getVz());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -2248,21 +2032,6 @@ public final class ProtobufMessages {
|
||||
bitField0_ |= 0x00000100;
|
||||
break;
|
||||
} // case 72
|
||||
case 85: {
|
||||
vx_ = input.readFloat();
|
||||
bitField0_ |= 0x00000200;
|
||||
break;
|
||||
} // case 85
|
||||
case 93: {
|
||||
vy_ = input.readFloat();
|
||||
bitField0_ |= 0x00000400;
|
||||
break;
|
||||
} // case 93
|
||||
case 101: {
|
||||
vz_ = input.readFloat();
|
||||
bitField0_ |= 0x00000800;
|
||||
break;
|
||||
} // case 101
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
@@ -2695,150 +2464,6 @@ public final class ProtobufMessages {
|
||||
return this;
|
||||
}
|
||||
|
||||
private float vx_;
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return Whether the vx field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasVx() {
|
||||
return ((bitField0_ & 0x00000200) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return The vx.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getVx() {
|
||||
return vx_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @param value The vx to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setVx(float value) {
|
||||
|
||||
vx_ = value;
|
||||
bitField0_ |= 0x00000200;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vx = 10;</code>
|
||||
*
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearVx() {
|
||||
bitField0_ = (bitField0_ & ~0x00000200);
|
||||
vx_ = 0F;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private float vy_;
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return Whether the vy field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasVy() {
|
||||
return ((bitField0_ & 0x00000400) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return The vy.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getVy() {
|
||||
return vy_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @param value The vy to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setVy(float value) {
|
||||
|
||||
vy_ = value;
|
||||
bitField0_ |= 0x00000400;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vy = 11;</code>
|
||||
*
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearVy() {
|
||||
bitField0_ = (bitField0_ & ~0x00000400);
|
||||
vy_ = 0F;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private float vz_;
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return Whether the vz field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasVz() {
|
||||
return ((bitField0_ & 0x00000800) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return The vz.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public float getVz() {
|
||||
return vz_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @param value The vz to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setVz(float value) {
|
||||
|
||||
vz_ = value;
|
||||
bitField0_ |= 0x00000800;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional float vz = 12;</code>
|
||||
*
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearVz() {
|
||||
bitField0_ = (bitField0_ & ~0x00000800);
|
||||
vz_ = 0F;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:messages.Position)
|
||||
}
|
||||
|
||||
@@ -9398,7 +9023,7 @@ public final class ProtobufMessages {
|
||||
+
|
||||
"ngPong\"#\n\007Version\022\030\n\020protocol_version\030\001 "
|
||||
+
|
||||
"\001(\005\"\333\002\n\010Position\022\022\n\ntracker_id\030\001 \001(\005\022\016\n\001"
|
||||
"\001(\005\"\223\002\n\010Position\022\022\n\ntracker_id\030\001 \001(\005\022\016\n\001"
|
||||
+
|
||||
"x\030\002 \001(\002H\000\210\001\001\022\016\n\001y\030\003 \001(\002H\001\210\001\001\022\016\n\001z\030\004 \001(\002H"
|
||||
+
|
||||
@@ -9406,71 +9031,67 @@ public final class ProtobufMessages {
|
||||
+
|
||||
"\022\n\n\002qw\030\010 \001(\002\0227\n\013data_source\030\t \001(\0162\035.mess"
|
||||
+
|
||||
"ages.Position.DataSourceH\003\210\001\001\022\017\n\002vx\030\n \001("
|
||||
"ages.Position.DataSourceH\003\210\001\001\"8\n\nDataSou"
|
||||
+
|
||||
"\002H\004\210\001\001\022\017\n\002vy\030\013 \001(\002H\005\210\001\001\022\017\n\002vz\030\014 \001(\002H\006\210\001\001"
|
||||
"rce\022\010\n\004NONE\020\000\022\007\n\003IMU\020\001\022\r\n\tPRECISION\020\002\022\010\n"
|
||||
+
|
||||
"\"8\n\nDataSource\022\010\n\004NONE\020\000\022\007\n\003IMU\020\001\022\r\n\tPRE"
|
||||
"\004FULL\020\003B\004\n\002_xB\004\n\002_yB\004\n\002_zB\016\n\014_data_sourc"
|
||||
+
|
||||
"CISION\020\002\022\010\n\004FULL\020\003B\004\n\002_xB\004\n\002_yB\004\n\002_zB\016\n\014"
|
||||
"e\"\227\001\n\nUserAction\022\014\n\004name\030\001 \001(\t\022C\n\020action"
|
||||
+
|
||||
"_data_sourceB\005\n\003_vxB\005\n\003_vyB\005\n\003_vz\"\227\001\n\nUs"
|
||||
"_arguments\030\002 \003(\0132).messages.UserAction.A"
|
||||
+
|
||||
"erAction\022\014\n\004name\030\001 \001(\t\022C\n\020action_argumen"
|
||||
"ctionArgumentsEntry\0326\n\024ActionArgumentsEn"
|
||||
+
|
||||
"ts\030\002 \003(\0132).messages.UserAction.ActionArg"
|
||||
"try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\014T"
|
||||
+
|
||||
"umentsEntry\0326\n\024ActionArgumentsEntry\022\013\n\003k"
|
||||
"rackerAdded\022\022\n\ntracker_id\030\001 \001(\005\022\026\n\016track"
|
||||
+
|
||||
"ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\014TrackerAd"
|
||||
"er_serial\030\002 \001(\t\022\024\n\014tracker_name\030\003 \001(\t\022\024\n"
|
||||
+
|
||||
"ded\022\022\n\ntracker_id\030\001 \001(\005\022\026\n\016tracker_seria"
|
||||
"\014tracker_role\030\004 \001(\005\022\024\n\014manufacturer\030\005 \001("
|
||||
+
|
||||
"l\030\002 \001(\t\022\024\n\014tracker_name\030\003 \001(\t\022\024\n\014tracker"
|
||||
"\t\"\374\002\n\rTrackerStatus\022\022\n\ntracker_id\030\001 \001(\005\022"
|
||||
+
|
||||
"_role\030\004 \001(\005\022\024\n\014manufacturer\030\005 \001(\t\"\374\002\n\rTr"
|
||||
".\n\006status\030\002 \001(\0162\036.messages.TrackerStatus"
|
||||
+
|
||||
"ackerStatus\022\022\n\ntracker_id\030\001 \001(\005\022.\n\006statu"
|
||||
".Status\0221\n\005extra\030\003 \003(\0132\".messages.Tracke"
|
||||
+
|
||||
"s\030\002 \001(\0162\036.messages.TrackerStatus.Status\022"
|
||||
"rStatus.ExtraEntry\022;\n\nconfidence\030\004 \001(\0162\""
|
||||
+
|
||||
"1\n\005extra\030\003 \003(\0132\".messages.TrackerStatus."
|
||||
".messages.TrackerStatus.ConfidenceH\000\210\001\001\032"
|
||||
+
|
||||
"ExtraEntry\022;\n\nconfidence\030\004 \001(\0162\".message"
|
||||
",\n\nExtraEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
|
||||
+
|
||||
"s.TrackerStatus.ConfidenceH\000\210\001\001\032,\n\nExtra"
|
||||
"\t:\0028\001\"E\n\006Status\022\020\n\014DISCONNECTED\020\000\022\006\n\002OK\020"
|
||||
+
|
||||
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n"
|
||||
"\001\022\010\n\004BUSY\020\002\022\t\n\005ERROR\020\003\022\014\n\010OCCLUDED\020\004\"3\n\n"
|
||||
+
|
||||
"\006Status\022\020\n\014DISCONNECTED\020\000\022\006\n\002OK\020\001\022\010\n\004BUS"
|
||||
"Confidence\022\006\n\002NO\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\005\022"
|
||||
+
|
||||
"Y\020\002\022\t\n\005ERROR\020\003\022\014\n\010OCCLUDED\020\004\"3\n\nConfiden"
|
||||
"\010\n\004HIGH\020\nB\r\n\013_confidence\"I\n\007Battery\022\022\n\nt"
|
||||
+
|
||||
"ce\022\006\n\002NO\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\005\022\010\n\004HIGH\020"
|
||||
"racker_id\030\001 \001(\005\022\025\n\rbattery_level\030\002 \001(\002\022\023"
|
||||
+
|
||||
"\nB\r\n\013_confidence\"I\n\007Battery\022\022\n\ntracker_i"
|
||||
"\n\013is_charging\030\003 \001(\010\"\241\002\n\017ProtobufMessage\022"
|
||||
+
|
||||
"d\030\001 \001(\005\022\025\n\rbattery_level\030\002 \001(\002\022\023\n\013is_cha"
|
||||
"&\n\010position\030\001 \001(\0132\022.messages.PositionH\000\022"
|
||||
+
|
||||
"rging\030\003 \001(\010\"\241\002\n\017ProtobufMessage\022&\n\010posit"
|
||||
"+\n\013user_action\030\002 \001(\0132\024.messages.UserActi"
|
||||
+
|
||||
"ion\030\001 \001(\0132\022.messages.PositionH\000\022+\n\013user_"
|
||||
"onH\000\022/\n\rtracker_added\030\003 \001(\0132\026.messages.T"
|
||||
+
|
||||
"action\030\002 \001(\0132\024.messages.UserActionH\000\022/\n\r"
|
||||
"rackerAddedH\000\0221\n\016tracker_status\030\004 \001(\0132\027."
|
||||
+
|
||||
"tracker_added\030\003 \001(\0132\026.messages.TrackerAd"
|
||||
"messages.TrackerStatusH\000\022$\n\007battery\030\005 \001("
|
||||
+
|
||||
"dedH\000\0221\n\016tracker_status\030\004 \001(\0132\027.messages"
|
||||
"\0132\021.messages.BatteryH\000\022$\n\007version\030\006 \001(\0132"
|
||||
+
|
||||
".TrackerStatusH\000\022$\n\007battery\030\005 \001(\0132\021.mess"
|
||||
"\021.messages.VersionH\000B\t\n\007messageB2\n\034dev.s"
|
||||
+
|
||||
"ages.BatteryH\000\022$\n\007version\030\006 \001(\0132\021.messag"
|
||||
"limevr.desktop.platformB\020ProtobufMessage"
|
||||
+
|
||||
"es.VersionH\000B\t\n\007messageB2\n\034dev.slimevr.d"
|
||||
+
|
||||
"esktop.platformB\020ProtobufMessagesH\003b\006pro"
|
||||
+
|
||||
"to3"
|
||||
"sH\003b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(
|
||||
@@ -9492,7 +9113,7 @@ public final class ProtobufMessages {
|
||||
internal_static_messages_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_messages_Position_descriptor,
|
||||
new java.lang.String[] { "TrackerId", "X", "Y", "Z", "Qx", "Qy", "Qz", "Qw",
|
||||
"DataSource", "Vx", "Vy", "Vz", }
|
||||
"DataSource", }
|
||||
);
|
||||
internal_static_messages_UserAction_descriptor = getDescriptor().getMessageTypes().get(3);
|
||||
internal_static_messages_UserAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
|
||||
+10
-13
@@ -66,7 +66,7 @@ public class UnixSocketBridge extends SteamVRBridge implements AutoCloseable {
|
||||
public void run() {
|
||||
try {
|
||||
this.server = createSocket();
|
||||
while (!Thread.interrupted()) {
|
||||
while (true) {
|
||||
if (this.channel == null) {
|
||||
reportDisconnected();
|
||||
this.selector = Selector.open();
|
||||
@@ -100,24 +100,21 @@ public class UnixSocketBridge extends SteamVRBridge implements AutoCloseable {
|
||||
} catch (IOException ioError) {
|
||||
this.resetChannel();
|
||||
ioError.printStackTrace();
|
||||
Thread.sleep(10);
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (ClosedByInterruptException | InterruptedException e) {
|
||||
// Exit the thread gracefully.
|
||||
} catch (ClosedByInterruptException e) {
|
||||
// We've been told to stop
|
||||
} catch (IOException e) {
|
||||
LogManager.severe("[" + bridgeName + "] Exception in runner thread", e);
|
||||
} finally {
|
||||
if (this.channel != null) {
|
||||
try {
|
||||
this.resetChannel();
|
||||
} catch (IOException e) {
|
||||
// Ignore the exception, we're shutting down anyway.
|
||||
}
|
||||
}
|
||||
this.socketFile.delete();
|
||||
}
|
||||
|
||||
this.socketFile.delete();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+7
-10
@@ -47,7 +47,7 @@ public class WindowsNamedPipeBridge extends SteamVRBridge
|
||||
public void run() {
|
||||
try {
|
||||
pipe = new WindowsNamedPipe(this.pipeName, 1);
|
||||
while (!Thread.interrupted()) {
|
||||
while (true) {
|
||||
boolean pipesUpdated = false;
|
||||
if (connection == null) {
|
||||
// Report that our pipe is disconnected right now
|
||||
@@ -73,21 +73,18 @@ public class WindowsNamedPipeBridge extends SteamVRBridge
|
||||
if (connection != null && connection.getState() == PipeState.OPEN) {
|
||||
connection.waitForData(10);
|
||||
} else {
|
||||
Thread.sleep(10);
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
} catch (InterruptedException e) {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LogManager.severe("[" + bridgeName + "] Exception in runner thread", e);
|
||||
} catch (InterruptedException e) {
|
||||
// Exit the thread gracefully.
|
||||
} finally {
|
||||
LogManager.info("[" + bridgeName + "] Bridge thread exiting");
|
||||
if (pipe != null) {
|
||||
pipe.close();
|
||||
pipe = null;
|
||||
}
|
||||
}
|
||||
pipe.close();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-6
@@ -61,12 +61,7 @@ public class WindowsNamedPipeRpcBridge implements WindowsNamedPipe.PipeMessageRe
|
||||
} catch (IOException e) {
|
||||
LogManager.severe("[SolarXR RPC Bridge] Exception in runner thread", e);
|
||||
} catch (InterruptedException e) {
|
||||
// Exit the thread gracefully.
|
||||
} finally {
|
||||
if (this.pipe != null) {
|
||||
this.pipe.close();
|
||||
this.pipe = null;
|
||||
}
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
Submodule solarxr-protocol updated: 28bef9cbbe...5d572629c9.
Reference in new issue
Block a user