Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f307605cc | ||
|
|
185dc8d674 | ||
|
|
55d6a01a4c | ||
|
|
34f357572a | ||
|
|
1aaf01f2ca | ||
|
|
bc5f9a17c4 | ||
|
|
7231f46804 | ||
|
|
b467af8c46 | ||
|
|
4393a6f137 | ||
|
|
5d773a37ab | ||
|
|
17306c1976 | ||
|
|
6dfc8a8101 | ||
|
|
ac5a68d33d | ||
|
|
f2d663c341 | ||
|
|
4cab877daa | ||
|
|
71366b9d52 | ||
|
|
de2dee45e4 | ||
|
|
522ec4c96a | ||
|
|
dc2937bdb0 | ||
|
|
57aaf2e7ee | ||
|
|
b30e4dadbe | ||
|
|
9a5c694278 | ||
|
|
f6bad3f3de | ||
|
|
5a4d1399b7 | ||
|
|
7fc0c88331 | ||
|
|
9eb63b6fb9 | ||
|
|
50620dd42f | ||
|
|
7b1e4a84d3 |
No files matched your search
@@ -1 +1,10 @@
|
||||
use flake
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
|
||||
fi
|
||||
|
||||
nix_direnv_watch_file rust-toolchain.toml
|
||||
nix_direnv_watch_file package.json
|
||||
if ! use flake . --impure
|
||||
then
|
||||
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
|
||||
fi
|
||||
@@ -36,6 +36,7 @@ build/
|
||||
|
||||
# direnv has been claimed for Nix usage
|
||||
.direnv/
|
||||
.devenv
|
||||
|
||||
# Ignore Android local properties
|
||||
local.properties
|
||||
@@ -19,3 +19,4 @@ strip = "debuginfo" # Only affects Unix binaries with DWARF
|
||||
[patch.crates-io]
|
||||
tauri = { git = "https://github.com/imurx/tauri", branch = "ipc-backport" }
|
||||
tauri-runtime = { git = "https://github.com/imurx/tauri", branch = "ipc-backport" }
|
||||
tauri-build = { git = "https://github.com/imurx/tauri", branch = "ipc-backport" }
|
||||
@@ -48,7 +48,6 @@ work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
tracking (FBT) in virtual reality. With no base station required, SlimeVR makes wireless
|
||||
VR FBT affordable and comfortable.
|
||||
</p>
|
||||
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">dev.slimevr.SlimeVR.desktop</launchable>
|
||||
@@ -59,6 +58,14 @@ work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<releases>
|
||||
<release version="0.9.1" date="2023-08-30"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.1</url></release>
|
||||
<release version="0.9.1-rc.4" type="development" date="2023-08-28"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.1-rc.4</url></release>
|
||||
<release version="0.9.1-rc.3" type="development" date="2023-08-19"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.1-rc.3</url></release>
|
||||
<release version="0.9.1-rc.2" type="development" date="2023-08-15"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.1-rc.2</url></release>
|
||||
<release version="0.9.1-rc.1" type="development" date="2023-08-13"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.1-rc.1</url></release>
|
||||
<release version="0.9.0" date="2023-08-05"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.0</url></release>
|
||||
<release version="0.9.0-rc.2" type="development" date="2023-08-02"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.0-rc.2</url></release>
|
||||
<release version="0.9.0-rc.1" type="development" date="2023-07-31"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.9.0-rc.1</url></release>
|
||||
<release version="0.8.3" date="2023-07-09"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.8.3</url></release>
|
||||
<release version="0.8.2" date="2023-07-09"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.8.2</url></release>
|
||||
<release version="0.8.2-rc.1" type="development" date="2023-07-07"><url>https://github.com/SlimeVR/SlimeVR-Server/releases/tag/v0.8.2-rc.1</url></release>
|
||||
|
||||
@@ -1,15 +1,69 @@
|
||||
{
|
||||
"nodes": {
|
||||
"devenv": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"nix": "nix",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1692203620,
|
||||
"narHash": "sha256-9SF/H8oCWv166q5o+JtV7tK+koydgFMu02HCB27UWpU=",
|
||||
"owner": "cachix",
|
||||
"repo": "devenv",
|
||||
"rev": "eee80243720b7f284128873a9694a520d9967b2f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cachix",
|
||||
"repo": "devenv",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1673956053,
|
||||
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1690933134,
|
||||
"narHash": "sha256-ab989mN63fQZBFrkk4Q8bYxQCktuHmBIBqUG1jl6/FQ=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "59cf3f1447cfc75087e7273b04b31e689a8599fb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "flake-parts",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1689068808,
|
||||
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
||||
"lastModified": 1685518550,
|
||||
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
||||
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -19,15 +73,12 @@
|
||||
}
|
||||
},
|
||||
"flake-utils_2": {
|
||||
"inputs": {
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1681202837,
|
||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
||||
"lastModified": 1653893745,
|
||||
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
||||
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,28 +87,111 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"devenv",
|
||||
"pre-commit-hooks",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1660459072,
|
||||
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"lowdown-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1633514407,
|
||||
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=",
|
||||
"owner": "kristapsdz",
|
||||
"repo": "lowdown",
|
||||
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "kristapsdz",
|
||||
"repo": "lowdown",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mk-shell-bin": {
|
||||
"locked": {
|
||||
"lastModified": 1677004959,
|
||||
"narHash": "sha256-/uEkr1UkJrh11vD02aqufCxtbF5YnhRTIKlx5kyvf+I=",
|
||||
"owner": "rrbutani",
|
||||
"repo": "nix-mk-shell-bin",
|
||||
"rev": "ff5d8bd4d68a347be5042e2f16caee391cd75887",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "rrbutani",
|
||||
"repo": "nix-mk-shell-bin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix": {
|
||||
"inputs": {
|
||||
"lowdown-src": "lowdown-src",
|
||||
"nixpkgs": [
|
||||
"devenv",
|
||||
"nixpkgs"
|
||||
],
|
||||
"nixpkgs-regression": "nixpkgs-regression"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1676545802,
|
||||
"narHash": "sha256-EK4rZ+Hd5hsvXnzSzk2ikhStJnD63odF7SzsQ8CuSPU=",
|
||||
"owner": "domenkozar",
|
||||
"repo": "nix",
|
||||
"rev": "7c91803598ffbcfe4a55c44ac6d49b2cf07a527f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "domenkozar",
|
||||
"ref": "relaxed-flakes",
|
||||
"repo": "nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix2container": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1688922987,
|
||||
"narHash": "sha256-RnQwrCD5anqWfyDAVbfFIeU+Ha6cwt5QcIwIkaGRzQw=",
|
||||
"owner": "nlewo",
|
||||
"repo": "nix2container",
|
||||
"rev": "ab381a7d714ebf96a83882264245dbd34f0a7ec8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nlewo",
|
||||
"repo": "nix2container",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1691654369,
|
||||
"narHash": "sha256-gSILTEx1jRaJjwZxRlnu3ZwMn1FVNk80qlwiCX8kmpo=",
|
||||
"lastModified": 1678875422,
|
||||
"narHash": "sha256-T3o6NcQPwXjxJMn2shz86Chch4ljXgZn746c2caGxd8=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-unstable",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1681358109,
|
||||
"narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "96ba1c52e54e74c3197f4d43026b3f3d92e83ff9",
|
||||
"rev": "126f49a01de5b7e35a43fd43f891ecf6d3a51459",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -67,32 +201,109 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"rust-overlay": "rust-overlay"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1691892594,
|
||||
"narHash": "sha256-Lt9/WUnI/ZqBYnHOC3n6Lg5jTfd/ZI+39jZx5HmolSQ=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "c638e10caf94caaa97fb1df74e3bb467dc9b92db",
|
||||
"dir": "lib",
|
||||
"lastModified": 1690881714,
|
||||
"narHash": "sha256-h/nXluEqdiQHs1oSgkOOWF+j8gcJMWhwnZ9PFabN6q0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9e1960bc196baf6881340d53dccb203a951745a2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"dir": "lib",
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-regression": {
|
||||
"locked": {
|
||||
"lastModified": 1643052045,
|
||||
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1685801374,
|
||||
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-23.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1692356644,
|
||||
"narHash": "sha256-AYkPFT+CbCVSBmh0WwIzPpwhEJ4Yy3A7JZvUkGJIg5o=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8ecc900b2f695d74dea35a92f8a9f9b32c8ea33d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pre-commit-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": [
|
||||
"devenv",
|
||||
"flake-compat"
|
||||
],
|
||||
"flake-utils": "flake-utils",
|
||||
"gitignore": "gitignore",
|
||||
"nixpkgs": [
|
||||
"devenv",
|
||||
"nixpkgs"
|
||||
],
|
||||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1688056373,
|
||||
"narHash": "sha256-2+SDlNRTKsgo3LBRiMUcoEUb6sDViRNQhzJquZ4koOI=",
|
||||
"owner": "cachix",
|
||||
"repo": "pre-commit-hooks.nix",
|
||||
"rev": "5843cf069272d92b60c3ed9e55b7a8989c01d4c7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cachix",
|
||||
"repo": "pre-commit-hooks.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"devenv": "devenv",
|
||||
"flake-parts": "flake-parts",
|
||||
"mk-shell-bin": "mk-shell-bin",
|
||||
"nix2container": "nix2container",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
@@ -107,21 +318,6 @@
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_2": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
@@ -1,87 +1,109 @@
|
||||
{
|
||||
description = "Server app for SlimeVR ecosystem";
|
||||
description = "Affordable full-body tracking for VR!";
|
||||
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
devenv.url = "github:cachix/devenv";
|
||||
nix2container.url = "github:nlewo/nix2container";
|
||||
nix2container.inputs.nixpkgs.follows = "nixpkgs";
|
||||
mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin";
|
||||
};
|
||||
|
||||
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
nixConfig = {
|
||||
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
||||
extra-substituters = "https://devenv.cachix.org";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
rust-overlay,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(
|
||||
system: let
|
||||
overlays = [(import rust-overlay)];
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
curl
|
||||
gcc
|
||||
openssl
|
||||
pkgconfig
|
||||
which
|
||||
zlib
|
||||
outputs = inputs @ {flake-parts, ...}:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
inputs.devenv.flakeModule
|
||||
];
|
||||
systems = ["x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
|
||||
|
||||
freetype
|
||||
expat
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
appimagekit
|
||||
atk
|
||||
cairo
|
||||
dbus
|
||||
dbus.lib
|
||||
dprint
|
||||
gdk-pixbuf
|
||||
glib.out
|
||||
gobject-introspection
|
||||
gtk3
|
||||
harfbuzz
|
||||
libffi
|
||||
libsoup_3
|
||||
openssl.out
|
||||
pango
|
||||
pkg-config
|
||||
treefmt
|
||||
webkitgtk_4_1
|
||||
zlib
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gst_all_1.gst-plugins-good
|
||||
gst_all_1.gst-plugins-bad
|
||||
librsvg
|
||||
perSystem = {
|
||||
config,
|
||||
self',
|
||||
inputs',
|
||||
pkgs,
|
||||
system,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# Per-system attributes can be defined here. The self' and inputs'
|
||||
# module parameters provide easy access to attributes of the same
|
||||
# system.
|
||||
|
||||
# Some nice things to have
|
||||
exa
|
||||
fd
|
||||
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
||||
# packages.default = pkgs.hello;
|
||||
|
||||
jdk17 # JDK17
|
||||
nodejs
|
||||
gradle
|
||||
];
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs =
|
||||
nativeBuildInputs
|
||||
++ [
|
||||
];
|
||||
buildInputs =
|
||||
buildInputs
|
||||
++ [
|
||||
rustTarget
|
||||
devenv.shells.default = {
|
||||
name = "slimevr";
|
||||
|
||||
imports = [
|
||||
# This is just like the imports in devenv.nix.
|
||||
# See https://devenv.sh/guides/using-with-flake-parts/#import-a-devenv-module
|
||||
# ./devenv-foo.nix
|
||||
];
|
||||
|
||||
# https://devenv.sh/reference/options/
|
||||
packages =
|
||||
[
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.isLinux (with pkgs; [
|
||||
appimagekit
|
||||
atk
|
||||
cairo
|
||||
dbus
|
||||
dbus.lib
|
||||
dprint
|
||||
gdk-pixbuf
|
||||
glib.out
|
||||
gobject-introspection
|
||||
gtk3
|
||||
harfbuzz
|
||||
libffi
|
||||
libsoup_3
|
||||
openssl.out
|
||||
pango
|
||||
pkg-config
|
||||
treefmt
|
||||
webkitgtk_4_1
|
||||
zlib
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gst_all_1.gst-plugins-good
|
||||
gst_all_1.gst-plugins-bad
|
||||
librsvg
|
||||
freetype
|
||||
expat
|
||||
])
|
||||
++ lib.optionals pkgs.stdenv.isDarwin [
|
||||
pkgs.darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
alias ls=exa
|
||||
alias find=fd
|
||||
languages.java = {
|
||||
enable = true;
|
||||
gradle.enable = true;
|
||||
jdk.package = pkgs.jdk17;
|
||||
};
|
||||
languages.kotlin.enable = true;
|
||||
|
||||
languages.javascript = {
|
||||
enable = true;
|
||||
corepack.enable = true;
|
||||
};
|
||||
|
||||
languages.rust.enable = true;
|
||||
|
||||
enterShell = with pkgs; ''
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
flake = {
|
||||
# The usual flake attributes can be defined here, including system-
|
||||
# agnostic ones like nixosModule and system-enumerating ones, although
|
||||
# those are more easily expressed in perSystem.
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
export default {
|
||||
"**/*.{ts,tsx}": () => "tsc -p tsconfig.json --noEmit",
|
||||
"**/*.{js,jsx,ts,tsx}": "eslint --cache --fix",
|
||||
"**/*.{js,jsx,ts,tsx}": "eslint --max-warnings=0 --cache --fix",
|
||||
"**/*.{js,jsx,ts,tsx,css,md,json}": "prettier --write"
|
||||
};
|
||||
@@ -16,10 +16,10 @@
|
||||
"@tauri-apps/plugin-shell": "github:tauri-apps/tauri-plugin-shell#v2",
|
||||
"@tauri-apps/plugin-window": "github:tauri-apps/tauri-plugin-window#v2",
|
||||
"@vitejs/plugin-react": "^3.0.0",
|
||||
"browser-fs-access": "^0.34.1",
|
||||
"browserslist": "^4.18.1",
|
||||
"classnames": "^2.3.1",
|
||||
"eslint-config-react-app": "^7.0.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"flatbuffers": "^22.10.26",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"intl-pluralrules": "^1.3.1",
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 11 KiB |
@@ -7,7 +7,7 @@
|
||||
|
||||
## Websocket (server) status
|
||||
|
||||
websocket-connecting = جاري التوصيل بالسيرفر
|
||||
websocket-connecting = يتم التوصيل بالسيرفر
|
||||
websocket-connection_lost = انقطع الاتصال بالسيرفر. يتم إعادة التوصيل...
|
||||
|
||||
## Update notification
|
||||
@@ -671,8 +671,8 @@ onboarding-assignment_tutorial = كيفية تحضير جهاز تعقب Slime
|
||||
onboarding-assignment_tutorial-first_step = 1. ضع ملصق جزء الجسم (إذا كان لديك واحد) على جهاز التعقب وفقا لاختيارك
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = ملصق
|
||||
onboarding-assignment_tutorial-second_step = 2. قم بتوصيل الشريط بجهاز التعقب الخاص بك ، مع الحفاظ على جانب الخطاف والحلقة من وجه الشريط في الاتجاه التالي:
|
||||
onboarding-assignment_tutorial-second_step-continuation = يجب أن يكون جانب الخطاف والحلقة للامتداد في هذا الاتجاه:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. قم بتوصيل الشريط بجهاز التعقب، مع الحفاظ على جانب الفيلكرو من الشريط في نفس اتجاه وجه السلايم لجهاز التعقب:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = يجب أن يكون جانب الفيلكرو للامتداد متجها للأعلى مثل الصورة التالية:
|
||||
onboarding-assignment_tutorial-done = وضعت الملصقات والأشرطة!
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
@@ -351,11 +351,19 @@ settings-general-fk_settings-leg_fk = leg twacking
|
||||
settings-general-fk_settings-arm_fk = awm twacking
|
||||
settings-general-fk_settings-arm_fk-description = chawnge teh way teh awms awe twacked.
|
||||
settings-general-fk_settings-arm_fk-force_arms = fowce awms fwom hmd
|
||||
settings-general-fk_settings-skeleton_settings = skeweton sewttings
|
||||
settings-general-fk_settings-skeleton_settings-toggles = skeweton toggews
|
||||
settings-general-fk_settings-skeleton_settings-description = toggwe skeweton sewttings on owow off. is wowcommended to weawve these on~
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = extwended spine modew
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = extwended pewvis modew
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees_model = extwended nee modew
|
||||
settings-general-fk_settings-skeleton_settings-ratios = skeweton watios
|
||||
settings-general-fk_settings-skeleton_settings-ratios-description = change da vawue of skeweton settings. u may need to ajust ur pawpowshuns aftew changin dese.
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = impute waist fwom chest to hip
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = impute waist fwom chest to wegs
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = impute hip fwom chest to wegs
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = impute hip fwom waist to wegs
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = awewage da hip's yaw and woll wiff da legs'
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = awewage da knee twackews' yaw and woll wiff da ankews'
|
||||
settings-general-fk_settings-self_localization-title = mocap mowd
|
||||
settings-general-fk_settings-self_localization-description = mocap mowd awwows da skeweton to wuffly twack is own posishun without a hedset or other twackews. note dat dis wequiwes feet and hed twackews to wowk and is stiwll expewimentaw.
|
||||
settings-general-fk_settings-vive_emulation-title = vive emuwation
|
||||
@@ -651,8 +659,8 @@ onboarding-assignment_tutorial = how to pwepawe a Swime Twackew befowe puting it
|
||||
onboarding-assignment_tutorial-first_step = 1. pwace a body pawt stickew (if you has wun) on da twackew accowding to u choosing :3
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = sticker
|
||||
onboarding-assignment_tutorial-second_step = 2. put da stwap to u twackew, keep da hook an woop side of the stwap face in the fowlowing owientation:
|
||||
onboarding-assignment_tutorial-second_step-continuation = da hook an woop side fow da extenson shouwd be in this owientation:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. attach da stwap to youw twackew, keeping da vewcwo side of da stwap facing da same diwecshun as da swime face of youw twackew:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = da vewcwo side fow da extenshun shud be facing up wike da fowwowing image:
|
||||
onboarding-assignment_tutorial-done = i put da stickew an stwap on :3
|
||||
|
||||
## Tracker assignment setup
|
||||
@@ -839,9 +847,9 @@ onboarding-automatic_proportions-check_height-fetch_height = am standing!
|
||||
# Context is that the height is unknown
|
||||
onboarding-automatic_proportions-check_height-unknown = unnown
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-height = youw height is
|
||||
onboarding-automatic_proportions-check_height-hmd_height1 = youw hmd heit is
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-hmd_height = an hmd height is
|
||||
onboarding-automatic_proportions-check_height-height1 = so youw actuaw heit is
|
||||
onboarding-automatic_proportions-check_height-next_step = dey awe fine
|
||||
onboarding-automatic_proportions-start_recording-title = get wowdy to move
|
||||
onboarding-automatic_proportions-start_recording-description = we'we now going to wowcawd some specific poses and moves. these will be pwompted in teh wowst screen. be wowdy to stawt when teh buttawn is pwessed!
|
||||
|
||||
@@ -322,9 +322,20 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = Floor-clip can R
|
||||
settings-general-fk_settings-leg_tweak-toe_snap-description = Toe-snap attempts to guess the rotation of your feet if feet trackers are not in use.
|
||||
settings-general-fk_settings-leg_tweak-foot_plant-description = Foot-plant rotates your feet to be parallel to the ground when in contact.
|
||||
settings-general-fk_settings-leg_fk = Leg tracking
|
||||
settings-general-fk_settings-leg_fk-reset_mounting_feet-description = Enable feet Mounting Reset by tiptoeing.
|
||||
settings-general-fk_settings-leg_fk-reset_mounting_feet = Feet Mounting Reset
|
||||
settings-general-fk_settings-arm_fk = Arm tracking
|
||||
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the HMD even if positional hand data is available.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Force arms from HMD
|
||||
settings-general-fk_settings-arm_fk-reset_mode-description = Change which arm pose is expected for mounting reset.
|
||||
settings-general-fk_settings-arm_fk-back = Back
|
||||
settings-general-fk_settings-arm_fk-back-description = The default mode, with the upper arms going back and lower arms going forward.
|
||||
settings-general-fk_settings-arm_fk-tpose_up = T-pose (up)
|
||||
settings-general-fk_settings-arm_fk-tpose_up-description = Expects your arms to be down on the sides during Full Reset, and 90 degrees up to the sides during Mounting Reset.
|
||||
settings-general-fk_settings-arm_fk-tpose_down = T-pose (down)
|
||||
settings-general-fk_settings-arm_fk-tpose_down-description = Expects your arms to be 90 degrees up to the sides during Full Reset, and down on the sides during Mounting Reset.
|
||||
settings-general-fk_settings-arm_fk-forward = Forward
|
||||
settings-general-fk_settings-arm_fk-forward-description = Expects your arms to be up 90 degrees forward. Useful for VTubing.
|
||||
settings-general-fk_settings-skeleton_settings-toggles = Skeleton toggles
|
||||
settings-general-fk_settings-skeleton_settings-description = Toggle skeleton settings on or off. It is recommended to leave these on.
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = Extended spine model
|
||||
@@ -338,6 +349,7 @@ settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Impu
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Impute hip from waist to legs
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Average the hip's yaw and roll with the legs'
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Average the knee trackers' yaw and roll with the ankles'
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Average the knees' yaw and roll with the ankles'
|
||||
|
||||
settings-general-fk_settings-self_localization-title = Mocap mode
|
||||
settings-general-fk_settings-self_localization-description = Mocap Mode allows the skeleton to roughly track its own position without a headset or other trackers. Note that this requires feet and head trackers to work and is still experimental.
|
||||
@@ -747,6 +759,9 @@ onboarding-choose_proportions-manual_proportions = Manual proportions
|
||||
onboarding-choose_proportions-manual_proportions-subtitle = For small touches
|
||||
onboarding-choose_proportions-manual_proportions-description = This will let you adjust your proportions manually by modifying them directly
|
||||
onboarding-choose_proportions-export = Export proportions
|
||||
onboarding-choose_proportions-import = Import proportions
|
||||
onboarding-choose_proportions-import-success = Imported
|
||||
onboarding-choose_proportions-import-failed = Failed
|
||||
onboarding-choose_proportions-file_type = Body proportions file
|
||||
|
||||
## Tracker manual proportions setup
|
||||
|
||||
@@ -351,11 +351,19 @@ settings-general-fk_settings-leg_fk = Tracking de piernas
|
||||
settings-general-fk_settings-arm_fk = Trackeo de brazos
|
||||
settings-general-fk_settings-arm_fk-description = Cambia cómo el movimiento de los brazos es detectado.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Forzar brazos desde el HMD
|
||||
settings-general-fk_settings-skeleton_settings = Ajustes de esqueleto
|
||||
settings-general-fk_settings-skeleton_settings-toggles = Interruptores del esqueleto
|
||||
settings-general-fk_settings-skeleton_settings-description = Habilita o deshabilita los ajustes de esqueleto. Es recomendado dejar estos ajustes habilitados.
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = Modelo extendido de la columna
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Modelo extendido del pelvis
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees_model = Modelo extendido de la rodilla
|
||||
settings-general-fk_settings-skeleton_settings-ratios = Radios del esqueleto
|
||||
settings-general-fk_settings-skeleton_settings-ratios-description = Cambia los valores de los ajustes del esqueleto. Podes llegar a necesitar reajustar tus proporciones después de cambiar estos valores.
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = Imputar de la cintura al pecho hasta la cadera
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Imputar de la cintura al pecho hasta las piernas
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Imputar de la cadera al pecho hasta las piernas
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Imputar de la cadera a la cintura hasta las piernas
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Promediar la rotación del eje vertical y horizontal de la cadera con la de las piernas
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Promediar la rotación del eje vertical y horizontal de la rodilla con la de los tobillos
|
||||
settings-general-fk_settings-self_localization-title = Modo mocap
|
||||
settings-general-fk_settings-self_localization-description = El modo mocap permite al esqueleto rastrear de forma aproximada su propia posición sin un casco o otros sensores. Nota que esto requiere que los trackers en el pie y cabeza estén y sigue siendo experimental.
|
||||
settings-general-fk_settings-vive_emulation-title = Vive emulation
|
||||
@@ -651,8 +659,8 @@ onboarding-assignment_tutorial = Como preparar un Tracker Slime antes de ponerte
|
||||
onboarding-assignment_tutorial-first_step = 1. Pon un sticker con la parte del cuerpo de tu elección (si tenes uno)
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Sticker
|
||||
onboarding-assignment_tutorial-second_step = 2. Coloque la correa en el tracker, manteniendo el lado con velcro de la correa en la siguiente orientación:
|
||||
onboarding-assignment_tutorial-second_step-continuation = El lado con velcro en las extensiones deben también estar en la siguiente orientación:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. Coloca la tira de velcro a tu tracker, manteniendo el lado del velcro de la tira, mirando para la misma dirección que la cara del slime de tu sensor:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = El lado del velcro de la tira para la extensión deberá estar viendo para arriba como en la siguiente imagen:
|
||||
onboarding-assignment_tutorial-done = ¡Puse las correas y stickers!
|
||||
|
||||
## Tracker assignment setup
|
||||
@@ -838,9 +846,9 @@ onboarding-automatic_proportions-check_height-fetch_height = Estoy de pie
|
||||
# Context is that the height is unknown
|
||||
onboarding-automatic_proportions-check_height-unknown = Desconocida
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-height = Su altura es
|
||||
onboarding-automatic_proportions-check_height-hmd_height1 = La altura de tu HMD es
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-hmd_height = Y la altura del VR es
|
||||
onboarding-automatic_proportions-check_height-height1 = entonces tu altura real es
|
||||
onboarding-automatic_proportions-check_height-next_step = Están bien
|
||||
onboarding-automatic_proportions-start_recording-title = Prepárate para moverte
|
||||
onboarding-automatic_proportions-start_recording-description = Ahora vamos a grabar poses y movimientos en específico. Estas serán mostradas en la siguiente ventana. ¡Prepárate para empezar cuando presiones el botón!
|
||||
|
||||
@@ -81,6 +81,7 @@ skeleton_bone-ELBOW_OFFSET = Compensacion de los codos
|
||||
reset-reset_all = Reiniciar todas las proporciones
|
||||
reset-full = Reiniciar
|
||||
reset-mounting = Reiniciar montura
|
||||
reset-yaw = Restablecimiento horizontal
|
||||
|
||||
## Serial detection stuff
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
### SlimeVR complete GUI translations
|
||||
|
||||
|
||||
# Please developers (not translators) don't reuse a key inside another key
|
||||
# or concat text with a translation string in the code, use the appropriate
|
||||
# features like variables and selectors in each appropriate case!
|
||||
@@ -13,10 +10,19 @@
|
||||
websocket-connecting = Serveriga ühendamine
|
||||
websocket-connection_lost = Ühendus serveriga on kaotatud. Ühenduse taastamine...
|
||||
|
||||
## Update notification
|
||||
|
||||
version_update-title = Uus versioon olemas: { $version }
|
||||
version_update-description = Vajutades "{ version_update-update }" tõmbab programm alla SlimeVR installeri.
|
||||
version_update-update = Värskenda
|
||||
version_update-close = Sulge
|
||||
|
||||
## Tips
|
||||
|
||||
tips-find_tracker = Ei ole kindel milline jälgija on mis? Raputage jälgijat ja vaadake milline jälgija tõstetakse esile.
|
||||
tips-find_tracker = Ei ole kindel milline jälgija on mis? Raputage jälgijat, ning õige jälgija tõstetakse esile.
|
||||
tips-do_not_move_heels = Veenduge, et teie kannad ei liigu salvestamise ajal!
|
||||
tips-file_select = Pukseerige failid kasutamiseks, või <u>sirvi</u>.
|
||||
tips-tap_setup = Saate jälgija valimiseks menüüst valimise asemel aeglaselt oma jälgijat 2 korda puudutada.
|
||||
|
||||
## Body parts
|
||||
|
||||
@@ -30,6 +36,7 @@ body_part-RIGHT_HAND = Parem käsi
|
||||
body_part-RIGHT_UPPER_LEG = Parem reis
|
||||
body_part-RIGHT_LOWER_LEG = Parem säär
|
||||
body_part-RIGHT_FOOT = Parem jalg
|
||||
body_part-UPPER_CHEST = Rinna ülaosa
|
||||
body_part-CHEST = Rind
|
||||
body_part-WAIST = Vöökoht
|
||||
body_part-HIP = Puus
|
||||
@@ -46,19 +53,23 @@ body_part-LEFT_FOOT = Vasak jalg
|
||||
skeleton_bone-NONE = Mitte midagi
|
||||
skeleton_bone-HEAD = Pea Nihe
|
||||
skeleton_bone-NECK = Kaela Pikkus
|
||||
skeleton_bone-CHEST = Chest Length
|
||||
skeleton_bone-CHEST_OFFSET = Chest Offset
|
||||
skeleton_bone-WAIST = Waist Length
|
||||
skeleton_bone-HIP = Hip Lengthskeleton_bone-CHEST = Rinna Vahemaa
|
||||
skeleton_bone-torso_group = Torso pikkus
|
||||
skeleton_bone-UPPER_CHEST = Rinna ülaosa pikkus
|
||||
skeleton_bone-CHEST_OFFSET = Rindkere nihe
|
||||
skeleton_bone-CHEST = Rinna pikkus
|
||||
skeleton_bone-WAIST = Vööümbermõõt
|
||||
skeleton_bone-HIP = Puusa pikkus
|
||||
skeleton_bone-HIP_OFFSET = Puusa Nihe
|
||||
skeleton_bone-HIPS_WIDTH = Puusa Laius
|
||||
skeleton_bone-UPPER_LEG = Upper Leg Length
|
||||
skeleton_bone-leg_group = Jala pikkus
|
||||
skeleton_bone-UPPER_LEG = Jala ülaosa pikkus
|
||||
skeleton_bone-LOWER_LEG = Lower Leg Length
|
||||
skeleton_bone-FOOT_LENGTH = Jala Pikkus
|
||||
skeleton_bone-FOOT_SHIFT = Jala Nihe
|
||||
skeleton_bone-SKELETON_OFFSET = Skeletti Nihe
|
||||
skeleton_bone-SHOULDERS_DISTANCE = Õlgade Kaugus
|
||||
skeleton_bone-SHOULDERS_WIDTH = Õlgade Laius
|
||||
skeleton_bone-arm_group = Käe pikkus
|
||||
skeleton_bone-UPPER_ARM = Õlavarre Pikkus
|
||||
skeleton_bone-LOWER_ARM = Käsivarre Kaugus
|
||||
skeleton_bone-HAND_Y = Käte kaugus Y
|
||||
@@ -70,6 +81,7 @@ skeleton_bone-ELBOW_OFFSET = Küünarnuki Nihe
|
||||
reset-reset_all = Lähtesta kõik proportsioonid
|
||||
reset-full = Lähtesta
|
||||
reset-mounting = Lähtesta Paigaldusasend
|
||||
reset-yaw = Lähtesta lengerdus
|
||||
|
||||
## Serial detection stuff
|
||||
|
||||
@@ -90,11 +102,16 @@ navbar-mounting = Jälgijate Paigalduse Kalibreerimine
|
||||
navbar-onboarding = Häälestusviisard
|
||||
navbar-settings = Seaded
|
||||
|
||||
## Bounding volume hierarchy recording
|
||||
## Biovision hierarchy recording
|
||||
|
||||
bvh-start_recording = Salvesta BVH
|
||||
bvh-recording = Salvestamine...
|
||||
|
||||
## Tracking pause
|
||||
|
||||
tracking-unpaused = Peata jälgimine
|
||||
tracking-paused = Jätka jälgimine
|
||||
|
||||
## Widget: Overlay settings
|
||||
|
||||
widget-overlay = Ülekate
|
||||
@@ -105,13 +122,17 @@ widget-overlay-is_mirrored_label = Näita Ülekatet Peeglina
|
||||
|
||||
widget-drift_compensation-clear = Selgem triivi kompenseerimine
|
||||
|
||||
## Widget: Clear Reset Mounting
|
||||
|
||||
widget-clear_mounting = Lähtesta paigaldusasend
|
||||
|
||||
## Widget: Developer settings
|
||||
|
||||
widget-developer_mode = Arendaja režiim
|
||||
widget-developer_mode-high_contrast = Kõrge kontrastsus
|
||||
widget-developer_mode-precise_rotation = Täpne pööre
|
||||
widget-developer_mode-fast_data_feed = Kiire andmevoog
|
||||
widget-developer_mode-filter_slimes_and_hmd = Filtreerige slimid ja HMD-d
|
||||
widget-developer_mode-filter_slimes_and_hmd = Filtreerige Slimed ja HMD-d
|
||||
widget-developer_mode-sort_by_name = Sorteeri nime järgi
|
||||
widget-developer_mode-raw_slime_rotation = Toores pööre
|
||||
widget-developer_mode-more_info = Rohkem infot
|
||||
@@ -121,6 +142,7 @@ widget-developer_mode-more_info = Rohkem infot
|
||||
widget-imu_visualizer = Rotatsiooni
|
||||
widget-imu_visualizer-rotation_raw = Toores
|
||||
widget-imu_visualizer-rotation_preview = Eelvaade
|
||||
widget-imu_visualizer-rotation_hide = Peida
|
||||
|
||||
## Tracker status
|
||||
|
||||
@@ -147,9 +169,15 @@ tracker-table-column-url = URL
|
||||
## Tracker rotation
|
||||
|
||||
tracker-rotation-front = Ees
|
||||
tracker-rotation-front_left = Ees vasakul
|
||||
tracker-rotation-front_right = Ees paremal
|
||||
tracker-rotation-left = Vasak
|
||||
tracker-rotation-right = Parem
|
||||
tracker-rotation-back = Taga
|
||||
tracker-rotation-back_left = Taga vasakul
|
||||
tracker-rotation-back_right = Taga paremal
|
||||
tracker-rotation-custom = Kohandatud
|
||||
tracker-rotation-overriden = (tühistatud paigalduse lähtestamine tõttu)
|
||||
|
||||
## Tracker information
|
||||
|
||||
@@ -159,6 +187,9 @@ tracker-infos-custom_name = Kohandatud Nimi
|
||||
tracker-infos-url = Jälgija URL
|
||||
tracker-infos-version = Püsivara versioon
|
||||
tracker-infos-hardware_rev = Riistvara revisjon
|
||||
tracker-infos-hardware_identifier = Riistvara ID
|
||||
tracker-infos-imu = IMU sensor
|
||||
tracker-infos-board_type = Põhiplaat
|
||||
|
||||
## Tracker settings
|
||||
|
||||
@@ -211,6 +242,7 @@ tracker_selection_menu-RIGHT_UPPER_LEG = { -tracker_selection-part } paremale re
|
||||
tracker_selection_menu-RIGHT_LOWER_LEG = { -tracker_selection-part } paremale säärele?
|
||||
tracker_selection_menu-RIGHT_FOOT = { -tracker_selection-part } paremale jalale?
|
||||
tracker_selection_menu-RIGHT_CONTROLLER = { -tracker_selection-part } paremale kontrollerile?
|
||||
tracker_selection_menu-UPPER_CHEST = { -tracker_selection-part } rinnale?
|
||||
tracker_selection_menu-CHEST = { -tracker_selection-part } rind?
|
||||
tracker_selection_menu-WAIST = { -tracker_selection-part } vöökoht?
|
||||
tracker_selection_menu-HIP = { -tracker_selection-part } puus?
|
||||
@@ -247,8 +279,11 @@ settings-sidebar-fk_settings = FK seaded
|
||||
settings-sidebar-gesture_control = Žesti juhtimine
|
||||
settings-sidebar-interface = Liides
|
||||
settings-sidebar-osc_router = OSC ruuter
|
||||
settings-sidebar-osc_trackers = VRChati OSC Jälgija
|
||||
settings-sidebar-utils = Olemus / Lisad
|
||||
settings-sidebar-serial = Jadakonsool
|
||||
settings-sidebar-appearance = Välimus
|
||||
settings-sidebar-notifications = Teavitused
|
||||
|
||||
## SteamVR settings
|
||||
|
||||
@@ -305,15 +340,32 @@ settings-general-fk_settings-leg_tweak-floor_clip = Põranda läbimine
|
||||
# since this largely prevents this it corrects for it hence skating correction (note this may be renamed to sliding correction)
|
||||
# definition - Guesses when each foot is in contact with the ground and uses that information to improve tracking
|
||||
settings-general-fk_settings-leg_tweak-skating_correction = Libisemise korrigeerimine
|
||||
settings-general-fk_settings-leg_tweak-toe_snap = Varba klõpsatus maha
|
||||
settings-general-fk_settings-leg_tweak-foot_plant = Jalg maas
|
||||
settings-general-fk_settings-leg_tweak-skating_correction-amount = Libisemise korrigeerimine jõud
|
||||
settings-general-fk_settings-leg_tweak-skating_correction-description = Uisukorrektsioon korrigeerib uisutamist, kuid võib vähendada teatud liikumismustrite täpsust. Selle lubamisel veenduge, et mängus lähtestatakse jälgimine ja kalibreeritakse jälgimine uuesti.
|
||||
settings-general-fk_settings-leg_tweak-floor_clip-description = Põrandaklõpsatus võib vähendada või isegi välistada jalgade läbi põranda minemise. Selle lubamisel veenduge, et mängus lähtestatakse jälgimine ja kalibreeritakse jälgimine uuesti.
|
||||
settings-general-fk_settings-leg_tweak-toe_snap-description = Varvaste klõpsatus maha üritab ära arvata jalgade pöörlemist, kui jalgade jälgijaid ei kasutata.
|
||||
settings-general-fk_settings-leg_tweak-foot_plant-description = Jalg-maas pöörab jalad kokkupuutel maapinnaga paralleelseks.
|
||||
settings-general-fk_settings-leg_fk = Jalgade jälgimine
|
||||
settings-general-fk_settings-arm_fk = Käe jälgimine
|
||||
settings-general-fk_settings-arm_fk-description = Muuda viisi kuidas käsi jälgitakse.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Sunni käed HMD-st
|
||||
settings-general-fk_settings-skeleton_settings = Skeletti seaded
|
||||
settings-general-fk_settings-skeleton_settings-toggles = Skeleti lülitid
|
||||
settings-general-fk_settings-skeleton_settings-description = Lülita skeletti seaded sisse või välja. Soovitatud on see sisse jätta.
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine = Selgroo laiendamine
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis = Vaagnaluu laiendamine
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees = Põlve laiendamine
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = Laiendatud selgroo mudel
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Laiendatud vaagna mudel
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees_model = Laiendatud põlve mudel
|
||||
settings-general-fk_settings-skeleton_settings-ratios = Skeleti suhted
|
||||
settings-general-fk_settings-skeleton_settings-ratios-description = Muutke skeleti seadete väärtusi. Võimalik, et peate pärast nende muutmist oma proportsioone kohandama.
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = Imputeeri vöökoht rinnast ja puusast
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Imputeeri vöökoht rinnast ja jalgadest
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Imputeeri puusakoht rinnast ja jalgadest
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Imputeeri puusakoht vöökohast ja jalgadest
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Leia keskmine puusa lengerdus ja pöörlemine jalgade abiga
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Leia keskmine põlvede lengerdus ja pöörlemine säärte abiga
|
||||
settings-general-fk_settings-self_localization-title = Mocapi režiim
|
||||
settings-general-fk_settings-self_localization-description = Mocap-režiim võimaldab skeletil ligikaudselt jälgida oma asukohta ilma peakomplekti või muude jälgijateta. Pange tähele, et see nõuab jalgade ja peajälgijate olemasolu ning on endiselt eksperimentaalne.
|
||||
settings-general-fk_settings-vive_emulation-title = Vive-i emulatsioon
|
||||
settings-general-fk_settings-vive_emulation-description = Emuleeri vöökoha jälgija probleeme mis Vive jälgijatel on. See on nali ja teeb jälgijate täpsuse halvaks.
|
||||
settings-general-fk_settings-vive_emulation-label = Luba Vive-i emulatsioon
|
||||
@@ -322,30 +374,63 @@ settings-general-fk_settings-vive_emulation-label = Luba Vive-i emulatsioon
|
||||
|
||||
settings-general-gesture_control = Žesti juhtimine
|
||||
settings-general-gesture_control-subtitle = Puudutusepõhised lähtestused
|
||||
settings-general-gesture_control-description = Lubab lähtestada jälgija puudutades jälgijat. Jälgija kere kõige kõrgemal osal kasutatakse kiireks lähtestamiseks, jälgija vasaku jala kõige kõrgemal osal kasutatakse lähtestamiseks ja jälgija parema jala kõige kõrgemal osal kasutatakse paigalduse lähtestamiseks. Vajutused peavad toimuma 0.6 sekundi jooksul, et need registreeritaks.
|
||||
settings-general-gesture_control-description = Lubab lähtestada jälgija puudutades jälgijat. Jälgija kere kõige kõrgemal osal kasutatakse kiireks lähtestamiseks, jälgija vasaku jala kõige kõrgemal osal kasutatakse lähtestamiseks ja jälgija parema jala kõige kõrgemal osal kasutatakse paigalduse lähtestamiseks. Vajutused peavad toimuma 0.3 sekundi jooksul, et need registreeritaks.
|
||||
# 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 ->
|
||||
[one] 1 tap
|
||||
*[other] { $amount } taps
|
||||
[one] 1 puudutus
|
||||
*[other] { $amount } puudutusi
|
||||
}
|
||||
# This is a unit: 3 trackers, 2 trackers, 1 tracker
|
||||
# $amount (Number) - Amount of trackers
|
||||
settings-general-gesture_control-trackers =
|
||||
{ $amount ->
|
||||
[one] 1 jälgija
|
||||
*[other] { $amount } jälgijat
|
||||
}
|
||||
settings-general-gesture_control-yawResetEnabled = Luba puudutamine lengerduse lähtestamiseks
|
||||
settings-general-gesture_control-yawResetDelay = Lengerduse lähtestamise viivitus
|
||||
settings-general-gesture_control-yawResetTaps = Puudutust lengerduse lähtestamiseks
|
||||
settings-general-gesture_control-fullResetEnabled = Luba puudutus täielikuks lähtestamiseks
|
||||
settings-general-gesture_control-fullResetDelay = Tavalise lähtestamise viivitus
|
||||
settings-general-gesture_control-fullResetTaps = Puudutust tavaliseks lähtestamiseks
|
||||
settings-general-gesture_control-mountingResetEnabled = Luba, et vajutus lähtestab paigalduseasendi
|
||||
settings-general-gesture_control-mountingResetDelay = Paigaldusasendi lähtestamise viivitus
|
||||
settings-general-gesture_control-mountingResetTaps = Paigaldusasendi lähtestamise vajutus
|
||||
# The number of trackers that can have higher acceleration before a tap is rejected
|
||||
settings-general-gesture_control-numberTrackersOverThreshold = Jälgijad üle läve
|
||||
settings-general-gesture_control-numberTrackersOverThreshold-description = Suurendage seda väärtust, kui puudutuse tuvastamine ei tööta. Ärge suurendage seda üle selle, mis on vajalik puudutuse tuvastuse toimimiseks, kuna see põhjustaks rohkem valepositiivseid tulemusi.
|
||||
|
||||
## Interface settings
|
||||
## Appearance settings
|
||||
|
||||
settings-general-interface = Liides
|
||||
settings-interface-appearance = Välimus
|
||||
settings-general-interface-dev_mode = Arendaja režiim
|
||||
settings-general-interface-dev_mode-description = See režiim on kasulik, kui on vaja põhjalike andmeid või või suhelda ühendatud jälgijatega kõrgemal tasemel.
|
||||
settings-general-interface-dev_mode-label = Arendaja režiim
|
||||
settings-general-interface-serial_detection = Jadaseadme märkamine
|
||||
settings-general-interface-serial_detection-description = See valik näitab hüpikakent iga kord kui panna sisse uus jada seade, mis võib olla jälgija. See aitab jälgija seadistusprotsessi parandada.
|
||||
settings-general-interface-serial_detection-label = Jadaseadme märkamine
|
||||
settings-general-interface-theme = Värviteema
|
||||
settings-general-interface-lang = Vaikekeel
|
||||
settings-general-interface-lang-description = Muutke vaikekeelt, mida soovite kasutada.
|
||||
settings-general-interface-lang-placeholder = Vali keel, mida kasutada
|
||||
# Keep the font name untranslated
|
||||
settings-interface-appearance-font = GUI font
|
||||
settings-interface-appearance-font-description = See muudab liidese kasutatavat fonti.
|
||||
settings-interface-appearance-font-placeholder = Vaikimisi font
|
||||
settings-interface-appearance-font-os_font = OS-i font
|
||||
settings-interface-appearance-font-slime_font = Vaikimisi font
|
||||
settings-interface-appearance-font_size = Fondi mastaapimise alus
|
||||
settings-interface-appearance-font_size-description = See mõjutab kogu liidese fondi suurust, välja arvatud see seadete paneel.
|
||||
|
||||
## Notification settings
|
||||
|
||||
settings-interface-notifications = Teavitused
|
||||
settings-general-interface-serial_detection = Jadaseadme märkamine
|
||||
settings-general-interface-serial_detection-description = See valik näitab hüpikakent iga kord kui panna sisse uus jada seade, mis võib olla jälgija. See aitab jälgija seadistusprotsessi parandada.
|
||||
settings-general-interface-serial_detection-label = Jadaseadme märkamine
|
||||
settings-general-interface-feedback_sound = Tagasiside heli
|
||||
settings-general-interface-feedback_sound-description = See suvand esitab lähtestamise käivitamisel heli.
|
||||
settings-general-interface-feedback_sound-label = Tagasiside heli
|
||||
settings-general-interface-feedback_sound-volume = Tagasiside helitugevus
|
||||
|
||||
## Serial settings
|
||||
|
||||
@@ -417,19 +502,56 @@ settings-osc-vrchat-network-address-placeholder = VRChat ip aadress
|
||||
settings-osc-vrchat-network-trackers = Jälgia
|
||||
settings-osc-vrchat-network-trackers-description = Lülita sisse/välja teatud jälgijate andmete saatmise OSC kaudu.
|
||||
settings-osc-vrchat-network-trackers-chest = Rind
|
||||
settings-osc-vrchat-network-trackers-waist = Vöökoht
|
||||
settings-osc-vrchat-network-trackers-hip = Puus
|
||||
settings-osc-vrchat-network-trackers-knees = Põlved
|
||||
settings-osc-vrchat-network-trackers-feet = Jalad
|
||||
settings-osc-vrchat-network-trackers-elbows = Küünarnukid
|
||||
|
||||
## VMC OSC settings
|
||||
|
||||
settings-osc-vmc = Virtual Motion Capture
|
||||
# This cares about multilines
|
||||
settings-osc-vmc-description =
|
||||
VMC (Virtual Motion Capture) protokollile omaste sätete muutmine
|
||||
SlimeVR-i luuandmete saatmiseks ja luuandmete vastuvõtmiseks teistest rakendustest.
|
||||
settings-osc-vmc-enable = Luba
|
||||
settings-osc-vmc-enable-description = Lülitage andmete sisestamine sisse/välja.
|
||||
settings-osc-vmc-enable-label = Luba
|
||||
settings-osc-vmc-network = Pordid
|
||||
settings-osc-vmc-network-description = Määrake pordid VMC kaudu andmete kuulamiseks ja saatmiseks.
|
||||
settings-osc-vmc-network-port_in =
|
||||
.label = Port sisse
|
||||
.placeholder = Port sisse (vaikimisi: 39540)
|
||||
settings-osc-vmc-network-port_out =
|
||||
.label = Port välja
|
||||
.placeholder = Port välja (vaikimisi 39539)
|
||||
settings-osc-vmc-network-address = Võrgu aadress
|
||||
settings-osc-vmc-network-address-description = Valige, millisel aadressil soovite VMC kaudu andmeid saata.
|
||||
settings-osc-vmc-network-address-placeholder = IPV4 aadress
|
||||
settings-osc-vmc-vrm = VRM-mudel
|
||||
settings-osc-vmc-vrm-description = Laadige VRM-mudel, et võimaldada peaankurdamist ja suuremat ühilduvust teiste rakendustega.
|
||||
settings-osc-vmc-vrm-model_unloaded = Mudelit pole laaditud
|
||||
settings-osc-vmc-vrm-model_loaded =
|
||||
{ $titled ->
|
||||
[true] Mudel laaditud: { $name }
|
||||
*[other] Pealkirjata mudel on laaditud
|
||||
}
|
||||
settings-osc-vmc-vrm-file_select = Kasutatava mudeli pukseerimine või <u>sirvimine</u>
|
||||
settings-osc-vmc-anchor_hip = Ankurda puusadel
|
||||
settings-osc-vmc-anchor_hip-description = Ankurdage jälgimine puusadele, mis on kasulik istuva VTubingu jaoks. Keelamise korral laadige VRM-mudel.
|
||||
settings-osc-vmc-anchor_hip-label = Ankurda puusadel
|
||||
|
||||
## Setup/onboarding menu
|
||||
|
||||
onboarding-skip = Jäta seadistamine vahele
|
||||
onboarding-continue = Jätka
|
||||
onboarding-wip = Töö käib
|
||||
onboarding-previous_step = Eelmine samm
|
||||
onboarding-setup_warning =
|
||||
<b>Hoiatus:</b> Hea jälgimise jaoks on vajalik esialgne seadistamine,
|
||||
see on vajalik, kui kasutate SlimeVR-i esimest korda.
|
||||
onboarding-setup_warning-skip = Jäta seadistamine vahele
|
||||
onboarding-setup_warning-cancel = Jätka seadistamist
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
@@ -445,22 +567,37 @@ onboarding-wifi_creds-ssid =
|
||||
.label = SSID
|
||||
.placeholder = Sisesta SSID
|
||||
onboarding-wifi_creds-password =
|
||||
.label = parool
|
||||
.label = Parool
|
||||
.placeholder = Sisesta parool
|
||||
|
||||
## Mounting setup
|
||||
|
||||
onboarding-reset_tutorial-back = Minge tagasi paigaldus kalibreerimisse
|
||||
onboarding-reset_tutorial = Lähtesta õpetus
|
||||
onboarding-reset_tutorial-description = See funktsioon pole valmis, vajutage lihtsalt nuppu Jätka
|
||||
onboarding-reset_tutorial-explanation = Kui kasutate oma jälgijaid, võivad need IMU lengerdamise tõttu joondusest välja tulla või kuna olete neid füüsiliselt liigutanud. Teil on selle parandamiseks mitu võimalust.
|
||||
onboarding-reset_tutorial-skip = Jäta samm vahele
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Puudutage { $taps } korda esiletõstetud jälgijat, et käivitada lengerduse lähtestamine.
|
||||
|
||||
See setib jälgijad teie HMD-ga samas suunas.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Täieliku lähtestamise käivitamiseks puudutage esiletõstetud jälgijat { $taps } korda.
|
||||
|
||||
Sa pead seisma (i-poosis). Enne kui see juhtub, on 3-sekundiline viivitus (konfigureeritav).
|
||||
See lähtestab täielikult kõigi teie jälgijate asukoha ja pöörlemise. See peaks lahendama enamiku probleeme.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Puudutage { $taps } korda esiletõstetud jälgijat, et lähtestada paigaldus.
|
||||
|
||||
Paigaldamise lähtestamine aitab kaasa sellele, kuidas jälgijad teile tegelikult pannakse, nii et kui te neid kogemata liigutasite ja muutsite nende orientatsiooni suure summa võrra, aitab see.
|
||||
|
||||
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.
|
||||
|
||||
## Setup start
|
||||
|
||||
onboarding-home = Tere tulemast SlimeVR-i
|
||||
# This cares about multilines and it's centered!!
|
||||
onboarding-home-description =
|
||||
Toome kogu keha jälgimise
|
||||
kõigile
|
||||
onboarding-home-start = Hakkame sättima!
|
||||
|
||||
## Enter VR part of setup
|
||||
@@ -505,6 +642,27 @@ onboarding-connect_tracker-connected_trackers =
|
||||
} connected
|
||||
onboarding-connect_tracker-next = Olen ühendanud kõik oma jälgijad
|
||||
|
||||
## Tracker calibration tutorial
|
||||
|
||||
onboarding-calibration_tutorial = IMU kalibreerimise õpetus
|
||||
onboarding-calibration_tutorial-subtitle = See aitab vähendada jälgija driftimist!
|
||||
onboarding-calibration_tutorial-description = Iga kord, kui lülitate oma jälgijad sisse, peavad nad kalibreerimiseks hetkeks tasasel pinnal olema. Teeme sama, klõpsates nuppu "{ onboarding-calibration_tutorial-calibrate }", <b>ärge liigutage neid!</b>
|
||||
onboarding-calibration_tutorial-calibrate = Panin oma jälgijad lauale
|
||||
onboarding-calibration_tutorial-status-waiting = Ootan sind
|
||||
onboarding-calibration_tutorial-status-calibrating = Kalibreerimine
|
||||
onboarding-calibration_tutorial-status-success = Võimas!
|
||||
onboarding-calibration_tutorial-status-error = Jälgija liigutati
|
||||
|
||||
## Tracker assignment tutorial
|
||||
|
||||
onboarding-assignment_tutorial = Kuidas valmistada Slime Trackerit enne selle külge panemist
|
||||
onboarding-assignment_tutorial-first_step = 1. Asetage kehaosa kleebis (kui teil see on) jälgijale vastavalt oma valikule
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Kleebis
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. Kinnitage rihm oma jälgija külge, hoides rihma takjakülge jälgimisseadme pealmise poolega samas suunas:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = Extensioni takjapaela pool peaks olema ülespoole suunatud nagu järgmine pilt:
|
||||
onboarding-assignment_tutorial-done = Panin kleepsud ja rihmad külge!
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
onboarding-assign_trackers-back = Minge tagasi Wi-Fi andmetesse
|
||||
@@ -524,6 +682,17 @@ onboarding-assign_trackers-next = Määrasin kõikide jälgijate asukohad
|
||||
## Tracker assignment warnings
|
||||
|
||||
|
||||
## Tracker mounting method choose
|
||||
|
||||
onboarding-choose_mounting-auto_mounting = Automaatne paigaldamine
|
||||
# Italized text
|
||||
onboarding-choose_mounting-auto_mounting-label = Eksperimentaalne
|
||||
onboarding-choose_mounting-auto_mounting-description = See tuvastab automaatselt kõigi teie jälgijate paigaldussuuna 2 poosist
|
||||
onboarding-choose_mounting-manual_mounting = Käsitsi paigaldamine
|
||||
# Italized text
|
||||
onboarding-choose_mounting-manual_mounting-label = Soovitatud
|
||||
onboarding-choose_mounting-manual_mounting-description = See võimaldab teil valida iga jälgija paigaldussuuna käsitsi
|
||||
|
||||
## Tracker manual mounting setup
|
||||
|
||||
onboarding-manual_mounting-back = Minge tagasi, et siseneda VR-i
|
||||
@@ -553,12 +722,29 @@ onboarding-automatic_mounting-put_trackers_on-title = Pange kõik jälgijad peal
|
||||
onboarding-automatic_mounting-put_trackers_on-description = Et kalibreerida jälgijate paigaldus asendi pööret pange kõik jälgijad peale ja nüüd te näete mis on mis jälgijad paremal pool ekraani.
|
||||
onboarding-automatic_mounting-put_trackers_on-next = Mul on kõik jälgijad küljes
|
||||
|
||||
## Tracker proportions method choose
|
||||
|
||||
onboarding-choose_proportions = Millist proportsiooni kalibreerimismeetodit kasutada?
|
||||
# Multiline string
|
||||
onboarding-choose_proportions-description =
|
||||
Keha proportsioone kasutatakse teie keha mõõtude tundmiseks. Neid on vaja, et arvutada jälgijate asukohad.
|
||||
Kui teie keha proportsioonid ei vasta salvestatud proportsioonidele, on teie jälgimistäpsus halvem ja märkate selliseid asju nagu jalgade uisutamine või libistamine või keha ei sobi teie avatariga hästi.
|
||||
onboarding-choose_proportions-auto_proportions = Automaatsed proportsioonid
|
||||
# Italized text
|
||||
onboarding-choose_proportions-auto_proportions-subtitle = Soovitatud
|
||||
# Italized text
|
||||
onboarding-choose_proportions-manual_proportions-subtitle = Väikeste puudutuste jaoks
|
||||
onboarding-choose_proportions-manual_proportions-description = See võimaldab teil proportsioone käsitsi reguleerida, muutes neid otseselt
|
||||
onboarding-choose_proportions-export = Ekspordi proportsioonid
|
||||
onboarding-choose_proportions-file_type = Keha proportsioonide fail
|
||||
|
||||
## Tracker manual proportions setup
|
||||
|
||||
onboarding-manual_proportions-back = Mine tagasi lähtestamise õppetusse
|
||||
onboarding-manual_proportions-title = Käsitsi keha proportsioonid
|
||||
onboarding-manual_proportions-precision = Täpne reguleerimine
|
||||
onboarding-manual_proportions-auto = Automaatne kalibreerimine
|
||||
onboarding-manual_proportions-ratio = Kohandamine suhtarvugruppide järgi
|
||||
|
||||
## Tracker automatic proportions setup
|
||||
|
||||
@@ -570,22 +756,34 @@ onboarding-automatic_proportions-prev_step = Eelmine Samm
|
||||
onboarding-automatic_proportions-put_trackers_on-title = Pange kõik jälgijad peale
|
||||
onboarding-automatic_proportions-put_trackers_on-description = Et kalibreerida teie proportsioone pange kõik jälgijad peale ja te näete mis on mis jälgijad paremal pool ekraani.
|
||||
onboarding-automatic_proportions-put_trackers_on-next = Mul on kõik jälgijad küljes
|
||||
onboarding-automatic_proportions-preparation-title = Ettevalmistus
|
||||
onboarding-automatic_proportions-preparation-description = Võtke tool ja pange see täpselt enda seljataha maha mänguruumi sisse. Olge valmis maha istuma et seadistada autobone.
|
||||
onboarding-automatic_proportions-preparation-next = Ma olen enda tooli ees
|
||||
onboarding-automatic_proportions-requirements-title = Nõuded
|
||||
onboarding-automatic_proportions-requirements-next = Olen lugenud nõudeid
|
||||
onboarding-automatic_proportions-check_height-title = Kontrollige oma pikkust
|
||||
onboarding-automatic_proportions-check_height-description = Me kasutame teie pikkust oma mõõtmiste alusena, kasutades HMD kõrgust teie tegeliku kõrguse ligikaudseks arvutamiseks, kuid parem on ise kontrollida, kas need on õiged!
|
||||
onboarding-automatic_proportions-check_height-fetch_height = Ma seisan!
|
||||
# Context is that the height is unknown
|
||||
onboarding-automatic_proportions-check_height-unknown = Tundmatu
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-hmd_height1 = Teie HMD kõrgus on
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-height1 = nii et teie tegelik kõrgus on
|
||||
onboarding-automatic_proportions-check_height-next_step = Nendega on kõik korras
|
||||
onboarding-automatic_proportions-start_recording-title = Olge valmis liikuma
|
||||
onboarding-automatic_proportions-start_recording-description = Me nüüd salvestame teatud poose ja liigutusi neid näete järgmisel ekraanil. Olge valmis, kui te vajutate nuppu!
|
||||
onboarding-automatic_proportions-start_recording-next = Alusta salvestamist
|
||||
onboarding-automatic_proportions-recording-title = REC
|
||||
onboarding-automatic_proportions-recording-description-p0 = Salvestamine on pooleli...
|
||||
onboarding-automatic_proportions-recording-description-p1 = Tehke allpool näidatud liigutusi:
|
||||
onboarding-automatic_proportions-recording-steps-0 = Painutage põlvi paar korda.
|
||||
onboarding-automatic_proportions-recording-steps-1 = Istuge toolile ja tõuske püsti.
|
||||
onboarding-automatic_proportions-recording-steps-2 = Keerake ülakeha vasakule, seejärel paremale.
|
||||
onboarding-automatic_proportions-recording-steps-3 = Keerake ülakeha paremale, seejärel vasakule.
|
||||
onboarding-automatic_proportions-recording-steps-4 = Liigutage ringi, kuni taimer lõpeb.
|
||||
# Each line of text is a different list item
|
||||
onboarding-automatic_proportions-recording-steps =
|
||||
Sirgelt püsti seistes pöörage pea ringi igas suunas.
|
||||
Painutage selg ettepoole ja kükitage. Kükitades vaadake vasakule, seejärel paremale.
|
||||
Keerake ülakeha vasakule (vastupäeva), seejärel sirutage alla maapinna poole.
|
||||
Keerake ülakeha paremale (päripäeva), seejärel sirutage alla maapinna poole.
|
||||
Pöörage puusi ringiratast, nagu kasutaksite hularõngast.
|
||||
Kui salvestusel on veel aega, korrake juhiseid, kuni aeg on läbi.
|
||||
onboarding-automatic_proportions-recording-processing = Tulemuse töötlemine
|
||||
# $time (Number) - Seconds left for the automatic calibration recording to finish (max 15)
|
||||
# $time (Number) - Seconds left for the automatic calibration recording to finish (max 20)
|
||||
onboarding-automatic_proportions-recording-timer =
|
||||
{ $time ->
|
||||
[one] 1 sekund
|
||||
@@ -599,7 +797,17 @@ onboarding-automatic_proportions-verify_results-redo = Tee salvestus uuesti
|
||||
onboarding-automatic_proportions-verify_results-confirm = Nad on õiged
|
||||
onboarding-automatic_proportions-done-title = Kere mõõdetud ja salvestatud.
|
||||
onboarding-automatic_proportions-done-description = Teie keha proportsioonid kalibreerimine on valmis!
|
||||
onboarding-automatic_proportions-error_modal-confirm = Sain aru!
|
||||
|
||||
## Home
|
||||
|
||||
home-no_trackers = Jälgijaid ei tuvastatud ega määratud
|
||||
|
||||
## Status system
|
||||
|
||||
status_system-StatusSteamVRDisconnected =
|
||||
{ $type ->
|
||||
[steamvr_feeder] Praegu ei ole SlimeVR-feeder äpiga ühendatud.
|
||||
*[other] Praegu ei ole SlimeVR-draiveri kaudu SteamVR-iga ühendatud.
|
||||
}
|
||||
status_system-StatusTrackerError = Jälgijal { $trackerName } on tõrge.
|
||||
@@ -1,6 +1,3 @@
|
||||
### SlimeVR complete GUI translations
|
||||
|
||||
|
||||
# Please developers (not translators) don't reuse a key inside another key
|
||||
# or concat text with a translation string in the code, use the appropriate
|
||||
# features like variables and selectors in each appropriate case!
|
||||
@@ -13,10 +10,19 @@
|
||||
websocket-connecting = Yhdistetään palvelimeen
|
||||
websocket-connection_lost = Yhteys epäonnistui. Yritetään uudelleen...
|
||||
|
||||
## Update notification
|
||||
|
||||
version_update-title = Uusi versio saatavilla: { $version }
|
||||
version_update-description = Valitsemalla "{ version_update-update }" lataa SlimeVR-asennusohjelman.
|
||||
version_update-update = Päivitys
|
||||
version_update-close = Sulje
|
||||
|
||||
## Tips
|
||||
|
||||
tips-find_tracker = Epävarma, mikä jäljitin on mikä? Ravista jäljitintä ja se korostaa vastaavan kohdan.
|
||||
tips-do_not_move_heels = Varmista, että kantapääsi ei liiku tallennuksen aikana!
|
||||
tips-file_select = Vedä ja pudota käytettäviä tiedostoja tai <u>selaa</u>.
|
||||
tips-tap_setup = Voit hitaasti napauttaa 2 kertaa jäljitintä valitaksesi sen, sen sijaan, että valitsisit sen valikosta.
|
||||
|
||||
## Body parts
|
||||
|
||||
@@ -30,6 +36,7 @@ body_part-RIGHT_HAND = Oikea käsi
|
||||
body_part-RIGHT_UPPER_LEG = Oikea reisi
|
||||
body_part-RIGHT_LOWER_LEG = Oikea nilkka
|
||||
body_part-RIGHT_FOOT = Oikea jalkaterä
|
||||
body_part-UPPER_CHEST = Ylärinta
|
||||
body_part-CHEST = Rinta
|
||||
body_part-WAIST = Vyötärö
|
||||
body_part-HIP = Lonkka
|
||||
@@ -47,8 +54,9 @@ skeleton_bone-NONE = Ei mikään
|
||||
skeleton_bone-HEAD = Pään säätö
|
||||
skeleton_bone-NECK = Kaulan pituus
|
||||
skeleton_bone-torso_group = Vartalon pituus
|
||||
skeleton_bone-CHEST = Rinnan pituus
|
||||
skeleton_bone-UPPER_CHEST = Ylärinnan pituus
|
||||
skeleton_bone-CHEST_OFFSET = Rinnan keskitys
|
||||
skeleton_bone-CHEST = Rinnan pituus
|
||||
skeleton_bone-WAIST = Vyötärön pituus
|
||||
skeleton_bone-HIP = Lonkan pituus
|
||||
skeleton_bone-HIP_OFFSET = Lonkan keskitys
|
||||
@@ -94,11 +102,16 @@ navbar-mounting = Asennuksen Kalibrointi
|
||||
navbar-onboarding = Asennustoiminto
|
||||
navbar-settings = Asetukset
|
||||
|
||||
## Bounding volume hierarchy recording
|
||||
## Biovision hierarchy recording
|
||||
|
||||
bvh-start_recording = Tallenna BVH
|
||||
bvh-recording = Tallennetaan...
|
||||
|
||||
## Tracking pause
|
||||
|
||||
tracking-unpaused = Keskeytä jäljitys
|
||||
tracking-paused = Jatka jäljitystä
|
||||
|
||||
## Widget: Overlay settings
|
||||
|
||||
widget-overlay = Overlay
|
||||
@@ -109,6 +122,10 @@ widget-overlay-is_mirrored_label = Näytä Overlay Peilinä
|
||||
|
||||
widget-drift_compensation-clear = Tyhjennä ajautumakompensaatio
|
||||
|
||||
## Widget: Clear Reset Mounting
|
||||
|
||||
widget-clear_mounting = Tyhjennä asennuksen nollaus
|
||||
|
||||
## Widget: Developer settings
|
||||
|
||||
widget-developer_mode = Kehittäjätila
|
||||
@@ -125,6 +142,7 @@ widget-developer_mode-more_info = Lisätietoja
|
||||
widget-imu_visualizer = Kierto
|
||||
widget-imu_visualizer-rotation_raw = Käsittelemätön
|
||||
widget-imu_visualizer-rotation_preview = Esikatselu
|
||||
widget-imu_visualizer-rotation_hide = Piilota
|
||||
|
||||
## Tracker status
|
||||
|
||||
@@ -151,9 +169,15 @@ tracker-table-column-url = URL
|
||||
## Tracker rotation
|
||||
|
||||
tracker-rotation-front = Etu
|
||||
tracker-rotation-front_left = Etu-vasen
|
||||
tracker-rotation-front_right = Etu-oikea
|
||||
tracker-rotation-left = Vasen
|
||||
tracker-rotation-right = Oikea
|
||||
tracker-rotation-back = Taka
|
||||
tracker-rotation-back_left = Taka-vasen
|
||||
tracker-rotation-back_right = Taka-oikea
|
||||
tracker-rotation-custom = Mukautettu
|
||||
tracker-rotation-overriden = (asennusnollauksen ohittama)
|
||||
|
||||
## Tracker information
|
||||
|
||||
@@ -163,6 +187,9 @@ tracker-infos-custom_name = Mukautettu Nimi
|
||||
tracker-infos-url = Jäljittimen URL
|
||||
tracker-infos-version = Laiteohjelmiston Versio
|
||||
tracker-infos-hardware_rev = Laitteston Tarkistus
|
||||
tracker-infos-hardware_identifier = Laitteiston ID
|
||||
tracker-infos-imu = IMU-Sensor
|
||||
tracker-infos-board_type = Päälevy
|
||||
|
||||
## Tracker settings
|
||||
|
||||
@@ -205,6 +232,28 @@ body_assignment_menu-unassign_tracker = Poista jäljittimen määritys
|
||||
# maybe your language does.
|
||||
-tracker_selection-part = Minkä jäljittimen valitset
|
||||
tracker_selection_menu-NONE = Minkä jäljittimen määrityksen haluat poistaa?
|
||||
tracker_selection_menu-HEAD = { -tracker_selection-part } pää?
|
||||
tracker_selection_menu-NECK = { -tracker_selection-part } kaula?
|
||||
tracker_selection_menu-RIGHT_SHOULDER = { -tracker_selection-part } oikea olkapää?
|
||||
tracker_selection_menu-RIGHT_UPPER_ARM = { -tracker_selection-part } oikea olkavarsi?
|
||||
tracker_selection_menu-RIGHT_LOWER_ARM = { -tracker_selection-part } oikea kyynärvarsi?
|
||||
tracker_selection_menu-RIGHT_HAND = { -tracker_selection-part } oikea käsi?
|
||||
tracker_selection_menu-RIGHT_UPPER_LEG = { -tracker_selection-part } oikea reisi?
|
||||
tracker_selection_menu-RIGHT_LOWER_LEG = { -tracker_selection-part } oikea nilkka?
|
||||
tracker_selection_menu-RIGHT_FOOT = { -tracker_selection-part } oikea jalkaterä?
|
||||
tracker_selection_menu-RIGHT_CONTROLLER = { -tracker_selection-part } oikea ohjain?
|
||||
tracker_selection_menu-UPPER_CHEST = { -tracker_selection-part } ylärinta?
|
||||
tracker_selection_menu-CHEST = { -tracker_selection-part } rinta?
|
||||
tracker_selection_menu-WAIST = { -tracker_selection-part } vyötärö?
|
||||
tracker_selection_menu-HIP = { -tracker_selection-part } lonkka?
|
||||
tracker_selection_menu-LEFT_SHOULDER = { -tracker_selection-part } vasen olkapää?
|
||||
tracker_selection_menu-LEFT_UPPER_ARM = { -tracker_selection-part } vasen olkavarsi?
|
||||
tracker_selection_menu-LEFT_LOWER_ARM = { -tracker_selection-part } vasen kyynärvarsi?
|
||||
tracker_selection_menu-LEFT_HAND = { -tracker_selection-part } vasen käsi?
|
||||
tracker_selection_menu-LEFT_UPPER_LEG = { -tracker_selection-part } vasen reisi?
|
||||
tracker_selection_menu-LEFT_LOWER_LEG = { -tracker_selection-part } vasen nilkka?
|
||||
tracker_selection_menu-LEFT_FOOT = { -tracker_selection-part } vasen jalkaterä?
|
||||
tracker_selection_menu-LEFT_CONTROLLER = { -tracker_selection-part } vasen ohjain?
|
||||
tracker_selection_menu-unassigned = Määrittämättömät jäljittimet
|
||||
tracker_selection_menu-assigned = Määritetyt jäljittimet
|
||||
tracker_selection_menu-dont_assign = Älä määritä
|
||||
@@ -230,8 +279,11 @@ settings-sidebar-fk_settings = Jäljityksen asetukset
|
||||
settings-sidebar-gesture_control = Eleohjaus
|
||||
settings-sidebar-interface = Käyttöliittymä
|
||||
settings-sidebar-osc_router = OSC-reititin
|
||||
settings-sidebar-osc_trackers = VRChat OSC-jäljittimet
|
||||
settings-sidebar-utils = Lisäohjelmat
|
||||
settings-sidebar-serial = Sarjakonsoli
|
||||
settings-sidebar-appearance = Ulkonäkö
|
||||
settings-sidebar-notifications = Ilmoitukset
|
||||
|
||||
## SteamVR settings
|
||||
|
||||
@@ -299,11 +351,21 @@ settings-general-fk_settings-leg_fk = Jalkojen jäljitys
|
||||
settings-general-fk_settings-arm_fk = Käsivarsien jäljitys
|
||||
settings-general-fk_settings-arm_fk-description = Muuta tapaa, jolla käsivarsia jäljitetään.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Pakota kädet HMD:ltä
|
||||
settings-general-fk_settings-skeleton_settings = Luurangon asetukset
|
||||
settings-general-fk_settings-skeleton_settings-toggles = Luurankoasetuksia
|
||||
settings-general-fk_settings-skeleton_settings-description = Ota tai poista käytöstä luurankoasetukset. On suositeltavaa jättää nämä päälle.
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine = Laajennettu selkäranka
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis = Laajennettu lantioluu
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees = Laajennettu polvi
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = Laajennettu selkärankamalli
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Laajennettu lantiomalli
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees_model = Laajennettu polvimalli
|
||||
settings-general-fk_settings-skeleton_settings-ratios = Luurankosuhteet
|
||||
settings-general-fk_settings-skeleton_settings-ratios-description = Muuta luurankoasetusten arvoja. Saatat joutua säätämään mittasuhteitasi muutosten jälkeen.
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = Laskelmoi vyötärö rinnasta lantioon
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Laskelmoi vyötärö rinnasta jalkoihin
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Laskelmoi lonkka rinnasta jalkoihin
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Laskelmoi lantio vyötäröstä jalkoihin
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Keskimääritä lonkan kallistus jaloilla'
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Keskimääritä polvijäljittimen kallistus nilkoilla'
|
||||
settings-general-fk_settings-self_localization-title = Mocap-tila
|
||||
settings-general-fk_settings-self_localization-description = Mocap-tila sallii luurangon karkeasti seurata omaa sijaintiaan ilman laseja tai muita jäljittimiä. Huomioi, että tämä vaatii jalka- ja pääjäljittimien toimimista ja on vielä kokeellinen.
|
||||
settings-general-fk_settings-vive_emulation-title = Vive-emulointi
|
||||
settings-general-fk_settings-vive_emulation-description = Emuloi vyötäröjäljittimen ongelmia, joita Vive jäljittimillä on. Tämä on vitsi ja pahentaa jäljitystä.
|
||||
settings-general-fk_settings-vive_emulation-label = Ota Vive-emulointi käyttöön
|
||||
@@ -320,6 +382,13 @@ settings-general-gesture_control-taps =
|
||||
[one] 1 napautus
|
||||
*[other] { $amount } napautusta
|
||||
}
|
||||
# This is a unit: 3 trackers, 2 trackers, 1 tracker
|
||||
# $amount (Number) - Amount of trackers
|
||||
settings-general-gesture_control-trackers =
|
||||
{ $amount ->
|
||||
[one] 1 jäljitin
|
||||
*[other] { $amount } jäljitintä
|
||||
}
|
||||
settings-general-gesture_control-yawResetEnabled = Ota käyttöön kallistumanollaus napautus
|
||||
settings-general-gesture_control-yawResetDelay = Kallistumanollaus viive
|
||||
settings-general-gesture_control-yawResetTaps = Napautuksia kallistumanollaukseen.
|
||||
@@ -329,13 +398,32 @@ settings-general-gesture_control-fullResetTaps = Napautuksia täysinollaukseen
|
||||
settings-general-gesture_control-mountingResetEnabled = Ota käyttöön asennusnollaus napautus
|
||||
settings-general-gesture_control-mountingResetDelay = Asennusnollaus viive
|
||||
settings-general-gesture_control-mountingResetTaps = Napautuksia asennusnollaukseen
|
||||
# The number of trackers that can have higher acceleration before a tap is rejected
|
||||
settings-general-gesture_control-numberTrackersOverThreshold = Jäljittimet yli kynnysarvon
|
||||
settings-general-gesture_control-numberTrackersOverThreshold-description = Suurenna tätä arvoa jos napautustunnistus ei toimi. Älä suurenna yli sen, mikä on tarpeellista, koska se voi aiheuttaa enemmän virheitä.
|
||||
|
||||
## Interface settings
|
||||
## Appearance settings
|
||||
|
||||
settings-general-interface = Käyttöliittymä
|
||||
settings-interface-appearance = Ulkonäkö
|
||||
settings-general-interface-dev_mode = Kehittäjätila
|
||||
settings-general-interface-dev_mode-description = Tämä tila voi olla hyödyllinen, jos tarvitset perusteellisia tietoja tai haluat olla tekemisissä yhdistettyjen jäljittimien kanssa edistyneemmällä tasolla.
|
||||
settings-general-interface-dev_mode-label = Kehittäjätila
|
||||
settings-general-interface-theme = Väri teema
|
||||
settings-general-interface-lang = Valitse kieli
|
||||
settings-general-interface-lang-description = Vaihda oletuskieli, jota haluat käyttää.
|
||||
settings-general-interface-lang-placeholder = Valitse käytettävä kieli
|
||||
# Keep the font name untranslated
|
||||
settings-interface-appearance-font = GUI-fontti
|
||||
settings-interface-appearance-font-description = Tämä muuttaa käyttöliittymän käyttämää fonttia.
|
||||
settings-interface-appearance-font-placeholder = Oletusfontti
|
||||
settings-interface-appearance-font-os_font = OS-fontti
|
||||
settings-interface-appearance-font-slime_font = Oletusfontti
|
||||
settings-interface-appearance-font_size = Perusfontin skaalaus
|
||||
settings-interface-appearance-font_size-description = Tämä vaikuttaa koko käyttöliittymän fonttikokoon tätä asetuspaneelia lukuun ottamatta.
|
||||
|
||||
## Notification settings
|
||||
|
||||
settings-interface-notifications = Ilmoitukset
|
||||
settings-general-interface-serial_detection = Sarjalaitteen tunnistus
|
||||
settings-general-interface-serial_detection-description = Tämä vaihtoehto näyttää ponnahdusikkunan aina, kun liität uuden sarjalaitteen, joka voi olla jäljitin. Se auttaa parantamaan jäljittimen asennusprosessia.
|
||||
settings-general-interface-serial_detection-label = Sarjalaitteen tunnistus
|
||||
@@ -343,10 +431,6 @@ settings-general-interface-feedback_sound = Palaute ääni
|
||||
settings-general-interface-feedback_sound-description = Tämä asetus toistaa äänen nollauksen tapahtuessa.
|
||||
settings-general-interface-feedback_sound-label = Palaute ääni
|
||||
settings-general-interface-feedback_sound-volume = Palaute äänen voimakkuus
|
||||
settings-general-interface-theme = Väri teema
|
||||
settings-general-interface-lang = Valitse kieli
|
||||
settings-general-interface-lang-description = Vaihda oletuskieli, jota haluat käyttää.
|
||||
settings-general-interface-lang-placeholder = Valitse käytettävä kieli
|
||||
|
||||
## Serial settings
|
||||
|
||||
@@ -418,6 +502,7 @@ settings-osc-vrchat-network-address-placeholder = VRChat IP-osoite
|
||||
settings-osc-vrchat-network-trackers = Jäljittimet
|
||||
settings-osc-vrchat-network-trackers-description = Vaihda tiettyjen jäljittimien lähettäminen OSC:n kautta.
|
||||
settings-osc-vrchat-network-trackers-chest = Rinta
|
||||
settings-osc-vrchat-network-trackers-hip = Lonkka
|
||||
settings-osc-vrchat-network-trackers-knees = Polvet
|
||||
settings-osc-vrchat-network-trackers-feet = Jalat
|
||||
settings-osc-vrchat-network-trackers-elbows = Kyynärpäät
|
||||
@@ -451,13 +536,22 @@ settings-osc-vmc-vrm-model_loaded =
|
||||
[true] Malli ladattu: { $name }
|
||||
*[other] Nimetön malli ladattu
|
||||
}
|
||||
settings-osc-vmc-vrm-file_select = Vedä ja pudota mallia käytettäväksi tai <u>selaa</u>
|
||||
settings-osc-vmc-anchor_hip = Ankkuri lantiolla
|
||||
settings-osc-vmc-anchor_hip-description = Ankkuroi jäljitin lonkalle, hyödyllinen istuvaan VTubing. Jos poistat käytöstä, lataa VRM-malli.
|
||||
settings-osc-vmc-anchor_hip-label = Ankkuroi lonkalle
|
||||
|
||||
## Setup/onboarding menu
|
||||
|
||||
onboarding-skip = Ohita asennus
|
||||
onboarding-continue = Jatka
|
||||
onboarding-wip = Keskeneräinen
|
||||
onboarding-previous_step = Edellinen vaihe
|
||||
onboarding-setup_warning =
|
||||
<b>Varoitus:</b> Alkuasennus vaaditaan hyvään jäljitykseen,
|
||||
sitä tarvitaan, jos käytät SlimeVR:ää ensimmäistä kertaa.
|
||||
onboarding-setup_warning-skip = Ohita asennus
|
||||
onboarding-setup_warning-cancel = Jatka asennusta
|
||||
|
||||
## Wi-Fi setup
|
||||
|
||||
@@ -480,7 +574,26 @@ onboarding-wifi_creds-password =
|
||||
|
||||
onboarding-reset_tutorial-back = Palaa asennuksen kalibrointiin
|
||||
onboarding-reset_tutorial = Nollaa tutoriaali
|
||||
onboarding-reset_tutorial-description = Tämä ominaisuus ei ole valmis, paina vain Jatka
|
||||
onboarding-reset_tutorial-explanation = Kun käytät jäljittimiä, ne saattavat epälinjoittua IMU:n ajautumisen tai fyysisen siirron takia. Sinulla on useita tapoja korjata tämä.
|
||||
onboarding-reset_tutorial-skip = Ohita vaihe
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Napauta { $taps } kertaa korostettua jäljitintä käynnistääksesi kallistuman nollauksen.
|
||||
|
||||
Tämä osoittaa jäljittimet samaan suuntaan kuin HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Napauta { $taps } kertaa korostettua jäljitintä käynnistääksesi täysinollauksen.
|
||||
|
||||
Sinun on seisottava paikallasi (i-pose) tätä varten. On 3 sekunnin viive (muokattavissa), ennen kuin se tapahtuu.
|
||||
Tämä täysin nollaa kaikkien jäljittimien sijainnin ja kierron. Sen pitäisi korjata useimmat ongelmat.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Napauta { $taps } kertaa korostettua jäljitintä käynnistääksesi asennuksen nollaus.
|
||||
|
||||
Asennuksen nollaus auttaa siinä, kuinka jäljittimet on todella asetettu sinulla, joten jos vahingossa siirsit ja muutit suuresti niiden suuntaa, tämä auttaa.
|
||||
|
||||
Sinun on oltava hiihto-asennossa, kuten on näytettynä Automaattisessa Asennuksessa ja sinulla on 3 sekunnin viive (muokattavissa), ennen kuin se käynnistyy.
|
||||
|
||||
## Setup start
|
||||
|
||||
@@ -506,30 +619,237 @@ onboarding-connect_tracker-back = Palaa Wi-Fi-tunnistetietoihin
|
||||
onboarding-connect_tracker-title = Yhdistä jäljittimet
|
||||
onboarding-connect_tracker-description-p0 = Nyt hauskaan osaan, kaikkien jäljittimien yhdistämiseen!
|
||||
onboarding-connect_tracker-description-p1 = Yhdistä vain kaikki, joita ei ole vielä yhdistetty, USB-portin kautta.
|
||||
onboarding-connect_tracker-issue-serial = Minulla on ongelmia yhteyden muodostamisessa!
|
||||
onboarding-connect_tracker-usb = USB-jäljitin
|
||||
onboarding-connect_tracker-connection_status-none = Etsitään jäljittimiä
|
||||
onboarding-connect_tracker-connection_status-serial_init = Yhdistetään sarjalaitteeseen
|
||||
onboarding-connect_tracker-connection_status-provisioning = Lähetetään Wi-Fi-tunnistetietoja
|
||||
onboarding-connect_tracker-connection_status-connecting = Yritetään muodostaa yhteys Wi-Fi-verkkoon
|
||||
onboarding-connect_tracker-connection_status-looking_for_server = Etsitään palvelinta
|
||||
onboarding-connect_tracker-connection_status-connection_error = Wi-Fi-yhteyden muodostaminen epäonnistui
|
||||
onboarding-connect_tracker-connection_status-could_not_find_server = Palvelinta ei löytynyt
|
||||
onboarding-connect_tracker-connection_status-done = Yhdistetty palvelimeen
|
||||
# $amount (Number) - Amount of trackers connected (this is a number, but you can use CLDR plural rules for your language)
|
||||
# More info on https://www.unicode.org/cldr/cldr-aux/charts/22/supplemental/language_plural_rules.html
|
||||
# English in this case only has 2 plural rules, which are "one" and "other",
|
||||
# we use 0 in an explicit way because there is no plural rule in english for 0, so we directly say
|
||||
# if $amount is 0 then we say "No trackers connected"
|
||||
onboarding-connect_tracker-connected_trackers =
|
||||
{ $amount ->
|
||||
[0] Jäljittimiä ei ole yhdistetty
|
||||
[one] 1 jäljitin yhdistetty
|
||||
*[other] { $amount } jäljitintä yhdistetty
|
||||
}
|
||||
onboarding-connect_tracker-next = Yhdistin kaikki jäljittimeni
|
||||
|
||||
## Tracker calibration tutorial
|
||||
|
||||
onboarding-calibration_tutorial = IMU-kalibrointi tutoriaali
|
||||
onboarding-calibration_tutorial-subtitle = Tämä auttaa vähentämään jäljittimen ajautumaa!
|
||||
onboarding-calibration_tutorial-description = Joka kerta, kun käynnistät jäljittimet, niiden täytyy levätä hetken tasaisella alustalla kalibroidakseen. Tehdään sama asia painamalla "{ onboarding-calibration_tutorial-calibrate }" nappia, <b>älä liikuta niitä!</b>
|
||||
onboarding-calibration_tutorial-calibrate = Asetin jäljittimeni pöydälle
|
||||
onboarding-calibration_tutorial-status-waiting = Odotetaan sinua
|
||||
onboarding-calibration_tutorial-status-calibrating = Kalibroi
|
||||
onboarding-calibration_tutorial-status-success = Kiva!
|
||||
onboarding-calibration_tutorial-status-error = Jäljitintä liikutettiin
|
||||
|
||||
## Tracker assignment tutorial
|
||||
|
||||
onboarding-assignment_tutorial = Kuinka valmistellaan Slime-jäljitin ennen käyttöä
|
||||
onboarding-assignment_tutorial-first_step = 1. Aseta kehonosatarra (jos sinulla on) jäljittimeen valintasi mukaan
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Tarra
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = Jatkeen tarranauhapuolen tulee olla ylöspäin seuraavan kuvan mukaisesti:
|
||||
onboarding-assignment_tutorial-done = Laitoin tarrat ja hihnat!
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
onboarding-assign_trackers-back = Palaa Wi-Fi-tunnistetietoihin
|
||||
onboarding-assign_trackers-title = Määritä jäljittimet
|
||||
onboarding-assign_trackers-description = Valitaan, mikä jäljitin menee minne. Napsauta paikkaa, johon haluat sijoittaa jäljittimen
|
||||
# Look at translation of onboarding-connect_tracker-connected_trackers on how to use plurals
|
||||
# $assigned (Number) - Trackers that have been assigned a body part
|
||||
# $trackers (Number) - Trackers connected to the server
|
||||
onboarding-assign_trackers-assigned =
|
||||
{ $trackers ->
|
||||
[one] { $assigned } / 1 jäljitintä määritetty
|
||||
*[other] { $assigned } / { $trackers } jäljittimiä määritetty
|
||||
}
|
||||
onboarding-assign_trackers-advanced = Näytä tarkempia määrityssijainteja
|
||||
onboarding-assign_trackers-next = Määritin kaikki jäljittimet
|
||||
|
||||
## Tracker assignment warnings
|
||||
|
||||
# Note for devs, number is used for representing boolean states per bit.
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-LEFT_FOOT =
|
||||
{ $unassigned ->
|
||||
[6] Vasen jalkaterä on määritetty, mutta myös vasen nilkka on määritettävä!
|
||||
[5] Vasen jalkaterä on määritetty, mutta myös vasen reisi on määritettävä!
|
||||
[4] Vasen jalkaterä on määritetty, mutta myös vasen nilkka ja vasen reisi on määritettävä!
|
||||
[3] Vasen jalkaterä on määritetty, mutta joko rinta, lantio tai vyötärö on myös määritettävä!
|
||||
[2] Vasen jalkaterä on määritetty, mutta myös vasen nilkka ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
[1] Vasen jalkaterä on määritetty, mutta myös vasen reisi ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
[0] Vasen jalkaterä on määritetty, mutta myös vasen nilkka, vasen reisi ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
*[other] Vasen jalkaterä on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-RIGHT_FOOT =
|
||||
{ $unassigned ->
|
||||
[6] Oikea jalkaterä on määritetty, mutta myös oikea nilkka on määritettävä!
|
||||
[5] Oikea jalkaterä on määritetty, mutta myös oikea reisi on määritettävä!
|
||||
[4] Oikea jalkaterä on määritetty, mutta myös oikea nilkka ja oikea reisi on määritettävä!
|
||||
[3] Oikea jalkaterä on määritetty, mutta joko rinta, lantio tai vyötärö on myös määritettävä!
|
||||
[2] Oikea jalkaterä on määritetty, mutta myös oikea nilkka ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
[1] Oikea jalkaterä on määritetty, mutta myös oikea reisi ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
[0] Oikea jalkaterä on määritetty, mutta myös oikea nilkka, oikea reisi ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
*[other] Oikea jalkaterä on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-LEFT_LOWER_LEG =
|
||||
{ $unassigned ->
|
||||
[0] Vasen nilkka on määritetty, mutta myös vasen reisi ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
[1] Vasen nilkka on määritetty, mutta joko rinta, lantio tai vyötärö on myös määritettävä!
|
||||
[2] Vasen nilkka on määritetty, mutta myös vasen reisi on määritettävä!
|
||||
*[other] Vasen nilkka on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-RIGHT_LOWER_LEG =
|
||||
{ $unassigned ->
|
||||
[0] Oikea nilkka on määritetty, mutta myös oikea reisi ja joko rinta, lantio tai vyötärö on määritettävä!
|
||||
[1] Oikea nilkka on määritetty, mutta joko rinta, lantio tai vyötärö on myös määritettävä!
|
||||
[2] Oikea nilkka on määritetty, mutta myös oikea reisi on määritettävä!
|
||||
*[other] Oikea nilkka on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-LEFT_UPPER_LEG =
|
||||
{ $unassigned ->
|
||||
[0] Vasen reisi on määritetty, mutta myös rinta, lantio tai vyötärö on määritettävä!
|
||||
*[other] Vasen reisi on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-RIGHT_UPPER_LEG =
|
||||
{ $unassigned ->
|
||||
[0] Oikea reisi on määritetty, mutta myös rinta, lantio tai vyötärö on määritettävä!
|
||||
*[other] Oikea reisi on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-HIP =
|
||||
{ $unassigned ->
|
||||
[0] Lonkka on määritetty, mutta myös rinta on määritettävä!
|
||||
*[other] Lonkka on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
# $unassigned (Number) - Bits are based on BodyAssignment.ASSIGNMENT_RULES order
|
||||
onboarding-assign_trackers-warning-WAIST =
|
||||
{ $unassigned ->
|
||||
[0] Vyötärö on määritetty, mutta myös rinta on määritettävä!
|
||||
*[other] Vyötärö on määritetty, mutta myös tuntematon määrittelemätön osa on määritettävä!
|
||||
}
|
||||
|
||||
## Tracker mounting method choose
|
||||
|
||||
onboarding-choose_mounting = Mitä asennuskalibrointimenetelmää käytetään?
|
||||
# Multiline text
|
||||
onboarding-choose_mounting-description = Asennussuuntaus korjaa jäljittimien sijoittelun kehossasi.
|
||||
onboarding-choose_mounting-auto_mounting = Automaattinen asennus
|
||||
# Italized text
|
||||
onboarding-choose_mounting-auto_mounting-label = Kokeellinen
|
||||
onboarding-choose_mounting-auto_mounting-description = Tämä tunnistaa automaattisesti kaikkien jäljittimiesi asennussuunnat 2 asennosta
|
||||
onboarding-choose_mounting-manual_mounting = Manuaalinen asennus
|
||||
# Italized text
|
||||
onboarding-choose_mounting-manual_mounting-label = Suositeltu
|
||||
onboarding-choose_mounting-manual_mounting-description = Näin voit valita asennussuunnan manuaalisesti kullekin jäljittimelle
|
||||
|
||||
## Tracker manual mounting setup
|
||||
|
||||
onboarding-manual_mounting-back = Palaa takaisin VR:ään
|
||||
onboarding-manual_mounting = Manuaalinen Asennus
|
||||
onboarding-manual_mounting-description = Napsauta jokaista jäljitintä ja valitse, mihin suuntaan ne on asennettu
|
||||
onboarding-manual_mounting-auto_mounting = Automaattinen asennus
|
||||
onboarding-manual_mounting-next = Seuraava vaihe
|
||||
|
||||
## Tracker automatic mounting setup
|
||||
|
||||
onboarding-automatic_mounting-back = Palaa takaisin VR:ään
|
||||
onboarding-automatic_mounting-title = Asennuksen Kalibrointi
|
||||
onboarding-automatic_mounting-description = Jotta SlimeVR jäljittimet toimisivat, meidän on määritettävä jäljittimille asennuksen kierto, jotta ne voidaan kohdistaa fyysisen jäljittimen asennuksen kanssa.
|
||||
onboarding-automatic_mounting-manual_mounting = Manuaalinen asennus
|
||||
onboarding-automatic_mounting-next = Seuraava vaihe
|
||||
onboarding-automatic_mounting-prev_step = Edellinen vaihe
|
||||
onboarding-automatic_mounting-done-title = Asennuskierrokset kalibroitu.
|
||||
onboarding-automatic_mounting-done-description = Asennuskalibrointi on valmis!
|
||||
onboarding-automatic_mounting-done-restart = Yritä uudelleen
|
||||
onboarding-automatic_mounting-mounting_reset-title = Asennuksen Nollaus
|
||||
onboarding-automatic_mounting-mounting_reset-step-0 = 1. Kyykisty "hiihtoasentoon" siten, että jalat ovat koukussa, ylävartalo kallistettuna eteenpäin ja kädet koukussa.
|
||||
onboarding-automatic_mounting-mounting_reset-step-1 = 2. Paina "Nollaa Asennus" -painiketta ja odota 3 sekuntia, ennen kuin jäljittimien asennuskierrot nollautuvat.
|
||||
onboarding-automatic_mounting-preparation-title = Valmistelu
|
||||
onboarding-automatic_mounting-preparation-step-0 = 1. Seiso pystyssä kädet sivuilla.
|
||||
onboarding-automatic_mounting-preparation-step-1 = 2. Paina "Täysinollaus" -painiketta ja odota 3 sekuntia, ennen kuin jäljittimet nollautuvat.
|
||||
onboarding-automatic_mounting-put_trackers_on-title = Laita jäljittimet päällesi
|
||||
onboarding-automatic_mounting-put_trackers_on-description = Kalibroidaksemme asennuskierrokset käytämme juuri määrittämiäsi jäljittimiä. Laita kaikki jäljittimet päällesi, näet mitkä ovat mitäkin oikealla olevassa kuvassa.
|
||||
onboarding-automatic_mounting-put_trackers_on-next = Minulla on kaikki jäljittimet päällä
|
||||
|
||||
## Tracker proportions method choose
|
||||
|
||||
onboarding-choose_proportions = Mitä kalibrointimenetelmää käytetään?
|
||||
onboarding-choose_proportions-auto_proportions = Automaattiset mittasuhteet
|
||||
onboarding-choose_proportions-manual_proportions = Manuaaliset mittasuhteet
|
||||
|
||||
## Tracker manual proportions setup
|
||||
|
||||
onboarding-manual_proportions-title = Manuaaliset kehon mittasuhteet
|
||||
onboarding-manual_proportions-precision = Tarkka säätö
|
||||
onboarding-manual_proportions-auto = Automaattiset mittasuhteet
|
||||
onboarding-manual_proportions-ratio = Säädä suhderyhmien mukaan
|
||||
|
||||
## Tracker automatic proportions setup
|
||||
|
||||
onboarding-automatic_proportions-title = Mittaa kehosi
|
||||
onboarding-automatic_proportions-manual = Manuaaliset mittasuhteet
|
||||
onboarding-automatic_proportions-prev_step = Edellinen vaihe
|
||||
onboarding-automatic_proportions-put_trackers_on-title = Laita jäljittimet päällesi
|
||||
onboarding-automatic_proportions-put_trackers_on-next = Minulla on kaikki jäljittimet päällä
|
||||
onboarding-automatic_proportions-requirements-title = Vaatimukset
|
||||
onboarding-automatic_proportions-requirements-next = Olen lukenut vaatimukset
|
||||
onboarding-automatic_proportions-check_height-title = Tarkista pituutesi
|
||||
onboarding-automatic_proportions-check_height-fetch_height = Seison
|
||||
# Context is that the height is unknown
|
||||
onboarding-automatic_proportions-check_height-unknown = Tuntematon
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-hmd_height1 = HMD-korkeus on
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-height1 = Joten todellinen pituutesi on
|
||||
onboarding-automatic_proportions-check_height-next_step = Ne ovat hyvät
|
||||
onboarding-automatic_proportions-start_recording-title = Valmistaudu liikkumaan
|
||||
onboarding-automatic_proportions-start_recording-next = Aloita tallennus
|
||||
onboarding-automatic_proportions-recording-description-p0 = Tallennus käynnissä...
|
||||
onboarding-automatic_proportions-recording-description-p1 = Tee alla esitetyt liikkeet:
|
||||
onboarding-automatic_proportions-recording-processing = Käsitellään tuloksia
|
||||
# $time (Number) - Seconds left for the automatic calibration recording to finish (max 20)
|
||||
onboarding-automatic_proportions-recording-timer =
|
||||
{ $time ->
|
||||
[one] 1 sekuntti jäljellä
|
||||
*[other] { $time } sekuntia jäljellä
|
||||
}
|
||||
onboarding-automatic_proportions-verify_results-title = Vahvista tulokset
|
||||
onboarding-automatic_proportions-verify_results-description = Tarkista alla olevat tulokset, näyttävätkö ne oikeilta?
|
||||
onboarding-automatic_proportions-verify_results-results = Tallennuksen tulokset
|
||||
onboarding-automatic_proportions-verify_results-processing = Käsitellään tuloksia
|
||||
onboarding-automatic_proportions-verify_results-confirm = Nämä ovat oikein
|
||||
onboarding-automatic_proportions-done-title = Keho mitattu ja tallennettu.
|
||||
onboarding-automatic_proportions-done-description = Kehosi mittasuhteiden kalibrointi on valmis!
|
||||
onboarding-automatic_proportions-error_modal-confirm = Ymmäretty!
|
||||
|
||||
## Home
|
||||
|
||||
home-no_trackers = Jäjittimiä ei havaittu tai määritetty
|
||||
|
||||
## Status system
|
||||
|
||||
status_system-StatusTrackerReset = On suositeltavaa suorittaa täydellinen nollaus, koska yhtä tai useampaa jäljitintä ei ole säädetty.
|
||||
status_system-StatusSteamVRDisconnected =
|
||||
{ $type ->
|
||||
[steamvr_feeder] Tällä hetkellä ei ole yhdistetty SlimeVR Feeder -sovellukseen.
|
||||
*[other] Tällä hetkellä ei ole yhdistetty SteamVR:ään SlimeVR-ajurin kautta.
|
||||
}
|
||||
status_system-StatusTrackerError = { $trackerName } jäljittimessä on virhe
|
||||
@@ -20,7 +20,7 @@ version_update-close = Fermer
|
||||
## Tips
|
||||
|
||||
tips-find_tracker = Impossible de différencier vos capteurs ? Secouez-en un pour qu'il soit mis en évidence.
|
||||
tips-do_not_move_heels = Assurez-vous de ne pas bouger vos pieds pendant la calibration !
|
||||
tips-do_not_move_heels = Assurez-vous de ne pas bouger vos pieds pendant l'enregistrement !
|
||||
tips-file_select = Glissez et déposez des fichiers à utiliser, ou <u>parcourir</u>.
|
||||
tips-tap_setup = Vous pouvez tapoter lentement votre capteur 2 fois pour le choisir au lieu de le sélectionner depuis le menu.
|
||||
|
||||
@@ -659,8 +659,8 @@ onboarding-assignment_tutorial = Comment préparer un capteur Slime avant de le
|
||||
onboarding-assignment_tutorial-first_step = 1. Placez un autocollant de partie du corps (si vous en avez un) sur le capteur selon votre choix
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Autocollant
|
||||
onboarding-assignment_tutorial-second_step = 2. Attachez la sangle à votre capteur en gardant le côté velcro de la sangle dans l’orientation suivante:
|
||||
onboarding-assignment_tutorial-second_step-continuation = La partie velcro pour l’extension doit être dans cette orientation:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. Attachez la sangle à votre capteur en gardant le velcro de la sangle dans la même direction que le visage du capteur :
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = Le velcro de l’extension doit être orienté vers le haut comme dans l’image suivante :
|
||||
onboarding-assignment_tutorial-done = J'ai mis les autocollants et les sangles !
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
@@ -658,8 +658,8 @@ onboarding-assignment_tutorial = Come preparare uno Slime Tracker prima di indos
|
||||
onboarding-assignment_tutorial-first_step = 1. Posiziona un adesivo di una parte del corpo sul tracker in base alla tua scelta (se ne hai uno)
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Adesivo
|
||||
onboarding-assignment_tutorial-second_step = 2. Fissa il cinturino al tracker, mantenendo il lato del gancio e dell'anello del cintutino nel seguente orientamento:
|
||||
onboarding-assignment_tutorial-second_step-continuation = Il lato del gancio e dell'anello del cinturino per l'estensione dovrebbe essere in questo orientamento:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. Fissare il cinturino al tracker, mantenendo il lato in velcro del cinturino rivolto nella stessa direzione del lato frontale del tuo slime tracker:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = Il lato del velcro per l'estensione dovrebbe essere rivolto verso l'alto come nell'immagine seguente:
|
||||
onboarding-assignment_tutorial-done = Ho messo gli adesivi e i cinturini!
|
||||
|
||||
## Tracker assignment setup
|
||||
@@ -845,9 +845,9 @@ onboarding-automatic_proportions-check_height-fetch_height = Sono in piedi!
|
||||
# Context is that the height is unknown
|
||||
onboarding-automatic_proportions-check_height-unknown = Sconosciuto
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-height = La tua altezza è
|
||||
onboarding-automatic_proportions-check_height-hmd_height1 = L'altezza del tuo HMD è
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-hmd_height = E l'altezza del HMD è
|
||||
onboarding-automatic_proportions-check_height-height1 = quindi la tua altezza effettiva è
|
||||
onboarding-automatic_proportions-check_height-next_step = Sono corretti
|
||||
onboarding-automatic_proportions-start_recording-title = Preparati a muoverti
|
||||
onboarding-automatic_proportions-start_recording-description = Ora registreremo alcune pose e movimenti specifici. Questi verranno descritte nelle schermate successive. Preparati a iniziare quando premi il pulsante!
|
||||
|
||||
@@ -665,8 +665,7 @@ onboarding-assignment_tutorial = Jak przygotować Slime Tracker przed założeni
|
||||
onboarding-assignment_tutorial-first_step = 1. Umieść naklejkę z częścią ciała (jeśli ją posiadasz) na trackerze według własnego uznania
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Naklejka
|
||||
onboarding-assignment_tutorial-second_step = 2. Przymocuj pasek do trackera, utrzymując stronę paska z haczykiem i pętelką w następującej orientacji:
|
||||
onboarding-assignment_tutorial-second_step-continuation = Strona z haczykiem i pętelką dla przedłużenia powinna być w tej orientacji:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = Strona z rzepem dla przedłużenia powinna być skierowana do góry, jak na poniższym obrazku:
|
||||
onboarding-assignment_tutorial-done = Umieszczam naklejki i paski!
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
@@ -177,6 +177,7 @@ tracker-rotation-back = Сзади
|
||||
tracker-rotation-back_left = Левая сторона задней части
|
||||
tracker-rotation-back_right = Правая сторона задней части
|
||||
tracker-rotation-custom = Пользовательское
|
||||
tracker-rotation-overriden = (перезаписан крепёжным сбросом)
|
||||
|
||||
## Tracker information
|
||||
|
||||
@@ -350,12 +351,15 @@ settings-general-fk_settings-leg_fk = Трекинг ноги
|
||||
settings-general-fk_settings-arm_fk = Трекинг руки
|
||||
settings-general-fk_settings-arm_fk-description = Измените способ отслеживания рук.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Руки от HMD
|
||||
settings-general-fk_settings-skeleton_settings-toggles = Переключатели скелета
|
||||
settings-general-fk_settings-skeleton_settings-description = Включите или выключите настройки скелета. Рекомендуется оставить их включенными.
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = Модель вытянутого позвоночника
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Модель удлиненного таза
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees_model = Модель с удлиненным коленом
|
||||
settings-general-fk_settings-skeleton_settings-ratios = Соотношения скелета
|
||||
settings-general-fk_settings-skeleton_settings-ratios-description = Измените значения параметров скелета. Возможно, вам придется скорректировать пропорции после их изменения.
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Усредните рыскание и перекат бедра c рысканьем и перекатом ног
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Усредните рыскание и крен коленных трекеров с рысканьем и креном трекеров лодыжек
|
||||
settings-general-fk_settings-self_localization-title = Режим Mocap
|
||||
settings-general-fk_settings-self_localization-description = Режим Mocap позволяет скелету примерно отслеживать свое собственное положение без использования гарнитуры или других трекеров. Обратите внимание, что для работы этого требуются трекеры ног и головы, и это все еще экспериментальный метод.
|
||||
settings-general-fk_settings-vive_emulation-title = Эмуляция Vive
|
||||
@@ -657,8 +661,8 @@ onboarding-assignment_tutorial = Как подготовить Slime Треке
|
||||
onboarding-assignment_tutorial-first_step = 1. Наклейте стикер с частью тела (если он у вас есть) на трекер по вашему выбору.
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = Стикер
|
||||
onboarding-assignment_tutorial-second_step = 2. Прикрепите ремешок к вашему трекеру, придерживая лицевую сторону ремешка со стороны крючка и петли в следующем положении:
|
||||
onboarding-assignment_tutorial-second_step-continuation = Сторона крючка и петли для удлинителя должна быть в этой ориентации:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. Прикрепите ремешок к трекеру, держа липучку в том же направлении, что и верхняя сторона трекера:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = Липучка расширения должна смотреть вверх, как показано на следующей картинке:
|
||||
onboarding-assignment_tutorial-done = Я наклеил стикеры и ремешки!
|
||||
|
||||
## Tracker assignment setup
|
||||
@@ -800,6 +804,10 @@ onboarding-choose_proportions-description =
|
||||
onboarding-choose_proportions-auto_proportions = Автоматическая привязка
|
||||
# Italized text
|
||||
onboarding-choose_proportions-auto_proportions-subtitle = Рекомендуется
|
||||
onboarding-choose_proportions-auto_proportions-descriptionv2 =
|
||||
Приложение попытаеться угадать ваши пропорции, записывая образец ваших движений и пропуская его через алгоритм.
|
||||
|
||||
<b>Для этого необходимо, чтобы ваш HMD был подключен к SlimeVR!</b>
|
||||
onboarding-choose_proportions-manual_proportions = Ручные пропорции
|
||||
# Italized text
|
||||
onboarding-choose_proportions-manual_proportions-subtitle = Для небольших штрихов
|
||||
@@ -835,6 +843,18 @@ onboarding-automatic_proportions-requirements-description =
|
||||
Ваши трекеры и гарнитура правильно работают на сервере SlimeVR.
|
||||
Ваша гарнитура передает данные о местоположении на сервер SlimeVR (обычно это означает, что SteamVR запущен и подключен к SlimeVR с помощью драйвера SlimeVR SteamVR).
|
||||
onboarding-automatic_proportions-requirements-next = Я прочитал требования
|
||||
onboarding-automatic_proportions-check_height-title = Проверьте ваш рост
|
||||
onboarding-automatic_proportions-check_height-description = Мы используем ваш рост в качестве основы для наших измерений, используя высоту HMD как приблизительное значение к вашему фактическому росту, но лучше проверить, верны ли эти значения самому!
|
||||
# All the text is in bold!
|
||||
onboarding-automatic_proportions-check_height-calculation_warning = Для рассчёта вашего роста, пожалуйста, нажимите кнопку стоя, <u>смотря вперёд</u>. У вас будут 3 секунды после того, как вы нажмете кнопку!
|
||||
onboarding-automatic_proportions-check_height-fetch_height = Я стою!
|
||||
# Context is that the height is unknown
|
||||
onboarding-automatic_proportions-check_height-unknown = Неизвестно
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-hmd_height1 = Высота вашего HMD равна
|
||||
# Shows an element below it
|
||||
onboarding-automatic_proportions-check_height-height1 = поэтому ваш реальный рост равен
|
||||
onboarding-automatic_proportions-check_height-next_step = С ними всё хорошо
|
||||
onboarding-automatic_proportions-start_recording-title = Будьте готовы к движению
|
||||
onboarding-automatic_proportions-start_recording-description = Теперь мы собираемся записать некоторые конкретные позы и движения. Они будут запрошены на следующем экране. Будьте готовы начать, когда кнопка будет нажата!
|
||||
onboarding-automatic_proportions-start_recording-next = Начать запись
|
||||
@@ -866,6 +886,10 @@ onboarding-automatic_proportions-verify_results-redo = Перезаписать
|
||||
onboarding-automatic_proportions-verify_results-confirm = Они правильные
|
||||
onboarding-automatic_proportions-done-title = Тело измерено и сохранено.
|
||||
onboarding-automatic_proportions-done-description = Калибровка пропорций вашего тела завершена!
|
||||
onboarding-automatic_proportions-error_modal =
|
||||
<b>Предупреждение:</b> Была обнаружена ошибка при расчёте пропорций!
|
||||
Пожалуйста, <docs>ознакомьтесь с документацией</docs>, или присоединитесь к нашему <discord>Discord серверу</discord> для получения помощи ^_^
|
||||
onboarding-automatic_proportions-error_modal-confirm = Принято!
|
||||
|
||||
## Home
|
||||
|
||||
|
||||
@@ -653,8 +653,8 @@ onboarding-assignment_tutorial = 在佩戴 Slime 追踪器之前的准备工作
|
||||
onboarding-assignment_tutorial-first_step = 1. 根据您分配的情况在追踪器上粘贴标识身体部位的贴纸(如果有)
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = 贴纸
|
||||
onboarding-assignment_tutorial-second_step = 2. 将绑带与追踪器连接,调整绑带的粘扣朝向到如下图所示(如果有):
|
||||
onboarding-assignment_tutorial-second_step-continuation = 扩展追踪器的粘扣朝向:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. 将绑带穿过追踪器,确保绑带有粘扣面的朝向与追踪器上的笑脸标志同向:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = 扩展追踪器的粘扣朝向应如下图所示:
|
||||
onboarding-assignment_tutorial-done = 我把贴纸和绑带都弄好了!
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
@@ -651,8 +651,8 @@ onboarding-assignment_tutorial = 戴上 Slime 追蹤器前的準備事項
|
||||
onboarding-assignment_tutorial-first_step = 1. 若有標示身體部位的貼紙,可在您所要分配使用的追蹤器上貼上。
|
||||
# This text has a character limit of around 11 characters, so please keep it short
|
||||
onboarding-assignment_tutorial-sticker = 貼紙
|
||||
onboarding-assignment_tutorial-second_step = 2. 將綁帶有魔鬼氈(魔術貼)的一面,依照下圖所示的方向穿過追蹤器:
|
||||
onboarding-assignment_tutorial-second_step-continuation = 延伸追蹤器應照下圖所示:
|
||||
onboarding-assignment_tutorial-second_step-v2 = 2. 將綁帶有魔鬼氈(魔術貼)的一面朝向臉部標誌穿過追蹤器:
|
||||
onboarding-assignment_tutorial-second_step-continuation-v2 = 延伸追蹤器的穿法應照下圖所示:
|
||||
onboarding-assignment_tutorial-done = 我把貼紙跟綁帶都弄上了
|
||||
|
||||
## Tracker assignment setup
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-miterlimit="10" version="1.1" viewBox="0 0 380 380" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>svg { background-color: #663499; }</style>
|
||||
<rect id="bg" width="100%" height="100%" fill="#663499"/><g id="logo" fill="none" stroke="#fff"><path id="left" d="m72.867 191.74 37-39 39 36" stroke-width="13.62px"/><path id="right" d="m208.87 187.74 38-35 36 38" stroke-width="13.62px"/><path id="outer" d="m56.867 253.74s130.61-31.182 248 5c13.45 4.146 20.244 2.975 20-8s1.909-126.06-46-131" stroke-linecap="square" stroke-width="17px"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 660 B |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,16 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"name": "SlimeVR GUI",
|
||||
"short_name": "SlimeVR GUI",
|
||||
"description": "A web interface for controlling the SlimeVR Server software",
|
||||
"display": "standalone",
|
||||
"theme_color": "#663499",
|
||||
"background_color": "#663499",
|
||||
"icons": [
|
||||
{
|
||||
"src": "logo.svg",
|
||||
"type": "image/svg+xml",
|
||||
"sizes": "any 512x512 192x192"
|
||||
},
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
@@ -17,9 +26,5 @@
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
]
|
||||
}
|
||||
@@ -30,11 +30,11 @@ serde_json = "1"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
tauri = { version = "2.0.0-alpha.10", features = ["devtools"] }
|
||||
tauri-runtime = "0.13.0-alpha.6"
|
||||
tauri-plugin-dialog = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||
tauri-plugin-fs = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||
tauri-plugin-os = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||
tauri-plugin-shell = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||
tauri-plugin-window = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2", features = [
|
||||
tauri-plugin-dialog = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
|
||||
tauri-plugin-fs = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
|
||||
tauri-plugin-os = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
|
||||
tauri-plugin-shell = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d" }
|
||||
tauri-plugin-window = { git = "https://github.com/tauri-apps/plugins-workspace", rev = "4ab90f048eab2918344f97dc8e04413a404e392d", features = [
|
||||
"devtools",
|
||||
] }
|
||||
flexi_logger = "0.25"
|
||||
|
||||
@@ -35,7 +35,6 @@ import { SerialDetectionModal } from './components/SerialDetectionModal';
|
||||
import { VRCOSCSettings } from './components/settings/pages/VRCOSCSettings';
|
||||
import { TopBar } from './components/TopBar';
|
||||
import { TrackerSettingsPage } from './components/tracker/TrackerSettings';
|
||||
import { useConfig } from './hooks/config';
|
||||
import { OSCRouterSettings } from './components/settings/pages/OSCRouterSettings';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import * as os from '@tauri-apps/plugin-os';
|
||||
@@ -52,6 +51,7 @@ import { useBreakpoint } from './hooks/breakpoint';
|
||||
import { VRModePage } from './components/vr-mode/VRModePage';
|
||||
import { InterfaceSettings } from './components/settings/pages/InterfaceSettings';
|
||||
import { error, log } from './utils/logging';
|
||||
import { AppLayout } from './AppLayout';
|
||||
|
||||
export const GH_REPO = 'SlimeVR/SlimeVR-Server';
|
||||
export const VersionContext = createContext('');
|
||||
@@ -59,92 +59,94 @@ export const DOCS_SITE = 'https://docs.slimevr.dev';
|
||||
export const SLIMEVR_DISCORD = 'https://discord.gg/slimevr';
|
||||
|
||||
function Layout() {
|
||||
const { loading } = useConfig();
|
||||
|
||||
if (loading) return <></>;
|
||||
|
||||
const { isMobile } = useBreakpoint('mobile');
|
||||
|
||||
return (
|
||||
<>
|
||||
<SerialDetectionModal></SerialDetectionModal>
|
||||
<VersionUpdateModal></VersionUpdateModal>
|
||||
<Routes>
|
||||
<Route
|
||||
path="/"
|
||||
element={
|
||||
<MainLayoutRoute isMobile={isMobile}>
|
||||
<Home />
|
||||
</MainLayoutRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/vr-mode"
|
||||
element={
|
||||
<MainLayoutRoute isMobile={isMobile}>
|
||||
<VRModePage />
|
||||
</MainLayoutRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/tracker/:trackernum/:deviceid"
|
||||
element={
|
||||
<MainLayoutRoute background={false} isMobile={isMobile}>
|
||||
<TrackerSettingsPage />
|
||||
</MainLayoutRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/settings"
|
||||
element={
|
||||
<SettingsLayoutRoute>
|
||||
<Outlet></Outlet>
|
||||
</SettingsLayoutRoute>
|
||||
}
|
||||
>
|
||||
<Route path="trackers" element={<GeneralSettings />} />
|
||||
<Route path="serial" element={<Serial />} />
|
||||
<Route path="osc/router" element={<OSCRouterSettings />} />
|
||||
<Route path="osc/vrchat" element={<VRCOSCSettings />} />
|
||||
<Route path="osc/vmc" element={<VMCSettings />} />
|
||||
<Route path="interface" element={<InterfaceSettings />} />
|
||||
<Route element={<AppLayout />}>
|
||||
<Route
|
||||
path="/"
|
||||
element={
|
||||
<MainLayoutRoute isMobile={isMobile}>
|
||||
<Home />
|
||||
</MainLayoutRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/vr-mode"
|
||||
element={
|
||||
<MainLayoutRoute isMobile={isMobile}>
|
||||
<VRModePage />
|
||||
</MainLayoutRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/tracker/:trackernum/:deviceid"
|
||||
element={
|
||||
<MainLayoutRoute background={false} isMobile={isMobile}>
|
||||
<TrackerSettingsPage />
|
||||
</MainLayoutRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/settings"
|
||||
element={
|
||||
<SettingsLayoutRoute>
|
||||
<Outlet />
|
||||
</SettingsLayoutRoute>
|
||||
}
|
||||
>
|
||||
<Route path="trackers" element={<GeneralSettings />} />
|
||||
<Route path="serial" element={<Serial />} />
|
||||
<Route path="osc/router" element={<OSCRouterSettings />} />
|
||||
<Route path="osc/vrchat" element={<VRCOSCSettings />} />
|
||||
<Route path="osc/vmc" element={<VMCSettings />} />
|
||||
<Route path="interface" element={<InterfaceSettings />} />
|
||||
</Route>
|
||||
<Route
|
||||
path="/onboarding"
|
||||
element={
|
||||
<OnboardingLayout>
|
||||
<Outlet />
|
||||
</OnboardingLayout>
|
||||
}
|
||||
>
|
||||
<Route path="home" element={<HomePage />} />
|
||||
<Route path="wifi-creds" element={<WifiCredsPage />} />
|
||||
<Route path="connect-trackers" element={<ConnectTrackersPage />} />
|
||||
<Route
|
||||
path="calibration-tutorial"
|
||||
element={<CalibrationTutorialPage />}
|
||||
/>
|
||||
<Route
|
||||
path="assign-tutorial"
|
||||
element={<AssignmentTutorialPage />}
|
||||
/>
|
||||
<Route path="trackers-assign" element={<TrackersAssignPage />} />
|
||||
<Route path="enter-vr" element={<EnterVRPage />} />
|
||||
<Route path="mounting/choose" element={<MountingChoose />}></Route>
|
||||
<Route path="mounting/auto" element={<AutomaticMountingPage />} />
|
||||
<Route path="mounting/manual" element={<ManualMountingPage />} />
|
||||
<Route path="reset-tutorial" element={<ResetTutorialPage />} />
|
||||
<Route
|
||||
path="body-proportions/choose"
|
||||
element={<ProportionsChoose />}
|
||||
/>
|
||||
<Route
|
||||
path="body-proportions/auto"
|
||||
element={<AutomaticProportionsPage />}
|
||||
/>
|
||||
<Route
|
||||
path="body-proportions/manual"
|
||||
element={<ManualProportionsPage />}
|
||||
/>
|
||||
<Route path="done" element={<DonePage />} />
|
||||
</Route>
|
||||
<Route path="*" element={<TopBar></TopBar>}></Route>
|
||||
</Route>
|
||||
<Route
|
||||
path="/onboarding"
|
||||
element={
|
||||
<OnboardingLayout>
|
||||
<Outlet></Outlet>
|
||||
</OnboardingLayout>
|
||||
}
|
||||
>
|
||||
<Route path="home" element={<HomePage />} />
|
||||
<Route path="wifi-creds" element={<WifiCredsPage />} />
|
||||
<Route path="connect-trackers" element={<ConnectTrackersPage />} />
|
||||
<Route
|
||||
path="calibration-tutorial"
|
||||
element={<CalibrationTutorialPage />}
|
||||
/>
|
||||
<Route path="assign-tutorial" element={<AssignmentTutorialPage />} />
|
||||
<Route path="trackers-assign" element={<TrackersAssignPage />} />
|
||||
<Route path="enter-vr" element={<EnterVRPage />} />
|
||||
<Route path="mounting/choose" element={<MountingChoose />}></Route>
|
||||
<Route path="mounting/auto" element={<AutomaticMountingPage />} />
|
||||
<Route path="mounting/manual" element={<ManualMountingPage />} />
|
||||
<Route path="reset-tutorial" element={<ResetTutorialPage />} />
|
||||
<Route
|
||||
path="body-proportions/choose"
|
||||
element={<ProportionsChoose />}
|
||||
/>
|
||||
<Route
|
||||
path="body-proportions/auto"
|
||||
element={<AutomaticProportionsPage />}
|
||||
/>
|
||||
<Route
|
||||
path="body-proportions/manual"
|
||||
element={<ManualProportionsPage />}
|
||||
/>
|
||||
<Route path="done" element={<DonePage />} />
|
||||
</Route>
|
||||
<Route path="*" element={<TopBar></TopBar>}></Route>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
import { useLayoutEffect } from 'react';
|
||||
import { useConfig } from './hooks/config';
|
||||
import { Outlet, useNavigate } from 'react-router-dom';
|
||||
|
||||
export function AppLayout() {
|
||||
const { loading, config } = useConfig();
|
||||
const navigate = useNavigate();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (loading || !config) return;
|
||||
if (config.theme !== undefined) {
|
||||
document.documentElement.dataset.theme = config.theme;
|
||||
}
|
||||
|
||||
if (config.fonts !== undefined) {
|
||||
document.documentElement.style.setProperty(
|
||||
'--font-name',
|
||||
config.fonts.map((x) => `"${x}"`).join(',')
|
||||
);
|
||||
}
|
||||
|
||||
if (config.textSize !== undefined) {
|
||||
document.documentElement.style.setProperty(
|
||||
'--font-size',
|
||||
`${config.textSize}rem`
|
||||
);
|
||||
}
|
||||
}, [config, loading]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (config && !config.doneOnboarding) {
|
||||
navigate('/onboarding/home');
|
||||
}
|
||||
}, [config?.doneOnboarding]);
|
||||
|
||||
// const location = useLocation();
|
||||
// const navigationType = useNavigationType();
|
||||
// useEffect(() => {
|
||||
// if (import.meta.env.PROD) return;
|
||||
// console.log('The current URL is', { ...location });
|
||||
// console.log('The last navigation action was', navigationType);
|
||||
// }, [location, navigationType]);
|
||||
|
||||
if (loading) return <></>;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Outlet />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -5,21 +5,30 @@ import classNames from 'classnames';
|
||||
import { Typography } from '../../../commons/Typography';
|
||||
import { Button } from '../../../commons/Button';
|
||||
import {
|
||||
SkeletonConfigResponseT,
|
||||
RpcMessage,
|
||||
SkeletonConfigRequestT,
|
||||
SkeletonBone,
|
||||
ChangeSkeletonConfigRequestT,
|
||||
} from 'solarxr-protocol';
|
||||
import { useWebsocketAPI } from '../../../../hooks/websocket-api';
|
||||
import saveAs from 'file-saver';
|
||||
import { save } from '@tauri-apps/plugin-dialog';
|
||||
import { writeTextFile } from '@tauri-apps/plugin-fs';
|
||||
import { useIsTauri } from '../../../../hooks/breakpoint';
|
||||
import { useAppContext } from '../../../../hooks/app';
|
||||
import { error } from '../../../../utils/logging';
|
||||
import { fileOpen, fileSave } from 'browser-fs-access';
|
||||
import { useDebouncedEffect } from '../../../../hooks/timeout';
|
||||
|
||||
export const MIN_HEIGHT = 0.4;
|
||||
export const MAX_HEIGHT = 4;
|
||||
export const DEFAULT_HEIGHT = 1.5;
|
||||
export const CURRENT_EXPORT_VERSION = 1;
|
||||
|
||||
enum ImportStatus {
|
||||
FAILED,
|
||||
SUCCESS,
|
||||
OK,
|
||||
}
|
||||
|
||||
export function ProportionsChoose() {
|
||||
const isTauri = useIsTauri();
|
||||
@@ -27,8 +36,15 @@ export function ProportionsChoose() {
|
||||
const { applyProgress, state } = useOnboarding();
|
||||
const { useRPCPacket, sendRPCPacket } = useWebsocketAPI();
|
||||
const [animated, setAnimated] = useState(false);
|
||||
const [importState, setImportState] = useState(ImportStatus.OK);
|
||||
const { computedTrackers } = useAppContext();
|
||||
|
||||
useDebouncedEffect(
|
||||
() => setImportState(ImportStatus.OK),
|
||||
[importState],
|
||||
2000
|
||||
);
|
||||
|
||||
const hmdTracker = useMemo(
|
||||
() =>
|
||||
computedTrackers.find(
|
||||
@@ -48,9 +64,27 @@ export function ProportionsChoose() {
|
||||
[hmdTracker?.tracker.position?.y]
|
||||
);
|
||||
|
||||
const importStatusKey = useMemo(() => {
|
||||
switch (importState) {
|
||||
case ImportStatus.FAILED:
|
||||
return 'onboarding-choose_proportions-import-failed';
|
||||
case ImportStatus.SUCCESS:
|
||||
return 'onboarding-choose_proportions-import-success';
|
||||
case ImportStatus.OK:
|
||||
return 'onboarding-choose_proportions-import';
|
||||
}
|
||||
}, [importState]);
|
||||
|
||||
useRPCPacket(
|
||||
RpcMessage.SkeletonConfigResponse,
|
||||
(data: SkeletonConfigResponseT) => {
|
||||
(data: SkeletonConfigExport) => {
|
||||
// Convert the skeleton part enums into a string
|
||||
data.skeletonParts.forEach((x) => {
|
||||
if (typeof x.bone === 'number')
|
||||
x.bone = SkeletonBone[x.bone] as SkeletonBoneKey;
|
||||
});
|
||||
data.version = CURRENT_EXPORT_VERSION;
|
||||
|
||||
const blob = new Blob([JSON.stringify(data)], {
|
||||
type: 'application/json',
|
||||
});
|
||||
@@ -71,13 +105,52 @@ export function ProportionsChoose() {
|
||||
error(err);
|
||||
});
|
||||
} else {
|
||||
saveAs(blob, 'body-proportions.json');
|
||||
fileSave(blob, {
|
||||
fileName: 'body-proportions.json',
|
||||
extensions: ['.json'],
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
applyProgress(0.85);
|
||||
|
||||
const onImport = async () => {
|
||||
const file = await fileOpen({
|
||||
mimeTypes: ['application/json'],
|
||||
});
|
||||
|
||||
const text = await file.text();
|
||||
const config = JSON.parse(text) as SkeletonConfigExport;
|
||||
if (
|
||||
!config?.skeletonParts?.length ||
|
||||
!Array.isArray(config.skeletonParts)
|
||||
) {
|
||||
error(
|
||||
'failed to import body proportions because skeletonParts is not an array/empty'
|
||||
);
|
||||
return setImportState(ImportStatus.FAILED);
|
||||
}
|
||||
|
||||
for (const bone of [...config.skeletonParts]) {
|
||||
if (
|
||||
(typeof bone.bone === 'string' && !(bone.bone in SkeletonBone)) ||
|
||||
(typeof bone.bone === 'number' &&
|
||||
typeof SkeletonBone[bone.bone] !== 'string')
|
||||
) {
|
||||
error(
|
||||
`failed to import body proportions because ${bone.bone} is not a valid bone`
|
||||
);
|
||||
return setImportState(ImportStatus.FAILED);
|
||||
}
|
||||
}
|
||||
|
||||
parseConfigImport(config).forEach((req) =>
|
||||
sendRPCPacket(RpcMessage.ChangeSkeletonConfigRequest, req)
|
||||
);
|
||||
setImportState(ImportStatus.SUCCESS);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col gap-5 h-full items-center w-full xs:justify-center mobile:overflow-y-auto relative px-4 pb-4">
|
||||
@@ -196,7 +269,7 @@ export function ProportionsChoose() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-row">
|
||||
<div className="flex flex-row gap-3">
|
||||
{!state.alonePage && (
|
||||
<Button variant="secondary" to="/onboarding/reset-tutorial">
|
||||
{l10n.getString('onboarding-previous_step')}
|
||||
@@ -214,9 +287,46 @@ export function ProportionsChoose() {
|
||||
>
|
||||
{l10n.getString('onboarding-choose_proportions-export')}
|
||||
</Button>
|
||||
<Button
|
||||
variant={!state.alonePage ? 'secondary' : 'tertiary'}
|
||||
className={classNames(
|
||||
'transition-colors',
|
||||
importState === ImportStatus.FAILED && 'bg-status-critical',
|
||||
importState === ImportStatus.SUCCESS && 'bg-status-success'
|
||||
)}
|
||||
onClick={onImport}
|
||||
>
|
||||
{l10n.getString(importStatusKey)}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function parseConfigImport(
|
||||
config: SkeletonConfigExport
|
||||
): ChangeSkeletonConfigRequestT[] {
|
||||
if (!config.version) config.version = 1;
|
||||
if (config.version < 1) {
|
||||
// Add config migration stuff here, this one is just an example.
|
||||
}
|
||||
|
||||
return config.skeletonParts.map((part) => {
|
||||
const bone =
|
||||
typeof part.bone === 'string' ? SkeletonBone[part.bone] : part.bone;
|
||||
|
||||
return new ChangeSkeletonConfigRequestT(bone, part.value);
|
||||
});
|
||||
}
|
||||
|
||||
type SkeletonBoneKey = keyof typeof SkeletonBone;
|
||||
|
||||
interface SkeletonConfigExport {
|
||||
version?: number;
|
||||
skeletonParts: {
|
||||
bone: SkeletonBoneKey | SkeletonBone;
|
||||
value: number;
|
||||
}[];
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
ModelRatiosT,
|
||||
ModelSettingsT,
|
||||
ModelTogglesT,
|
||||
ResetsSettingsT,
|
||||
RpcMessage,
|
||||
SettingsRequestT,
|
||||
SettingsResponseT,
|
||||
@@ -67,6 +68,7 @@ interface SettingsForm {
|
||||
imputeHipFromWaistLegs: number;
|
||||
interpHipLegs: number;
|
||||
interpKneeTrackerAnkle: number;
|
||||
interpKneeAnkle: number;
|
||||
};
|
||||
tapDetection: {
|
||||
mountingResetEnabled: boolean;
|
||||
@@ -83,6 +85,10 @@ interface SettingsForm {
|
||||
legTweaks: {
|
||||
correctionStrength: number;
|
||||
};
|
||||
resetsSettings: {
|
||||
resetMountingFeet: boolean;
|
||||
armsMountingResetMode: number;
|
||||
};
|
||||
}
|
||||
|
||||
const defaultValues = {
|
||||
@@ -103,7 +109,7 @@ const defaultValues = {
|
||||
skatingCorrection: false,
|
||||
viveEmulation: false,
|
||||
toeSnap: false,
|
||||
flootPlant: true,
|
||||
footPlant: true,
|
||||
selfLocalization: false,
|
||||
},
|
||||
ratios: {
|
||||
@@ -113,6 +119,7 @@ const defaultValues = {
|
||||
imputeHipFromWaistLegs: 0.4,
|
||||
interpHipLegs: 0.25,
|
||||
interpKneeTrackerAnkle: 0.85,
|
||||
interpKneeAnkle: 0.2,
|
||||
},
|
||||
filtering: { amount: 0.1, type: FilteringType.NONE },
|
||||
driftCompensation: {
|
||||
@@ -133,6 +140,10 @@ const defaultValues = {
|
||||
numberTrackersOverThreshold: 1,
|
||||
},
|
||||
legTweaks: { correctionStrength: 0.3 },
|
||||
resetsSettings: {
|
||||
resetMountingFeet: false,
|
||||
armsMountingResetMode: 0,
|
||||
},
|
||||
};
|
||||
|
||||
export function GeneralSettings() {
|
||||
@@ -196,6 +207,7 @@ export function GeneralSettings() {
|
||||
ratios.interpHipLegs = values.ratios.interpHipLegs || -1;
|
||||
ratios.interpKneeTrackerAnkle =
|
||||
values.ratios.interpKneeTrackerAnkle || -1;
|
||||
ratios.interpKneeAnkle = values.ratios.interpKneeAnkle || -1;
|
||||
modelSettings.ratios = ratios;
|
||||
}
|
||||
|
||||
@@ -234,6 +246,15 @@ export function GeneralSettings() {
|
||||
driftCompensation.maxResets = values.driftCompensation.maxResets;
|
||||
settings.driftCompensation = driftCompensation;
|
||||
|
||||
if (values.resetsSettings) {
|
||||
const resetsSettings = new ResetsSettingsT();
|
||||
resetsSettings.resetMountingFeet =
|
||||
values.resetsSettings.resetMountingFeet;
|
||||
resetsSettings.armsMountingResetMode =
|
||||
values.resetsSettings.armsMountingResetMode;
|
||||
settings.resetsSettings = resetsSettings;
|
||||
}
|
||||
|
||||
sendRPCPacket(RpcMessage.ChangeSettingsRequest, settings);
|
||||
};
|
||||
|
||||
@@ -330,6 +351,10 @@ export function GeneralSettings() {
|
||||
};
|
||||
}
|
||||
|
||||
if (settings.resetsSettings) {
|
||||
formData.resetsSettings = settings.resetsSettings;
|
||||
}
|
||||
|
||||
reset(formData);
|
||||
});
|
||||
|
||||
@@ -651,6 +676,24 @@ export function GeneralSettings() {
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col pt-2 pb-3">
|
||||
<Typography color="secondary">
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-leg_fk-reset_mounting_feet-description'
|
||||
)}
|
||||
</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'
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col pt-2 pb-3">
|
||||
<Typography bold>
|
||||
@@ -673,6 +716,58 @@ export function GeneralSettings() {
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Typography color="secondary">
|
||||
{l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-reset_mode-description'
|
||||
)}
|
||||
</Typography>
|
||||
<div className="grid md:grid-cols-2 flex-col gap-3 pt-2">
|
||||
<Radio
|
||||
control={control}
|
||||
name="resetsSettings.armsMountingResetMode"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-back'
|
||||
)}
|
||||
desciption={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-back-description'
|
||||
)}
|
||||
value={0}
|
||||
></Radio>
|
||||
<Radio
|
||||
control={control}
|
||||
name="resetsSettings.armsMountingResetMode"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-forward'
|
||||
)}
|
||||
desciption={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-forward-description'
|
||||
)}
|
||||
value={1}
|
||||
></Radio>
|
||||
<Radio
|
||||
control={control}
|
||||
name="resetsSettings.armsMountingResetMode"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-tpose_up'
|
||||
)}
|
||||
desciption={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-tpose_up-description'
|
||||
)}
|
||||
value={2}
|
||||
></Radio>
|
||||
<Radio
|
||||
control={control}
|
||||
name="resetsSettings.armsMountingResetMode"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-tpose_down'
|
||||
)}
|
||||
desciption={l10n.getString(
|
||||
'settings-general-fk_settings-arm_fk-tpose_down-description'
|
||||
)}
|
||||
value={3}
|
||||
></Radio>
|
||||
</div>
|
||||
{config?.debug && (
|
||||
<>
|
||||
<div className="flex flex-col pt-2 pb-3">
|
||||
@@ -808,6 +903,19 @@ export function GeneralSettings() {
|
||||
max={1.0}
|
||||
step={0.05}
|
||||
/>
|
||||
<NumberSelector
|
||||
control={control}
|
||||
name="ratios.interpKneeAnkle"
|
||||
label={l10n.getString(
|
||||
'settings-general-fk_settings-skeleton_settings-interp_knee_ankle'
|
||||
)}
|
||||
valueLabelFormat={(value) =>
|
||||
percentageFormat.format(value)
|
||||
}
|
||||
min={0.0}
|
||||
max={1.0}
|
||||
step={0.05}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,11 +4,9 @@ import {
|
||||
Reducer,
|
||||
useContext,
|
||||
useEffect,
|
||||
useLayoutEffect,
|
||||
useMemo,
|
||||
useReducer,
|
||||
} from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import {
|
||||
BoneT,
|
||||
DataFeedMessage,
|
||||
@@ -59,7 +57,6 @@ export function useProvideAppContext(): AppContext {
|
||||
useWebsocketAPI();
|
||||
const { config } = useConfig();
|
||||
const { dataFeedConfig } = useDataFeedConfig();
|
||||
const navigate = useNavigate();
|
||||
const [state, dispatch] = useReducer<Reducer<AppState, AppStateAction>>(reducer, {
|
||||
datafeed: new DataFeedUpdateT(),
|
||||
});
|
||||
@@ -72,12 +69,6 @@ export function useProvideAppContext(): AppContext {
|
||||
}
|
||||
}, [isConnected]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (config && !config.doneOnboarding) {
|
||||
navigate('/onboarding/home');
|
||||
}
|
||||
}, [config]);
|
||||
|
||||
const trackers = useMemo(
|
||||
() =>
|
||||
(state.datafeed?.devices || []).reduce<FlatDeviceTracker[]>(
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { BaseDirectory, readTextFile } from '@tauri-apps/plugin-fs';
|
||||
|
||||
import { createContext, useContext, useRef, useState } from 'react';
|
||||
import { createContext, useContext, useState } from 'react';
|
||||
import { DeveloperModeWidgetForm } from '../components/widgets/DeveloperModeWidget';
|
||||
import { error } from '../utils/logging';
|
||||
import { useDebouncedEffect } from './timeout';
|
||||
|
||||
export interface WindowConfig {
|
||||
width: number;
|
||||
@@ -50,42 +51,28 @@ function fallbackToDefaults(loadedConfig: any): Config {
|
||||
}
|
||||
|
||||
export function useConfigProvider(): ConfigContext {
|
||||
const debounceTimer = useRef<NodeJS.Timeout | null>(null);
|
||||
const [currConfig, set] = useState<Config | null>(null);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
useDebouncedEffect(
|
||||
() => {
|
||||
if (!currConfig) return;
|
||||
|
||||
localStorage.setItem('config.json', JSON.stringify(currConfig));
|
||||
},
|
||||
[currConfig],
|
||||
100
|
||||
);
|
||||
|
||||
const setConfig = async (config: Partial<Config>) => {
|
||||
const newConfig = config
|
||||
? {
|
||||
...currConfig,
|
||||
...config,
|
||||
}
|
||||
: null;
|
||||
set(newConfig as Config);
|
||||
if (config.theme !== undefined) {
|
||||
document.documentElement.dataset.theme = config.theme;
|
||||
}
|
||||
|
||||
if (config.fonts !== undefined) {
|
||||
document.documentElement.style.setProperty(
|
||||
'--font-name',
|
||||
config.fonts.map((x) => `"${x}"`).join(',')
|
||||
);
|
||||
}
|
||||
|
||||
if (config.textSize !== undefined) {
|
||||
document.documentElement.style.setProperty(
|
||||
'--font-size',
|
||||
`${config.textSize}rem`
|
||||
);
|
||||
}
|
||||
|
||||
if (!debounceTimer.current) {
|
||||
debounceTimer.current = setTimeout(async () => {
|
||||
localStorage.setItem('config.json', JSON.stringify(newConfig));
|
||||
debounceTimer.current = null;
|
||||
}, 10);
|
||||
}
|
||||
set((curr) =>
|
||||
config
|
||||
? ({
|
||||
...curr,
|
||||
...config,
|
||||
} as Config)
|
||||
: null
|
||||
);
|
||||
};
|
||||
|
||||
return {
|
||||
@@ -112,15 +99,7 @@ export function useConfigProvider(): ConfigContext {
|
||||
|
||||
const loadedConfig = fallbackToDefaults(JSON.parse(json));
|
||||
set(loadedConfig);
|
||||
document.documentElement.dataset.theme = loadedConfig.theme;
|
||||
document.documentElement.style.setProperty(
|
||||
'--font-size',
|
||||
`${loadedConfig.textSize}rem`
|
||||
);
|
||||
document.documentElement.style.setProperty(
|
||||
'--font-name',
|
||||
loadedConfig.fonts.map((x) => `"${x}"`).join(',')
|
||||
);
|
||||
|
||||
setLoading(false);
|
||||
return loadedConfig;
|
||||
} catch (e) {
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
"@tauri-apps/plugin-shell": "github:tauri-apps/tauri-plugin-shell#v2",
|
||||
"@tauri-apps/plugin-window": "github:tauri-apps/tauri-plugin-window#v2",
|
||||
"@vitejs/plugin-react": "^3.0.0",
|
||||
"browser-fs-access": "^0.34.1",
|
||||
"browserslist": "^4.18.1",
|
||||
"classnames": "^2.3.1",
|
||||
"eslint-config-react-app": "^7.0.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"flatbuffers": "^22.10.26",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"intl-pluralrules": "^1.3.1",
|
||||
@@ -4246,6 +4246,11 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/browser-fs-access": {
|
||||
"version": "0.34.1",
|
||||
"resolved": "https://registry.npmjs.org/browser-fs-access/-/browser-fs-access-0.34.1.tgz",
|
||||
"integrity": "sha512-HPaRf2yimp8kWSuWJXc8Mi78dPbDzfduA+Gyq14H4jlMvd6XNfIRm36Y2yRLaa4x0gwcGuepj4zf14oiTlxrxQ=="
|
||||
},
|
||||
"node_modules/browserslist": {
|
||||
"version": "4.21.10",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz",
|
||||
@@ -5794,11 +5799,6 @@
|
||||
"node": "^10.12.0 || >=12.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/file-saver": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz",
|
||||
"integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA=="
|
||||
},
|
||||
"node_modules/filesize": {
|
||||
"version": "8.0.7",
|
||||
"resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz",
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package java.awt;
|
||||
|
||||
public class Color {
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package dev.slimevr.config
|
||||
|
||||
import dev.slimevr.VRServer
|
||||
|
||||
enum class ArmsResetModes(val id: Int) {
|
||||
// Upper arm going back and forearm going forward
|
||||
BACK(0),
|
||||
|
||||
// Arms going forward
|
||||
FORWARD(1),
|
||||
|
||||
// Arms going up to the sides into a tpose
|
||||
TPOSE_UP(2),
|
||||
|
||||
// Arms going down to the sides from a tpose
|
||||
TPOSE_DOWN(3),
|
||||
;
|
||||
|
||||
companion object {
|
||||
val values = entries.toTypedArray()
|
||||
|
||||
@JvmStatic
|
||||
fun fromId(id: Int): ArmsResetModes? {
|
||||
for (filter in values) {
|
||||
if (filter.id == id) return filter
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class ResetsConfig {
|
||||
|
||||
// Enable mounting reset for feet?
|
||||
var resetMountingFeet = false
|
||||
|
||||
// Reset mode used for the arms
|
||||
var mode = ArmsResetModes.BACK
|
||||
|
||||
fun updateTrackersResetsSettings() {
|
||||
for (t in VRServer.instance.allTrackers) {
|
||||
if (t.needsReset) {
|
||||
t.resetsHandler.readArmsResetModeConfig(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,8 @@ public class VRConfig {
|
||||
|
||||
private final TapDetectionConfig tapDetection = new TapDetectionConfig();
|
||||
|
||||
private final ResetsConfig resetsConfig = new ResetsConfig();
|
||||
|
||||
@JsonDeserialize(using = TrackerConfigMapDeserializer.class)
|
||||
@JsonSerialize(keyUsing = StdKeySerializers.StringKeySerializer.class)
|
||||
private final Map<String, TrackerConfig> trackers = new HashMap<>();
|
||||
@@ -132,6 +134,10 @@ public class VRConfig {
|
||||
return tapDetection;
|
||||
}
|
||||
|
||||
public ResetsConfig getResetsConfig() {
|
||||
return resetsConfig;
|
||||
}
|
||||
|
||||
public OverlayConfig getOverlay() {
|
||||
return overlay;
|
||||
}
|
||||
@@ -151,6 +157,8 @@ public class VRConfig {
|
||||
tracker.readConfig(config);
|
||||
if (tracker.isImu())
|
||||
tracker.getResetsHandler().readDriftCompensationConfig(driftCompensation);
|
||||
if (tracker.getNeedsReset())
|
||||
tracker.getResetsHandler().readArmsResetModeConfig(resetsConfig);
|
||||
if (tracker.getAllowFiltering())
|
||||
tracker
|
||||
.getFilteringHandler()
|
||||
|
||||
@@ -72,7 +72,7 @@ public class OSCRouter {
|
||||
// Else, create our own OSC receiver
|
||||
if (oscReceiver == null) {
|
||||
try {
|
||||
oscReceiver = new OSCPortIn(OSCStatic.serializer, portIn);
|
||||
oscReceiver = new OSCPortIn(portIn);
|
||||
if (lastPortIn != portIn || !wasListening) {
|
||||
LogManager.info("[OSCRouter] Listening to port " + portIn);
|
||||
}
|
||||
@@ -114,10 +114,7 @@ public class OSCRouter {
|
||||
// Else, create our own OSC sender
|
||||
if (oscSender == null) {
|
||||
try {
|
||||
oscSender = new OSCPortOut(
|
||||
OSCStatic.serializer,
|
||||
new InetSocketAddress(address, portOut)
|
||||
);
|
||||
oscSender = new OSCPortOut(new InetSocketAddress(address, portOut));
|
||||
if ((lastPortOut != portOut && lastAddress != address) || !wasConnected) {
|
||||
LogManager
|
||||
.info(
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
package dev.slimevr.osc;
|
||||
|
||||
import com.illposed.osc.OSCSerializerAndParserBuilder;
|
||||
|
||||
|
||||
public class OSCStatic {
|
||||
public static OSCSerializerAndParserBuilder serializer;
|
||||
|
||||
static {
|
||||
// Really hacky workaround for getting the OSC library to work on
|
||||
// Android (Removes reference to java.awt.Color)
|
||||
OSCSerializerAndParserBuilder serializer = new OSCSerializerAndParserBuilder();
|
||||
serializer.setUsingDefaultHandlers(true);
|
||||
serializer.unregisterArgumentHandler('r');
|
||||
|
||||
OSCStatic.serializer = serializer;
|
||||
}
|
||||
}
|
||||
@@ -93,10 +93,7 @@ public class VMCHandler implements OSCHandler {
|
||||
// Instantiates the OSC receiver
|
||||
try {
|
||||
int port = config.getPortIn();
|
||||
oscReceiver = new OSCPortIn(
|
||||
OSCStatic.serializer,
|
||||
port
|
||||
);
|
||||
oscReceiver = new OSCPortIn(port);
|
||||
if (lastPortIn != port || !wasListening) {
|
||||
LogManager.info("[VMCHandler] Listening to port " + port);
|
||||
}
|
||||
@@ -130,10 +127,7 @@ public class VMCHandler implements OSCHandler {
|
||||
try {
|
||||
InetAddress address = InetAddress.getByName(config.getAddress());
|
||||
int port = config.getPortOut();
|
||||
oscSender = new OSCPortOut(
|
||||
OSCStatic.serializer,
|
||||
new InetSocketAddress(address, port)
|
||||
);
|
||||
oscSender = new OSCPortOut(new InetSocketAddress(address, port));
|
||||
if ((lastPortOut != port && lastAddress != address) || !wasConnected) {
|
||||
LogManager
|
||||
.info(
|
||||
|
||||
@@ -99,10 +99,7 @@ class VRCOSCHandler(
|
||||
// Instantiates the OSC receiver
|
||||
try {
|
||||
val port = config.portIn
|
||||
oscReceiver = OSCPortIn(
|
||||
OSCStatic.serializer,
|
||||
port
|
||||
)
|
||||
oscReceiver = OSCPortIn(port)
|
||||
if (lastPortIn != port || !wasListening) {
|
||||
LogManager.info("[VRCOSCHandler] Listening to port $port")
|
||||
}
|
||||
@@ -142,10 +139,7 @@ class VRCOSCHandler(
|
||||
try {
|
||||
val address = InetAddress.getByName(config.address)
|
||||
val port = config.portOut
|
||||
oscSender = OSCPortOut(
|
||||
OSCStatic.serializer,
|
||||
InetSocketAddress(address, port)
|
||||
)
|
||||
oscSender = OSCPortOut(InetSocketAddress(address, port))
|
||||
if (lastPortOut != port && lastAddress !== address || !wasConnected) {
|
||||
LogManager
|
||||
.info(
|
||||
|
||||
@@ -82,7 +82,7 @@ public class BVHFileStream extends PoseDataStream {
|
||||
}
|
||||
|
||||
private TransformNodeWrapper wrapSkeleton(HumanSkeleton skeleton) {
|
||||
TransformNodeWrapper wrapper = wrapSkeletonNodes(skeleton.getRootNode());
|
||||
TransformNodeWrapper wrapper = wrapSkeletonNodes(skeleton.getHmdNode());
|
||||
|
||||
wrappedSkeleton = skeleton;
|
||||
rootNode = wrapper;
|
||||
|
||||
@@ -195,7 +195,8 @@ public class RPCSettingsBuilder {
|
||||
humanPoseManager.getValue(SkeletonConfigValues.HIP_FROM_CHEST_LEGS_AVERAGING),
|
||||
humanPoseManager.getValue(SkeletonConfigValues.HIP_FROM_WAIST_LEGS_AVERAGING),
|
||||
humanPoseManager.getValue(SkeletonConfigValues.HIP_LEGS_AVERAGING),
|
||||
humanPoseManager.getValue(SkeletonConfigValues.KNEE_TRACKER_ANKLE_AVERAGING)
|
||||
humanPoseManager.getValue(SkeletonConfigValues.KNEE_TRACKER_ANKLE_AVERAGING),
|
||||
humanPoseManager.getValue(SkeletonConfigValues.KNEE_ANKLE_AVERAGING)
|
||||
);
|
||||
int legTweaksOffset = LegTweaksSettings
|
||||
.createLegTweaksSettings(
|
||||
@@ -326,4 +327,16 @@ public class RPCSettingsBuilder {
|
||||
|
||||
return autoBoneConfig;
|
||||
}
|
||||
|
||||
public static int createArmsResetModeSettings(
|
||||
FlatBufferBuilder fbb,
|
||||
ResetsConfig resetsConfig
|
||||
) {
|
||||
return ResetsSettings
|
||||
.createResetsSettings(
|
||||
fbb,
|
||||
resetsConfig.getResetMountingFeet(),
|
||||
resetsConfig.getMode().getId()
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -13,10 +13,7 @@ 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.TrackerRole;
|
||||
import solarxr_protocol.rpc.ChangeSettingsRequest;
|
||||
import solarxr_protocol.rpc.RpcMessage;
|
||||
import solarxr_protocol.rpc.RpcMessageHeader;
|
||||
import solarxr_protocol.rpc.SettingsResponse;
|
||||
import solarxr_protocol.rpc.*;
|
||||
|
||||
|
||||
public class RPCSettingsHandler {
|
||||
@@ -85,6 +82,11 @@ public class RPCSettingsHandler {
|
||||
.createAutoBoneSettings(
|
||||
fbb,
|
||||
this.api.server.configManager.getVrConfig().getAutoBone()
|
||||
),
|
||||
RPCSettingsBuilder
|
||||
.createArmsResetModeSettings(
|
||||
fbb,
|
||||
this.api.server.configManager.getVrConfig().getResetsConfig()
|
||||
)
|
||||
);
|
||||
int outbound = rpcHandler.createRPCMessage(fbb, RpcMessage.SettingsResponse, settings);
|
||||
@@ -354,6 +356,13 @@ public class RPCSettingsHandler {
|
||||
Math.max(0, ratios.interpKneeTrackerAnkle())
|
||||
);
|
||||
}
|
||||
if (ratios.hasInterpKneeAnkle()) {
|
||||
hpm
|
||||
.setValue(
|
||||
SkeletonConfigValues.KNEE_ANKLE_AVERAGING,
|
||||
Math.max(0, ratios.interpKneeAnkle())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (legTweaks != null) {
|
||||
@@ -376,6 +385,19 @@ public class RPCSettingsHandler {
|
||||
RPCSettingsBuilder.readAutoBoneSettings(autoBoneSettings, autoBoneConfig);
|
||||
}
|
||||
|
||||
if (req.resetsSettings() != null) {
|
||||
ResetsConfig resetsConfig = this.api.server.configManager
|
||||
.getVrConfig()
|
||||
.getResetsConfig();
|
||||
ArmsResetModes mode = ArmsResetModes
|
||||
.fromId(Math.max(req.resetsSettings().armsMountingResetMode(), 0));
|
||||
if (mode != null) {
|
||||
resetsConfig.setMode(mode);
|
||||
}
|
||||
resetsConfig.setResetMountingFeet(req.resetsSettings().resetMountingFeet());
|
||||
resetsConfig.updateTrackersResetsSettings();
|
||||
}
|
||||
|
||||
this.api.server.configManager.saveConfig();
|
||||
}
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ public class HumanPoseManager {
|
||||
@ThreadSafe
|
||||
public TransformNode getRootNode() {
|
||||
if (isSkeletonPresent())
|
||||
return skeleton.getRootNode();
|
||||
return skeleton.getHmdNode();
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ public class HumanPoseManager {
|
||||
@ThreadSafe
|
||||
public List<BoneInfo> getAllBoneInfo() {
|
||||
if (isSkeletonPresent())
|
||||
return skeleton.allBoneInfo;
|
||||
return skeleton.getAllBoneInfo();
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ public class HumanPoseManager {
|
||||
@ThreadSafe
|
||||
public List<BoneInfo> getShareableBoneInfo() {
|
||||
if (isSkeletonPresent())
|
||||
return skeleton.shareableBoneInfo;
|
||||
return skeleton.getShareableBoneInfo();
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -600,15 +600,15 @@ public class HumanPoseManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the given node with the given offset
|
||||
* Update the given bone with the given offset
|
||||
*
|
||||
* @param node the node to update
|
||||
* @param offset the new offset to apply to the node
|
||||
* @param bone the bone to update
|
||||
* @param offset the new offset to apply to the bone
|
||||
*/
|
||||
@ThreadSafe
|
||||
public void updateNodeOffset(BoneType node, Vector3 offset) {
|
||||
public void updateNodeOffset(BoneType bone, Vector3 offset) {
|
||||
if (isSkeletonPresent())
|
||||
skeleton.updateNodeOffset(node, offset);
|
||||
skeleton.updateNodeOffset(bone, offset);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -648,7 +648,7 @@ public class HumanPoseManager {
|
||||
if (isSkeletonPresent()) {
|
||||
skeleton.resetTrackersFull(resetSourceName);
|
||||
if (server != null) {
|
||||
if (skeleton.headTracker == null && skeleton.neckTracker == null) {
|
||||
if (skeleton.getHeadTracker() == null && skeleton.getNeckTracker() == null) {
|
||||
server.vrcOSCHandler.yawAlign(Quaternion.Companion.getIDENTITY());
|
||||
} else {
|
||||
server.vrcOSCHandler
|
||||
@@ -671,7 +671,7 @@ public class HumanPoseManager {
|
||||
if (isSkeletonPresent()) {
|
||||
skeleton.resetTrackersYaw(resetSourceName);
|
||||
if (server != null) {
|
||||
if (skeleton.headTracker == null && skeleton.neckTracker == null) {
|
||||
if (skeleton.getHeadTracker() == null && skeleton.getNeckTracker() == null) {
|
||||
server.vrcOSCHandler.yawAlign(Quaternion.Companion.getIDENTITY());
|
||||
} else {
|
||||
server.vrcOSCHandler
|
||||
|
||||
@@ -92,7 +92,7 @@ public enum SkeletonConfigOffsets {
|
||||
0.0f,
|
||||
new BoneType[] { BoneType.CHEST_TRACKER, BoneType.HIP_TRACKER,
|
||||
BoneType.LEFT_KNEE_TRACKER, BoneType.RIGHT_KNEE_TRACKER,
|
||||
BoneType.LEFT_FOOT_TRACKER, BoneType.RIGHT_KNEE_TRACKER }
|
||||
BoneType.LEFT_FOOT_TRACKER, BoneType.RIGHT_FOOT_TRACKER }
|
||||
),
|
||||
SHOULDERS_DISTANCE(
|
||||
14,
|
||||
@@ -103,7 +103,7 @@ public enum SkeletonConfigOffsets {
|
||||
SHOULDERS_WIDTH(
|
||||
15,
|
||||
"shouldersWidth",
|
||||
0.36f,
|
||||
0.35f,
|
||||
new BoneType[] { BoneType.LEFT_SHOULDER, BoneType.RIGHT_SHOULDER }
|
||||
),
|
||||
UPPER_ARM(
|
||||
|
||||
@@ -6,48 +6,39 @@ import java.util.Map;
|
||||
|
||||
public enum SkeletonConfigValues {
|
||||
// @formatter:off
|
||||
WAIST_FROM_CHEST_HIP_AVERAGING(1, "Waist from chest hip averaging", "waistFromChestHipAveraging", 0.30f),
|
||||
WAIST_FROM_CHEST_LEGS_AVERAGING(2, "Waist from chest legs averaging", "waistFromChestLegsAveraging", 0.30f),
|
||||
HIP_FROM_CHEST_LEGS_AVERAGING(3, "Hip from chest legs averaging", "hipFromChestLegsAveraging", 0.50f),
|
||||
HIP_FROM_WAIST_LEGS_AVERAGING(4, "Hip from waist legs averaging", "hipFromWaistLegsAveraging", 0.40f),
|
||||
HIP_LEGS_AVERAGING(5, "Hip legs averaging", "hipLegsAveraging", 0.25f),
|
||||
KNEE_TRACKER_ANKLE_AVERAGING(6, "Knee tracker ankle averaging", "kneeTrackerAnkleAveraging", 0.85f),;
|
||||
WAIST_FROM_CHEST_HIP_AVERAGING(1, "waistFromChestHipAveraging", 0.30f),
|
||||
WAIST_FROM_CHEST_LEGS_AVERAGING(2, "waistFromChestLegsAveraging", 0.30f),
|
||||
HIP_FROM_CHEST_LEGS_AVERAGING(3, "hipFromChestLegsAveraging", 0.50f),
|
||||
HIP_FROM_WAIST_LEGS_AVERAGING(4, "hipFromWaistLegsAveraging", 0.40f),
|
||||
HIP_LEGS_AVERAGING(5, "hipLegsAveraging", 0.25f),
|
||||
KNEE_TRACKER_ANKLE_AVERAGING(6, "kneeTrackerAnkleAveraging", 0.85f),
|
||||
KNEE_ANKLE_AVERAGING(7, "kneeAnkleAveraging", 0.00f),;
|
||||
// @formatter:on
|
||||
|
||||
public static final SkeletonConfigValues[] values = values();
|
||||
private static final Map<String, SkeletonConfigValues> byStringVal = new HashMap<>();
|
||||
|
||||
private static final Map<Number, SkeletonConfigValues> byIdVal = new HashMap<>();
|
||||
|
||||
static {
|
||||
for (SkeletonConfigValues configVal : values()) {
|
||||
byIdVal.put(configVal.id, configVal);
|
||||
byStringVal.put(configVal.stringVal.toLowerCase(), configVal);
|
||||
}
|
||||
}
|
||||
|
||||
public final int id;
|
||||
public final String stringVal;
|
||||
public final String configKey;
|
||||
public final float defaultValue;
|
||||
|
||||
SkeletonConfigValues(
|
||||
int id,
|
||||
String stringVal,
|
||||
String configKey,
|
||||
float defaultValue
|
||||
) {
|
||||
this.id = id;
|
||||
this.stringVal = stringVal;
|
||||
this.configKey = configKey;
|
||||
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
public static SkeletonConfigValues getByStringValue(String stringVal) {
|
||||
return stringVal == null ? null : byStringVal.get(stringVal.toLowerCase());
|
||||
}
|
||||
|
||||
public static SkeletonConfigValues getById(int id) {
|
||||
return byIdVal.get(id);
|
||||
}
|
||||
|
||||
@@ -265,12 +265,17 @@ public class LegTweaks {
|
||||
public void updateConfig() {
|
||||
LegTweaks.updateHyperParameters(config.getCorrectionStrength());
|
||||
|
||||
floorclipEnabled = skeleton.humanPoseManager.getToggle(SkeletonConfigToggles.FLOOR_CLIP);
|
||||
floorclipEnabled = skeleton
|
||||
.getHumanPoseManager()
|
||||
.getToggle(SkeletonConfigToggles.FLOOR_CLIP);
|
||||
alwaysUseFloorclip = config.getAlwaysUseFloorclip();
|
||||
skatingCorrectionEnabled = skeleton.humanPoseManager
|
||||
skatingCorrectionEnabled = skeleton
|
||||
.getHumanPoseManager()
|
||||
.getToggle(SkeletonConfigToggles.SKATING_CORRECTION);
|
||||
toeSnapEnabled = skeleton.humanPoseManager.getToggle(SkeletonConfigToggles.TOE_SNAP);
|
||||
footPlantEnabled = skeleton.humanPoseManager.getToggle(SkeletonConfigToggles.FOOT_PLANT);
|
||||
toeSnapEnabled = skeleton.getHumanPoseManager().getToggle(SkeletonConfigToggles.TOE_SNAP);
|
||||
footPlantEnabled = skeleton
|
||||
.getHumanPoseManager()
|
||||
.getToggle(SkeletonConfigToggles.FOOT_PLANT);
|
||||
}
|
||||
|
||||
// update the hyperparameters with the config
|
||||
@@ -295,29 +300,31 @@ public class LegTweaks {
|
||||
private void setVectors() {
|
||||
// set the positions of the feet and knees to the skeleton's
|
||||
// current positions
|
||||
hipPosition = skeleton.computedHipTracker.getPosition();
|
||||
hipPosition = skeleton.getComputedHipTracker().getPosition();
|
||||
|
||||
leftKneePosition = skeleton.computedLeftKneeTracker.getPosition();
|
||||
rightKneePosition = skeleton.computedRightKneeTracker.getPosition();
|
||||
leftKneePosition = skeleton.getComputedLeftKneeTracker().getPosition();
|
||||
rightKneePosition = skeleton.getComputedRightKneeTracker().getPosition();
|
||||
|
||||
leftFootPosition = skeleton.computedLeftFootTracker.getPosition();
|
||||
rightFootPosition = skeleton.computedRightFootTracker.getPosition();
|
||||
leftFootRotation = skeleton.computedLeftFootTracker.getRotation();
|
||||
rightFootRotation = skeleton.computedRightFootTracker.getRotation();
|
||||
leftFootPosition = skeleton.getComputedLeftFootTracker().getPosition();
|
||||
rightFootPosition = skeleton.getComputedRightFootTracker().getPosition();
|
||||
leftFootRotation = skeleton.getComputedLeftFootTracker().getRotation();
|
||||
rightFootRotation = skeleton.getComputedRightFootTracker().getRotation();
|
||||
|
||||
// get the vector for acceleration of the feet and knees
|
||||
// (if feet are not available, fallback to 6 tracker mode)
|
||||
if (skeleton.leftFootTracker != null && skeleton.rightFootTracker != null) {
|
||||
leftFootAcceleration = skeleton.leftFootTracker.getAcceleration();
|
||||
rightFootAcceleration = skeleton.rightFootTracker.getAcceleration();
|
||||
if (skeleton.getLeftFootTracker() != null && skeleton.getRightFootTracker() != null) {
|
||||
leftFootAcceleration = skeleton.getLeftFootTracker().getAcceleration();
|
||||
rightFootAcceleration = skeleton.getRightFootTracker().getAcceleration();
|
||||
} else {
|
||||
leftFootAcceleration = Vector3.Companion.getNULL();
|
||||
rightFootAcceleration = Vector3.Companion.getNULL();
|
||||
}
|
||||
|
||||
if (skeleton.leftLowerLegTracker != null && skeleton.rightLowerLegTracker != null) {
|
||||
leftLowerLegAcceleration = skeleton.leftLowerLegTracker.getAcceleration();
|
||||
rightLowerLegAcceleration = skeleton.rightLowerLegTracker.getAcceleration();
|
||||
if (
|
||||
skeleton.getLeftLowerLegTracker() != null && skeleton.getRightLowerLegTracker() != null
|
||||
) {
|
||||
leftLowerLegAcceleration = skeleton.getLeftLowerLegTracker().getAcceleration();
|
||||
rightLowerLegAcceleration = skeleton.getRightLowerLegTracker().getAcceleration();
|
||||
} else {
|
||||
leftLowerLegAcceleration = Vector3.Companion.getNULL();
|
||||
rightLowerLegAcceleration = Vector3.Companion.getNULL();
|
||||
@@ -343,7 +350,7 @@ public class LegTweaks {
|
||||
}
|
||||
|
||||
// update the foot length
|
||||
footLength = skeleton.leftFootNode.getLocalTransform().getTranslation().len();
|
||||
footLength = skeleton.getLeftFootNode().getLocalTransform().getTranslation().len();
|
||||
|
||||
// if the user is standing start checking for a good time to enable leg
|
||||
// tweaks
|
||||
@@ -401,11 +408,13 @@ public class LegTweaks {
|
||||
// put the acceleration vector that is applicable to the tracker
|
||||
// quantity in the buffer
|
||||
// (if feet are not available, fall back to 6 tracker mode)
|
||||
if (skeleton.leftFootTracker != null && skeleton.rightFootTracker != null) {
|
||||
if (skeleton.getLeftFootTracker() != null && skeleton.getRightFootTracker() != null) {
|
||||
currentFrame.setLeftFootAcceleration(leftFootAcceleration);
|
||||
currentFrame.setRightFootAcceleration(rightFootAcceleration);
|
||||
currentFrame.setDetectionMode(LegTweakBuffer.FOOT_ACCEL);
|
||||
} else if (skeleton.leftLowerLegTracker != null && skeleton.rightLowerLegTracker != null) {
|
||||
} else if (
|
||||
skeleton.getLeftLowerLegTracker() != null && skeleton.getRightLowerLegTracker() != null
|
||||
) {
|
||||
currentFrame.setLeftFootAcceleration(leftLowerLegAcceleration);
|
||||
currentFrame.setRightFootAcceleration(rightLowerLegAcceleration);
|
||||
currentFrame.setDetectionMode(LegTweakBuffer.ANKLE_ACCEL);
|
||||
@@ -426,7 +435,7 @@ public class LegTweaks {
|
||||
public void tweakLegs() {
|
||||
// If user doesn't have knees or legtweaks is disabled,
|
||||
// don't spend time doing calculations!
|
||||
if ((!skeleton.hasKneeTrackers && !alwaysUseFloorclip) || !enabled)
|
||||
if ((!skeleton.getHasKneeTrackers() && !alwaysUseFloorclip) || !enabled)
|
||||
return;
|
||||
|
||||
// update the class with the latest data from the skeleton
|
||||
@@ -517,11 +526,11 @@ public class LegTweaks {
|
||||
this.bufferHead.setHipPositionCorrected(hipPosition);
|
||||
|
||||
// Set the corrected positions in the skeleton
|
||||
skeleton.computedHipTracker.setPosition(hipPosition);
|
||||
skeleton.computedLeftKneeTracker.setPosition(leftKneePosition);
|
||||
skeleton.computedRightKneeTracker.setPosition(rightKneePosition);
|
||||
skeleton.computedLeftFootTracker.setPosition(leftFootPosition);
|
||||
skeleton.computedRightFootTracker.setPosition(rightFootPosition);
|
||||
skeleton.getComputedHipTracker().setPosition(hipPosition);
|
||||
skeleton.getComputedLeftKneeTracker().setPosition(leftKneePosition);
|
||||
skeleton.getComputedRightKneeTracker().setPosition(rightKneePosition);
|
||||
skeleton.getComputedLeftFootTracker().setPosition(leftFootPosition);
|
||||
skeleton.getComputedRightFootTracker().setPosition(rightFootPosition);
|
||||
}
|
||||
|
||||
// returns true if the foot is clipped and false if it is not
|
||||
@@ -827,8 +836,8 @@ public class LegTweaks {
|
||||
return;
|
||||
|
||||
// boolean for if there is a foot tracker
|
||||
boolean leftFootTracker = skeleton.leftFootTracker != null;
|
||||
boolean rightFootTracker = skeleton.rightFootTracker != null;
|
||||
boolean leftFootTracker = skeleton.getLeftFootTracker() != null;
|
||||
boolean rightFootTracker = skeleton.getRightFootTracker() != null;
|
||||
|
||||
// get the foot positions
|
||||
Quaternion leftFootRotation = bufferHead.getLeftFootRotation();
|
||||
@@ -935,8 +944,8 @@ public class LegTweaks {
|
||||
bufferHead.setRightFootRotationCorrected(rightFootRotation);
|
||||
|
||||
// update the skeleton
|
||||
skeleton.computedLeftFootTracker.setRotation(leftFootRotation);
|
||||
skeleton.computedRightFootTracker.setRotation(rightFootRotation);
|
||||
skeleton.getComputedLeftFootTracker().setRotation(leftFootRotation);
|
||||
skeleton.getComputedRightFootTracker().setRotation(rightFootRotation);
|
||||
}
|
||||
|
||||
// returns the length of the xz components of the normalized difference
|
||||
@@ -1100,21 +1109,33 @@ public class LegTweaks {
|
||||
// returns a vector representing the center of mass position
|
||||
private Vector3 computeCenterOfMass() {
|
||||
// check if arm data is available
|
||||
boolean armsAvailable = skeleton.hasLeftArmTracker
|
||||
&& skeleton.hasRightArmTracker;
|
||||
boolean armsAvailable = skeleton.getHasLeftArmTracker()
|
||||
&& skeleton.getHasRightArmTracker();
|
||||
|
||||
Vector3 centerOfMass = new Vector3(0f, 0f, 0f);
|
||||
|
||||
// compute the center of mass of smaller body parts and then sum them up
|
||||
// with their respective weights
|
||||
Vector3 head = skeleton.headNode.getWorldTransform().getTranslation();
|
||||
Vector3 thorax = getCenterOfJoint(skeleton.chestNode, skeleton.upperChestNode);
|
||||
Vector3 abdomen = skeleton.waistNode.getWorldTransform().getTranslation();
|
||||
Vector3 pelvis = skeleton.hipNode.getWorldTransform().getTranslation();
|
||||
Vector3 leftCalf = getCenterOfJoint(skeleton.leftAnkleNode, skeleton.leftKneeNode);
|
||||
Vector3 rightCalf = getCenterOfJoint(skeleton.rightAnkleNode, skeleton.rightKneeNode);
|
||||
Vector3 leftThigh = getCenterOfJoint(skeleton.leftKneeNode, skeleton.leftHipNode);
|
||||
Vector3 rightThigh = getCenterOfJoint(skeleton.rightKneeNode, skeleton.rightHipNode);
|
||||
Vector3 head = skeleton.getHeadNode().getWorldTransform().getTranslation();
|
||||
Vector3 thorax = getCenterOfJoint(skeleton.getChestNode(), skeleton.getUpperChestNode());
|
||||
Vector3 abdomen = skeleton.getWaistNode().getWorldTransform().getTranslation();
|
||||
Vector3 pelvis = skeleton.getHipNode().getWorldTransform().getTranslation();
|
||||
Vector3 leftCalf = getCenterOfJoint(
|
||||
skeleton.getLeftAnkleNode(),
|
||||
skeleton.getLeftKneeNode()
|
||||
);
|
||||
Vector3 rightCalf = getCenterOfJoint(
|
||||
skeleton.getRightAnkleNode(),
|
||||
skeleton.getRightKneeNode()
|
||||
);
|
||||
Vector3 leftThigh = getCenterOfJoint(
|
||||
skeleton.getLeftKneeNode(),
|
||||
skeleton.getLeftHipNode()
|
||||
);
|
||||
Vector3 rightThigh = getCenterOfJoint(
|
||||
skeleton.getRightKneeNode(),
|
||||
skeleton.getRightHipNode()
|
||||
);
|
||||
centerOfMass = centerOfMass.plus(head.times(HEAD_MASS));
|
||||
centerOfMass = centerOfMass.plus(thorax.times(THORAX_MASS));
|
||||
centerOfMass = centerOfMass.plus(abdomen.times(ABDOMEN_MASS));
|
||||
@@ -1126,17 +1147,20 @@ public class LegTweaks {
|
||||
|
||||
if (armsAvailable) {
|
||||
Vector3 leftUpperArm = getCenterOfJoint(
|
||||
skeleton.leftElbowNode,
|
||||
skeleton.leftShoulderTailNode
|
||||
skeleton.getLeftElbowNode(),
|
||||
skeleton.getLeftShoulderTailNode()
|
||||
);
|
||||
Vector3 rightUpperArm = getCenterOfJoint(
|
||||
skeleton.rightElbowNode,
|
||||
skeleton.rightShoulderTailNode
|
||||
skeleton.getRightElbowNode(),
|
||||
skeleton.getRightShoulderTailNode()
|
||||
);
|
||||
Vector3 leftForearm = getCenterOfJoint(
|
||||
skeleton.getLeftElbowNode(),
|
||||
skeleton.getLeftHandNode()
|
||||
);
|
||||
Vector3 leftForearm = getCenterOfJoint(skeleton.leftElbowNode, skeleton.leftHandNode);
|
||||
Vector3 rightForearm = getCenterOfJoint(
|
||||
skeleton.rightElbowNode,
|
||||
skeleton.rightHandNode
|
||||
skeleton.getRightElbowNode(),
|
||||
skeleton.getRightHandNode()
|
||||
);
|
||||
centerOfMass = centerOfMass.plus(leftUpperArm.times(UPPER_ARM_MASS));
|
||||
centerOfMass = centerOfMass.plus(rightUpperArm.times(UPPER_ARM_MASS));
|
||||
@@ -1146,7 +1170,7 @@ public class LegTweaks {
|
||||
// if the arms are not available put them slightly in front
|
||||
// of the upper chest.
|
||||
Vector3 chestUnitVector = computeUnitVector(
|
||||
skeleton.upperChestNode.getWorldTransform().getRotation()
|
||||
skeleton.getUpperChestNode().getWorldTransform().getRotation()
|
||||
);
|
||||
Vector3 armLocation = abdomen.plus(chestUnitVector.times(DEFAULT_ARM_DISTANCE));
|
||||
centerOfMass = centerOfMass.plus(armLocation.times(UPPER_ARM_MASS * 2.0f));
|
||||
@@ -1156,7 +1180,8 @@ public class LegTweaks {
|
||||
// finally translate in to tracker space
|
||||
centerOfMass = hipPosition
|
||||
.plus(
|
||||
centerOfMass.minus(skeleton.trackerHipNode.getWorldTransform().getTranslation())
|
||||
centerOfMass
|
||||
.minus(skeleton.getTrackerHipNode().getWorldTransform().getTranslation())
|
||||
);
|
||||
|
||||
return centerOfMass;
|
||||
|
||||
@@ -81,7 +81,7 @@ class Localizer(humanSkeleton: HumanSkeleton) {
|
||||
}
|
||||
|
||||
// if there is a 6dof device just use it
|
||||
if (skeleton.headTracker != null && skeleton.headTracker.hasPosition) {
|
||||
if (skeleton.headTracker != null && skeleton.headTracker!!.hasPosition) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ class Localizer(humanSkeleton: HumanSkeleton) {
|
||||
|
||||
// get the sitting travel (emulates hip lock)
|
||||
private fun getSittingTravel(): Vector3 {
|
||||
val hip: Vector3 = skeleton.computedHipTracker.position
|
||||
val hip = skeleton.computedHipTracker?.position ?: Vector3.NULL
|
||||
|
||||
// get the distance to move the waist to the target waist
|
||||
val dist: Vector3 = hip.minus(targetHip)
|
||||
@@ -357,8 +357,8 @@ class Localizer(humanSkeleton: HumanSkeleton) {
|
||||
skeleton.computedRightFootTracker
|
||||
)
|
||||
|
||||
var minVal = trackerList[0].position.y
|
||||
var retVal: Tracker = trackerList[0]
|
||||
var minVal = trackerList[0]!!.position.y
|
||||
var retVal: Tracker = trackerList[0]!!
|
||||
for (tracker in trackerList) {
|
||||
if (tracker == null) {
|
||||
continue
|
||||
@@ -381,7 +381,7 @@ class Localizer(humanSkeleton: HumanSkeleton) {
|
||||
// to the side for both feet)
|
||||
var leftKnee: Vector3 = bufCur.leftKneePosition
|
||||
var rightKnee: Vector3 = bufCur.rightKneePosition
|
||||
val hip: Vector3 = skeleton.computedHipTracker.position
|
||||
val hip: Vector3 = skeleton.computedHipTracker!!.position
|
||||
leftKnee = hip.minus(leftKnee)
|
||||
rightKnee = hip.minus(rightKnee)
|
||||
|
||||
@@ -403,13 +403,13 @@ class Localizer(humanSkeleton: HumanSkeleton) {
|
||||
var num = 0.0f
|
||||
var accel = Vector3.NULL
|
||||
if (skeleton.waistTracker != null) {
|
||||
accel += skeleton.waistTracker.getAcceleration()
|
||||
accel += skeleton.waistTracker!!.getAcceleration()
|
||||
num++
|
||||
} else if (skeleton.hipTracker != null) {
|
||||
accel += skeleton.hipTracker.getAcceleration()
|
||||
accel += skeleton.hipTracker!!.getAcceleration()
|
||||
num++
|
||||
} else if (skeleton.chestTracker != null) {
|
||||
accel += skeleton.chestTracker.getAcceleration()
|
||||
accel += skeleton.chestTracker!!.getAcceleration()
|
||||
num++
|
||||
}
|
||||
return if (num == 0f) accel else accel.div(num)
|
||||
@@ -417,12 +417,9 @@ class Localizer(humanSkeleton: HumanSkeleton) {
|
||||
|
||||
// update the hmd position and rotation
|
||||
private fun updateSkeletonPos(travel: Vector3) {
|
||||
var rot = Quaternion.IDENTITY
|
||||
if (skeleton.headTracker != null) {
|
||||
rot = skeleton.headTracker.getRotation()
|
||||
}
|
||||
|
||||
val rot = skeleton.headTracker?.getRotation() ?: Quaternion.IDENTITY
|
||||
val temp = skeleton.hmdNode.localTransform.translation.minus(travel)
|
||||
|
||||
skeleton.hmdNode.localTransform.translation = temp
|
||||
skeleton.hmdNode.localTransform.rotation = rot
|
||||
}
|
||||
|
||||
@@ -170,50 +170,72 @@ public class TapDetection {
|
||||
private boolean isUserStatic(Tracker trackerToExclude) {
|
||||
int num = 0;
|
||||
if (
|
||||
skeleton.upperChestTracker != null
|
||||
&& !skeleton.upperChestTracker.equals(trackerToExclude)
|
||||
) {
|
||||
if (skeleton.upperChestTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (skeleton.chestTracker != null && !skeleton.chestTracker.equals(trackerToExclude)) {
|
||||
if (skeleton.chestTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (skeleton.hipTracker != null && !skeleton.hipTracker.equals(trackerToExclude)) {
|
||||
if (skeleton.hipTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (skeleton.waistTracker != null && !skeleton.waistTracker.equals(trackerToExclude)) {
|
||||
if (skeleton.waistTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.leftUpperLegTracker != null
|
||||
&& !skeleton.leftUpperLegTracker.equals(trackerToExclude)
|
||||
) {
|
||||
if (skeleton.leftUpperLegTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.rightUpperLegTracker != null
|
||||
&& !skeleton.rightUpperLegTracker.equals(trackerToExclude)
|
||||
skeleton.getUpperChestTracker() != null
|
||||
&& !skeleton.getUpperChestTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (
|
||||
skeleton.rightUpperLegTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED
|
||||
skeleton.getUpperChestTracker().getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.leftFootTracker != null && !skeleton.leftFootTracker.equals(trackerToExclude)
|
||||
skeleton.getChestTracker() != null
|
||||
&& !skeleton.getChestTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (skeleton.leftFootTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
if (skeleton.getChestTracker().getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.rightFootTracker != null && !skeleton.rightFootTracker.equals(trackerToExclude)
|
||||
skeleton.getHipTracker() != null && !skeleton.getHipTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (skeleton.rightFootTracker.getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
if (skeleton.getHipTracker().getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.getWaistTracker() != null
|
||||
&& !skeleton.getWaistTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (skeleton.getWaistTracker().getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.getLeftUpperLegTracker() != null
|
||||
&& !skeleton.getLeftUpperLegTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (
|
||||
skeleton.getLeftUpperLegTracker().getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.getRightUpperLegTracker() != null
|
||||
&& !skeleton.getRightUpperLegTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (
|
||||
skeleton.getRightUpperLegTracker().getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.getLeftFootTracker() != null
|
||||
&& !skeleton.getLeftFootTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (
|
||||
skeleton.getLeftFootTracker().getAcceleration().lenSq() > ALLOWED_BODY_ACCEL_SQUARED
|
||||
)
|
||||
num++;
|
||||
}
|
||||
if (
|
||||
skeleton.getRightFootTracker() != null
|
||||
&& !skeleton.getRightFootTracker().equals(trackerToExclude)
|
||||
) {
|
||||
if (
|
||||
skeleton.getRightFootTracker().getAcceleration().lenSq()
|
||||
> ALLOWED_BODY_ACCEL_SQUARED
|
||||
)
|
||||
num++;
|
||||
}
|
||||
return num < numberTrackersOverThreshold;
|
||||
|
||||
@@ -215,31 +215,31 @@ public class TapDetectionManager {
|
||||
// on which one is available
|
||||
// if none are available, returns null
|
||||
private Tracker getTrackerToWatchYawReset() {
|
||||
if (skeleton.upperChestTracker != null)
|
||||
return skeleton.upperChestTracker;
|
||||
else if (skeleton.chestTracker != null)
|
||||
return skeleton.chestTracker;
|
||||
else if (skeleton.hipTracker != null)
|
||||
return skeleton.hipTracker;
|
||||
else if (skeleton.waistTracker != null)
|
||||
return skeleton.waistTracker;
|
||||
if (skeleton.getUpperChestTracker() != null)
|
||||
return skeleton.getUpperChestTracker();
|
||||
else if (skeleton.getChestTracker() != null)
|
||||
return skeleton.getChestTracker();
|
||||
else if (skeleton.getHipTracker() != null)
|
||||
return skeleton.getHipTracker();
|
||||
else if (skeleton.getWaistTracker() != null)
|
||||
return skeleton.getWaistTracker();
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
private Tracker getTrackerToWatchFullReset() {
|
||||
if (skeleton.leftUpperLegTracker != null)
|
||||
return skeleton.leftUpperLegTracker;
|
||||
else if (skeleton.leftLowerLegTracker != null)
|
||||
return skeleton.leftLowerLegTracker;
|
||||
if (skeleton.getLeftUpperLegTracker() != null)
|
||||
return skeleton.getLeftUpperLegTracker();
|
||||
else if (skeleton.getLeftLowerLegTracker() != null)
|
||||
return skeleton.getLeftLowerLegTracker();
|
||||
return null;
|
||||
}
|
||||
|
||||
private Tracker getTrackerToWatchMountingReset() {
|
||||
if (skeleton.rightUpperLegTracker != null)
|
||||
return skeleton.rightUpperLegTracker;
|
||||
else if (skeleton.rightLowerLegTracker != null)
|
||||
return skeleton.rightLowerLegTracker;
|
||||
if (skeleton.getRightUpperLegTracker() != null)
|
||||
return skeleton.getRightUpperLegTracker();
|
||||
else if (skeleton.getRightLowerLegTracker() != null)
|
||||
return skeleton.getRightLowerLegTracker();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,8 +51,8 @@ public class ViveEmulation {
|
||||
|
||||
public ViveEmulation(HumanSkeleton skeleton) {
|
||||
this.skeleton = skeleton;
|
||||
if (skeleton.computedHipTracker != null)
|
||||
this.lastPosition = skeleton.computedHipTracker.getPosition();
|
||||
if (skeleton.getComputedHipTracker() != null)
|
||||
this.lastPosition = skeleton.getComputedHipTracker().getPosition();
|
||||
}
|
||||
|
||||
public boolean getEnabled() {
|
||||
@@ -68,7 +68,7 @@ public class ViveEmulation {
|
||||
public void update() {
|
||||
// if the skeleton is not enabled or the waist tracker is not present,
|
||||
// we do nothing
|
||||
if (!enabled || skeleton.computedHipTracker == null)
|
||||
if (!enabled || skeleton.getComputedHipTracker() == null)
|
||||
return;
|
||||
|
||||
// update state
|
||||
@@ -87,8 +87,8 @@ public class ViveEmulation {
|
||||
targetPosition = getOvershootPosition();
|
||||
return;
|
||||
}
|
||||
skeleton.computedHipTracker.setPosition(getFlyingPos());
|
||||
skeleton.computedHipTracker.setRotation(getFlyingRotation());
|
||||
skeleton.getComputedHipTracker().setPosition(getFlyingPos());
|
||||
skeleton.getComputedHipTracker().setRotation(getFlyingRotation());
|
||||
}
|
||||
// in this state the tracker is returning to its position but has not
|
||||
// yet overshot its target
|
||||
@@ -96,22 +96,23 @@ public class ViveEmulation {
|
||||
if (lastPosition.minus(targetPosition).lenSq() < NEARLY_ZERO * NEARLY_ZERO) {
|
||||
overShooting = false;
|
||||
flySpeed = FLY_BACK_OVERSHOOT;
|
||||
targetPosition = skeleton.computedHipTracker.getPosition();
|
||||
targetPosition = skeleton.getComputedHipTracker().getPosition();
|
||||
return;
|
||||
}
|
||||
skeleton.computedHipTracker.setPosition(getFlyingBackPos());
|
||||
skeleton.getComputedHipTracker().setPosition(getFlyingBackPos());
|
||||
}
|
||||
// in this state the tracker will return to its original position
|
||||
else if (flyingBack) {
|
||||
if (
|
||||
lastPosition.minus(skeleton.computedHipTracker.getPosition()).len() < NEARLY_ZERO
|
||||
lastPosition.minus(skeleton.getComputedHipTracker().getPosition()).len()
|
||||
< NEARLY_ZERO
|
||||
) {
|
||||
flyingBack = false;
|
||||
ticksToFly = random.nextInt(CHANCE);
|
||||
return;
|
||||
}
|
||||
targetPosition = skeleton.computedHipTracker.getPosition();
|
||||
skeleton.computedHipTracker.setPosition(getFlyingBackPos());
|
||||
targetPosition = skeleton.getComputedHipTracker().getPosition();
|
||||
skeleton.getComputedHipTracker().setPosition(getFlyingBackPos());
|
||||
}
|
||||
|
||||
// if the tracker is not flying, we check if it should fly
|
||||
@@ -134,8 +135,8 @@ public class ViveEmulation {
|
||||
random.nextFloat(),
|
||||
random.nextFloat()
|
||||
).unit();
|
||||
lastRotation = skeleton.computedHipTracker.getRotation();
|
||||
lastPosition = skeleton.computedHipTracker.getPosition();
|
||||
lastRotation = skeleton.getComputedHipTracker().getRotation();
|
||||
lastPosition = skeleton.getComputedHipTracker().getPosition();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173,11 +174,12 @@ public class ViveEmulation {
|
||||
// get the position to fly back to (initially overshoot the actualy waist
|
||||
// position)
|
||||
private Vector3 getOvershootPosition() {
|
||||
return skeleton.computedHipTracker
|
||||
return skeleton
|
||||
.getComputedHipTracker()
|
||||
.getPosition()
|
||||
.minus(
|
||||
lastPosition
|
||||
.cross(skeleton.computedHipTracker.getPosition())
|
||||
.cross(skeleton.getComputedHipTracker().getPosition())
|
||||
.unit()
|
||||
.times(
|
||||
random.nextFloat()
|
||||
|
||||
@@ -2,7 +2,9 @@ package dev.slimevr.tracking.trackers
|
||||
|
||||
import com.jme3.math.FastMath
|
||||
import dev.slimevr.VRServer
|
||||
import dev.slimevr.config.ArmsResetModes
|
||||
import dev.slimevr.config.DriftCompensationConfig
|
||||
import dev.slimevr.config.ResetsConfig
|
||||
import dev.slimevr.filtering.CircularArrayList
|
||||
import io.github.axisangles.ktmath.EulerAngles
|
||||
import io.github.axisangles.ktmath.EulerOrder
|
||||
@@ -28,6 +30,8 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
private var timeAtLastReset: Long = 0
|
||||
private var compensateDrift = false
|
||||
private var driftCompensationEnabled = false
|
||||
private var resetMountingFeet = false
|
||||
private var armsResetMode = ArmsResetModes.BACK
|
||||
var allowDriftCompensation = false
|
||||
var lastResetQuaternion: Quaternion? = null
|
||||
|
||||
@@ -55,6 +59,7 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
private var gyroFixNoMounting = Quaternion.IDENTITY
|
||||
private var attachmentFixNoMounting = Quaternion.IDENTITY
|
||||
private var yawFixZeroReference = Quaternion.IDENTITY
|
||||
private var tposeFix = Quaternion.IDENTITY
|
||||
|
||||
/**
|
||||
* Reads/loads drift compensation settings from given config
|
||||
@@ -89,7 +94,18 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
*/
|
||||
fun refreshDriftCompensationEnabled() {
|
||||
driftCompensationEnabled = compensateDrift && allowDriftCompensation &&
|
||||
TrackerUtils.getNonInternalNonImuTrackerForBodyPosition(VRServer.instance.allTrackers, TrackerPosition.HEAD) != null
|
||||
TrackerUtils.getNonInternalNonImuTrackerForBodyPosition(
|
||||
VRServer.instance.allTrackers,
|
||||
TrackerPosition.HEAD
|
||||
) != null
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads/loads arms reset mode settings from given config
|
||||
*/
|
||||
fun readArmsResetModeConfig(config: ResetsConfig) {
|
||||
resetMountingFeet = config.resetMountingFeet
|
||||
armsResetMode = config.mode
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -128,7 +144,8 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
rot = gyroFix * rot
|
||||
rot *= attachmentFix
|
||||
rot *= mountRotFix
|
||||
return yawFix * rot
|
||||
rot = yawFix * rot
|
||||
return rot * tposeFix
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -162,24 +179,38 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
* 0). This allows the tracker to be strapped to body at any pitch and roll.
|
||||
*/
|
||||
fun resetFull(reference: Quaternion) {
|
||||
// Adjust for T-Pose
|
||||
if ((isLeftArmTracker() && armsResetMode == ArmsResetModes.TPOSE_DOWN)) {
|
||||
tposeFix = EulerAngles(
|
||||
EulerOrder.YZX,
|
||||
0f,
|
||||
0f,
|
||||
-FastMath.HALF_PI
|
||||
).toQuaternion()
|
||||
} else if ((isRightArmTracker() && armsResetMode == ArmsResetModes.TPOSE_DOWN)) {
|
||||
tposeFix = EulerAngles(EulerOrder.YZX, 0f, 0f, FastMath.HALF_PI).toQuaternion()
|
||||
} else {
|
||||
tposeFix = Quaternion.IDENTITY
|
||||
}
|
||||
|
||||
lastResetQuaternion = adjustToReference(tracker.getRawRotation())
|
||||
|
||||
val rot: Quaternion = adjustToReference(tracker.getRawRotation())
|
||||
val oldRot = adjustToReference(tracker.getRawRotation())
|
||||
|
||||
if (tracker.needsMounting) {
|
||||
fixGyroscope(tracker.getRawRotation() * mountingOrientation)
|
||||
gyroFix = fixGyroscope(tposeFix * tracker.getRawRotation() * mountingOrientation)
|
||||
} else {
|
||||
// Set mounting to the HMD's yaw so that the non-mounting-adjusted
|
||||
// tracker goes forward.
|
||||
mountRotFix = EulerAngles(EulerOrder.YZX, 0f, getYaw(reference), 0f).toQuaternion()
|
||||
mountRotFix = getYawQuaternion(reference)
|
||||
}
|
||||
fixAttachment(tracker.getRawRotation() * mountingOrientation)
|
||||
attachmentFix = fixAttachment(tracker.getRawRotation() * mountingOrientation)
|
||||
|
||||
makeIdentityAdjustmentQuatsFull()
|
||||
|
||||
fixYaw(tracker.getRawRotation() * mountingOrientation, reference)
|
||||
yawFix = fixYaw(tracker.getRawRotation() * mountingOrientation, reference)
|
||||
|
||||
calculateDrift(rot)
|
||||
calculateDrift(oldRot)
|
||||
|
||||
if (this.tracker.lastResetStatus != 0u) {
|
||||
VRServer.instance.statusSystem.removeStatus(this.tracker.lastResetStatus)
|
||||
@@ -198,7 +229,7 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
|
||||
val rot: Quaternion = adjustToReference(tracker.getRawRotation())
|
||||
|
||||
fixYaw(tracker.getRawRotation() * mountingOrientation, reference)
|
||||
yawFix = fixYaw(tracker.getRawRotation() * mountingOrientation, reference)
|
||||
|
||||
makeIdentityAdjustmentQuatsYaw()
|
||||
|
||||
@@ -217,35 +248,55 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
* Perform the math to align the tracker to go forward
|
||||
* and stores it in mountRotFix, and adjusts yawFix
|
||||
*/
|
||||
fun resetMounting(reverseYaw: Boolean, reference: Quaternion) {
|
||||
fun resetMounting(reference: Quaternion) {
|
||||
if (!resetMountingFeet && isFootTracker()) {
|
||||
return
|
||||
}
|
||||
|
||||
// Get the current calibrated rotation
|
||||
var buffer = adjustToDrift(tracker.getRawRotation() * mountingOrientation)
|
||||
buffer *= tposeFix
|
||||
buffer = gyroFix * buffer
|
||||
buffer *= attachmentFix
|
||||
|
||||
// Use the HMD's yaw as the reference
|
||||
buffer *= reference.project(Vector3.POS_Y).unit().inv()
|
||||
// TODO adjust buffer to reference
|
||||
|
||||
// Make a vector pointing straight up
|
||||
var rotVector = Vector3(0f, 1f, 0f)
|
||||
|
||||
// Rotate the normalized vector by the quat
|
||||
rotVector = buffer.sandwich(rotVector.unit())
|
||||
// Rotate a vector pointing up by the quat
|
||||
val rotVector = buffer.sandwich(Vector3.POS_Y)
|
||||
|
||||
// Calculate the yaw angle using tan
|
||||
val yawAngle = atan2(rotVector.x, rotVector.z)
|
||||
var yawAngle = atan2(rotVector.x, rotVector.z)
|
||||
|
||||
// Adjust for T-Pose
|
||||
if ((isLeftArmTracker() && armsResetMode == ArmsResetModes.TPOSE_DOWN) ||
|
||||
(isRightArmTracker() && armsResetMode == ArmsResetModes.TPOSE_UP)
|
||||
) {
|
||||
// Tracker goes right
|
||||
yawAngle -= FastMath.HALF_PI
|
||||
}
|
||||
if ((isLeftArmTracker() && armsResetMode == ArmsResetModes.TPOSE_UP) ||
|
||||
(isRightArmTracker() && armsResetMode == ArmsResetModes.TPOSE_DOWN)
|
||||
) {
|
||||
// Tracker goes left
|
||||
yawAngle += FastMath.HALF_PI
|
||||
}
|
||||
|
||||
// Adjust for forward/back arms and thighs
|
||||
val isLowerArmBack =
|
||||
armsResetMode == ArmsResetModes.BACK && (isLeftLowerArmTracker() || isRightLowerArmTracker())
|
||||
val isArmForward =
|
||||
armsResetMode == ArmsResetModes.FORWARD && (isLeftArmTracker() || isRightArmTracker())
|
||||
if (!isThighTracker() && !isArmForward && !isLowerArmBack) {
|
||||
// Tracker goes back
|
||||
yawAngle -= FastMath.PI
|
||||
}
|
||||
|
||||
// Make an adjustment quaternion from the angle
|
||||
buffer = EulerAngles(
|
||||
EulerOrder.YZX,
|
||||
0f,
|
||||
(if (reverseYaw) yawAngle else yawAngle - Math.PI.toFloat()),
|
||||
0f
|
||||
).toQuaternion()
|
||||
buffer = EulerAngles(EulerOrder.YZX, 0f, yawAngle, 0f).toQuaternion()
|
||||
|
||||
// Get the difference from the last mounting to the current mounting and apply
|
||||
// the difference to the yaw fix quaternion to correct for the rotation change
|
||||
yawFix *= (buffer * mountRotFix.inv()).inv()
|
||||
yawFix /= (buffer / mountRotFix)
|
||||
mountRotFix = buffer
|
||||
}
|
||||
|
||||
@@ -259,55 +310,57 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
mountRotFix = Quaternion.IDENTITY
|
||||
}
|
||||
|
||||
private fun fixGyroscope(sensorRotation: Quaternion) {
|
||||
gyroFix = EulerAngles(EulerOrder.YZX, 0f, getYaw(sensorRotation), 0f).toQuaternion().inv()
|
||||
private fun fixGyroscope(sensorRotation: Quaternion): Quaternion {
|
||||
return getYawQuaternion(sensorRotation).inv()
|
||||
}
|
||||
|
||||
private fun fixAttachment(sensorRotation: Quaternion) {
|
||||
attachmentFix = (gyroFix * sensorRotation).inv()
|
||||
private fun fixAttachment(sensorRotation: Quaternion): Quaternion {
|
||||
return (gyroFix * sensorRotation).inv()
|
||||
}
|
||||
|
||||
private fun fixYaw(sensorRotation: Quaternion, reference: Quaternion) {
|
||||
private fun fixYaw(sensorRotation: Quaternion, reference: Quaternion): Quaternion {
|
||||
var rot = gyroFix * sensorRotation
|
||||
rot *= attachmentFix
|
||||
rot *= mountRotFix
|
||||
rot = EulerAngles(EulerOrder.YZX, 0f, getYaw(rot), 0f).toQuaternion() // FIXME
|
||||
yawFix = rot.inv() * reference.project(Vector3.POS_Y).unit()
|
||||
rot = getYawQuaternion(rot)
|
||||
// rot = Quaternion.fromRotationVector(0f, biAlign(rot, Vector3.POS_Y, Vector3.POS_X), 0f)
|
||||
return rot.inv() * reference.project(Vector3.POS_Y).unit()
|
||||
}
|
||||
|
||||
// FIXME : isolating yaw for yaw reset bad.
|
||||
// TODO : isolating yaw for yaw reset bad.
|
||||
// The way we isolate the tracker's yaw for yaw reset is
|
||||
// incorrect. This is old math from JME; projection around the
|
||||
// Y-axis is worse. In both cases, the isolated yaw value changes
|
||||
// incorrect. Projection around the Y-axis is worse.
|
||||
// In both cases, the isolated yaw value changes
|
||||
// with the tracker's roll when pointing forward.
|
||||
// A resets-rewrite might be beneficial as well.
|
||||
private fun getYaw(rot: Quaternion): Float {
|
||||
val sqw = rot.w * rot.w
|
||||
val sqx = rot.x * rot.x
|
||||
val sqy = rot.y * rot.y
|
||||
val sqz = rot.z * rot.z
|
||||
val unit = sqx + sqy + sqz + sqw
|
||||
val test = rot.x * rot.y + rot.z * rot.w
|
||||
return if (test > 0.499 * unit) { // singularity at North Pole
|
||||
2 * FastMath.atan2(rot.x, rot.w)
|
||||
} else if (test < -0.499 * unit) { // singularity at South Pole
|
||||
-2 * FastMath.atan2(rot.x, rot.w)
|
||||
} else {
|
||||
FastMath.atan2(2 * rot.y * rot.w - 2 * rot.x * rot.z, sqx - sqy - sqz + sqw)
|
||||
}
|
||||
private fun getYawQuaternion(rot: Quaternion): Quaternion {
|
||||
return EulerAngles(EulerOrder.YZX, 0f, rot.toEulerAngles(EulerOrder.YZX).y, 0f).toQuaternion()
|
||||
}
|
||||
|
||||
// TODO
|
||||
private fun biAlign(rot: Quaternion, axisA: Vector3, axisB: Vector3): Float {
|
||||
val aQ = axisA.dot(rot.xyz)
|
||||
val bQ = axisA.dot(rot.xyz)
|
||||
val abQ = axisA.cross(axisB).dot(rot.xyz)
|
||||
|
||||
val angleA = atan2(2 * (abQ * bQ + aQ * rot.w), abQ * abQ + aQ * aQ - bQ * bQ - rot.w * rot.w)
|
||||
val cosA = cos(angleA / 2)
|
||||
val sinA = sin(angleA / 2)
|
||||
val angleB = 2 * atan2(aQ * cosA - rot.w * sinA, bQ * sinA - abQ * cosA)
|
||||
|
||||
return angleA
|
||||
}
|
||||
|
||||
private fun makeIdentityAdjustmentQuatsFull() {
|
||||
val sensorRotation = tracker.getRawRotation()
|
||||
gyroFixNoMounting = sensorRotation.project(Vector3.POS_Y).unit().inv()
|
||||
attachmentFixNoMounting = (gyroFixNoMounting * sensorRotation).inv()
|
||||
gyroFixNoMounting = fixGyroscope(sensorRotation)
|
||||
attachmentFixNoMounting = fixAttachment(sensorRotation)
|
||||
}
|
||||
|
||||
private fun makeIdentityAdjustmentQuatsYaw() {
|
||||
var sensorRotation = tracker.getRawRotation()
|
||||
sensorRotation = gyroFixNoMounting * sensorRotation
|
||||
sensorRotation *= attachmentFixNoMounting
|
||||
yawFixZeroReference = EulerAngles(EulerOrder.YZX, 0f, getYaw(sensorRotation), 0f).toQuaternion().inv()
|
||||
yawFixZeroReference = fixYaw(sensorRotation, Quaternion.IDENTITY)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -326,10 +379,7 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
}
|
||||
|
||||
// Add new drift quaternion
|
||||
driftQuats.add(
|
||||
EulerAngles(EulerOrder.YZX, 0f, getYaw(rotQuat), 0f).toQuaternion() *
|
||||
EulerAngles(EulerOrder.YZX, 0f, getYaw(beforeQuat), 0f).toQuaternion().inv()
|
||||
)
|
||||
driftQuats.add(getYawQuaternion(rotQuat) / getYawQuaternion(beforeQuat))
|
||||
|
||||
// Add drift time to total
|
||||
driftTimes.add(System.currentTimeMillis() - driftSince)
|
||||
@@ -356,10 +406,7 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
timeAtLastReset = System.currentTimeMillis()
|
||||
} else if (System.currentTimeMillis() - timeAtLastReset < DRIFT_COOLDOWN_MS && driftQuats.size > 0) {
|
||||
// Replace latest drift quaternion
|
||||
rotationSinceReset *= (
|
||||
EulerAngles(EulerOrder.YZX, 0f, getYaw(rotQuat), 0f).toQuaternion() *
|
||||
EulerAngles(EulerOrder.YZX, 0f, getYaw(beforeQuat), 0f).toQuaternion().inv()
|
||||
)
|
||||
rotationSinceReset *= (getYawQuaternion(rotQuat) / getYawQuaternion(beforeQuat))
|
||||
driftQuats[driftQuats.size - 1] = rotationSinceReset
|
||||
|
||||
// Add drift time to total
|
||||
@@ -403,4 +450,56 @@ class TrackerResetsHandler(val tracker: Tracker) {
|
||||
}
|
||||
return totalMatrix.toQuaternion()
|
||||
}
|
||||
|
||||
private fun isThighTracker(): Boolean {
|
||||
tracker.trackerPosition?.let {
|
||||
return it == TrackerPosition.LEFT_UPPER_LEG ||
|
||||
it == TrackerPosition.RIGHT_UPPER_LEG
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun isLeftArmTracker(): Boolean {
|
||||
tracker.trackerPosition?.let {
|
||||
return it == TrackerPosition.LEFT_SHOULDER ||
|
||||
it == TrackerPosition.LEFT_UPPER_ARM ||
|
||||
it == TrackerPosition.LEFT_LOWER_ARM ||
|
||||
it == TrackerPosition.LEFT_HAND
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun isRightArmTracker(): Boolean {
|
||||
tracker.trackerPosition?.let {
|
||||
return it == TrackerPosition.RIGHT_SHOULDER ||
|
||||
it == TrackerPosition.RIGHT_UPPER_ARM ||
|
||||
it == TrackerPosition.RIGHT_LOWER_ARM ||
|
||||
it == TrackerPosition.RIGHT_HAND
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun isLeftLowerArmTracker(): Boolean {
|
||||
tracker.trackerPosition?.let {
|
||||
return it == TrackerPosition.LEFT_LOWER_ARM ||
|
||||
it == TrackerPosition.LEFT_HAND
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun isRightLowerArmTracker(): Boolean {
|
||||
tracker.trackerPosition?.let {
|
||||
return it == TrackerPosition.RIGHT_LOWER_ARM ||
|
||||
it == TrackerPosition.RIGHT_HAND
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun isFootTracker(): Boolean {
|
||||
tracker.trackerPosition?.let {
|
||||
return it == TrackerPosition.LEFT_FOOT ||
|
||||
it == TrackerPosition.RIGHT_FOOT
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -14,14 +14,12 @@ import org.apache.commons.lang3.ArrayUtils
|
||||
import solarxr_protocol.rpc.ResetType
|
||||
import java.net.DatagramPacket
|
||||
import java.net.DatagramSocket
|
||||
import java.net.InetAddress
|
||||
import java.net.InetSocketAddress
|
||||
import java.net.NetworkInterface
|
||||
import java.net.SocketAddress
|
||||
import java.net.SocketTimeoutException
|
||||
import java.nio.ByteBuffer
|
||||
import java.nio.ByteOrder
|
||||
import java.nio.charset.StandardCharsets
|
||||
import java.security.MessageDigest
|
||||
import java.util.Random
|
||||
import java.util.function.Consumer
|
||||
|
||||
@@ -32,7 +30,7 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
Thread(name) {
|
||||
private val random = Random()
|
||||
private val connections: MutableList<UDPDevice> = FastList()
|
||||
private val connectionsByAddress: MutableMap<InetAddress, UDPDevice> = HashMap()
|
||||
private val connectionsByAddress: MutableMap<SocketAddress, UDPDevice> = HashMap()
|
||||
private val connectionsByMAC: MutableMap<String, UDPDevice> = HashMap()
|
||||
private val broadcastAddresses: List<InetSocketAddress> = try {
|
||||
NetworkInterface.getNetworkInterfaces().asSequence().filter {
|
||||
@@ -60,7 +58,31 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
LogManager.info("[TrackerServer] Handshake received from ${handshakePacket.address}:${handshakePacket.port}")
|
||||
val addr = handshakePacket.address
|
||||
|
||||
val connection: UDPDevice = synchronized(connections) { connectionsByAddress[addr] } ?: run {
|
||||
val connection: UDPDevice = synchronized(connections) {
|
||||
connectionsByMAC[handshake.macString]?.apply {
|
||||
connectionsByAddress.remove(address)
|
||||
address = handshakePacket.socketAddress
|
||||
lastPacketNumber = 0
|
||||
ipAddress = addr
|
||||
name = handshake.macString?.let { "udp://$it" }
|
||||
descriptiveName = "udp:/${handshakePacket.address}"
|
||||
firmwareBuild = handshake.firmwareBuild
|
||||
connectionsByAddress[address] = this
|
||||
|
||||
val i = connections.indexOf(this)
|
||||
LogManager
|
||||
.info(
|
||||
"""
|
||||
[TrackerServer] Tracker $i handed over to address ${handshakePacket.socketAddress}.
|
||||
Board type: ${handshake.boardType},
|
||||
imu type: ${handshake.imuType},
|
||||
firmware: ${handshake.firmware} ($firmwareBuild),
|
||||
mac: ${handshake.macString},
|
||||
name: $name
|
||||
""".trimIndent()
|
||||
)
|
||||
}
|
||||
} ?: run {
|
||||
val connection = UDPDevice(
|
||||
handshakePacket.socketAddress,
|
||||
addr,
|
||||
@@ -87,13 +109,13 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
if (handshake.macString != null && connectionsByMAC.containsKey(handshake.macString)) {
|
||||
val previousConnection = connectionsByMAC[handshake.macString]!!
|
||||
val i = connections.indexOf(previousConnection)
|
||||
connectionsByAddress.remove(previousConnection.ipAddress)
|
||||
connectionsByAddress.remove(previousConnection.address)
|
||||
previousConnection.lastPacketNumber = 0
|
||||
previousConnection.ipAddress = addr
|
||||
previousConnection.address = handshakePacket.socketAddress
|
||||
previousConnection.name = connection.name
|
||||
previousConnection.descriptiveName = connection.descriptiveName
|
||||
connectionsByAddress[addr] = previousConnection
|
||||
connectionsByAddress[handshakePacket.socketAddress] = previousConnection
|
||||
LogManager
|
||||
.info(
|
||||
"""
|
||||
@@ -108,7 +130,7 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
} else {
|
||||
val i = connections.size
|
||||
connections.add(connection)
|
||||
connectionsByAddress[addr] = connection
|
||||
connectionsByAddress[handshakePacket.socketAddress] = connection
|
||||
if (handshake.macString != null) {
|
||||
connectionsByMAC[handshake.macString!!] = connection
|
||||
}
|
||||
@@ -144,12 +166,12 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
LogManager.info("[TrackerServer] Sensor $trackerId for ${connection.name} status: $sensorStatus")
|
||||
var imuTracker = connection.getTracker(trackerId)
|
||||
if (imuTracker == null) {
|
||||
val formattedHWID = connection.hardwareIdentifier.replace(":", "")
|
||||
imuTracker = Tracker(
|
||||
connection,
|
||||
VRServer.getNextLocalTrackerId(),
|
||||
connection.name + "/" + trackerId,
|
||||
"IMU Tracker " + MessageDigest.getInstance("SHA-256")
|
||||
.digest(connection.hardwareIdentifier.toByteArray(StandardCharsets.UTF_8)).toString().subSequence(3, 8),
|
||||
"IMU Tracker " + formattedHWID.subSequence(Math.max(formattedHWID.length - 5, 0), formattedHWID.length),
|
||||
null,
|
||||
trackerNum = trackerId,
|
||||
hasRotation = true,
|
||||
@@ -194,7 +216,7 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
socket.receive(received)
|
||||
bb.limit(received.length)
|
||||
bb.rewind()
|
||||
val connection = synchronized(connections) { connectionsByAddress[received.address] }
|
||||
val connection = synchronized(connections) { connectionsByAddress[received.socketAddress] }
|
||||
parser.parse(bb, connection)
|
||||
.filterNotNull()
|
||||
.forEach { processPacket(received, it, connection) }
|
||||
|
||||
@@ -88,11 +88,7 @@ data class UDPPacket1Rotation(override var rotation: Quaternion = Quaternion.IDE
|
||||
UDPPacket(1), RotationPacket {
|
||||
override val sensorId = 0
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
val x = buf.float
|
||||
val y = buf.float
|
||||
val z = buf.float
|
||||
val w = buf.float
|
||||
rotation = Quaternion(w, x, y, z)
|
||||
rotation = UDPUtils.getSafeBufferQuaternion(buf)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +149,7 @@ data class UDPPacket4Acceleration(var acceleration: Vector3 = Vector3.NULL) :
|
||||
UDPPacket(4), SensorSpecificPacket {
|
||||
override var sensorId = 0
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
acceleration = Vector3(buf.float, buf.float, buf.float)
|
||||
acceleration = Vector3(UDPUtils.getSafeBufferFloat(buf), UDPUtils.getSafeBufferFloat(buf), UDPUtils.getSafeBufferFloat(buf))
|
||||
|
||||
sensorId = try {
|
||||
buf.get().toInt() and 0xFF
|
||||
@@ -192,9 +188,9 @@ data class UDPPacket12BatteryLevel(
|
||||
) : UDPPacket(12) {
|
||||
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
voltage = buf.float
|
||||
voltage = UDPUtils.getSafeBufferFloat(buf)
|
||||
if (buf.remaining() > 3) {
|
||||
level = buf.float
|
||||
level = UDPUtils.getSafeBufferFloat(buf)
|
||||
} else {
|
||||
level = voltage
|
||||
voltage = 0.0f
|
||||
@@ -250,11 +246,7 @@ data class UDPPacket16Rotation2(override var rotation: Quaternion = Quaternion.I
|
||||
UDPPacket(16), RotationPacket {
|
||||
override val sensorId = 1
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
val x = buf.float
|
||||
val y = buf.float
|
||||
val z = buf.float
|
||||
val w = buf.float
|
||||
rotation = Quaternion(w, x, y, z)
|
||||
rotation = UDPUtils.getSafeBufferQuaternion(buf)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,11 +259,7 @@ data class UDPPacket17RotationData(
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
sensorId = buf.get().toInt() and 0xFF
|
||||
dataType = buf.get().toInt() and 0xFF
|
||||
val x = buf.float
|
||||
val y = buf.float
|
||||
val z = buf.float
|
||||
val w = buf.float
|
||||
rotation = Quaternion(w, x, y, z)
|
||||
rotation = UDPUtils.getSafeBufferQuaternion(buf)
|
||||
calibrationInfo = buf.get().toInt() and 0xFF
|
||||
}
|
||||
|
||||
@@ -286,7 +274,7 @@ data class UDPPacket18MagnetometerAccuracy(var accuracyInfo: Float = 0.0f) :
|
||||
override var sensorId = 0
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
sensorId = buf.get().toInt() and 0xFF
|
||||
accuracyInfo = buf.float
|
||||
accuracyInfo = UDPUtils.getSafeBufferFloat(buf)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -304,7 +292,7 @@ data class UDPPacket20Temperature(var temperature: Float = 0.0f) :
|
||||
override var sensorId = 0
|
||||
override fun readData(buf: ByteBuffer) {
|
||||
sensorId = buf.get().toInt() and 0xFF
|
||||
temperature = buf.float
|
||||
temperature = UDPUtils.getSafeBufferFloat(buf)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,3 +336,28 @@ data class UDPPacket200ProtocolChange(
|
||||
buf.put(targetProtocolVersion.toByte())
|
||||
}
|
||||
}
|
||||
|
||||
class UDPUtils {
|
||||
companion object {
|
||||
fun getSafeBufferQuaternion(byteBuffer: ByteBuffer): Quaternion {
|
||||
val x = byteBuffer.getFloat()
|
||||
val y = byteBuffer.getFloat()
|
||||
val z = byteBuffer.getFloat()
|
||||
val w = byteBuffer.getFloat()
|
||||
|
||||
return if (x.isNaN() || y.isNaN() || z.isNaN() || w.isNaN()) {
|
||||
Quaternion.IDENTITY
|
||||
} else {
|
||||
Quaternion(w, x, y, z)
|
||||
}
|
||||
}
|
||||
fun getSafeBufferFloat(byteBuffer: ByteBuffer): Float {
|
||||
val value = byteBuffer.getFloat()
|
||||
return if (value.isNaN()) {
|
||||
0f
|
||||
} else {
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,8 @@ class UDPProtocolParser {
|
||||
if (bundlePacketLen == 0) continue
|
||||
|
||||
val bundlePacketStart = buf.position()
|
||||
val bundleBuf = buf.slice(bundlePacketStart, bundlePacketLen)
|
||||
val bundleBuf = buf.slice()
|
||||
bundleBuf.limit(bundlePacketLen)
|
||||
val bundlePacketId = bundleBuf.int
|
||||
val newPacket = getNewPacket(bundlePacketId)
|
||||
newPacket?.let {
|
||||
|
||||