-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.tpl
36 lines (31 loc) · 1.52 KB
/
README.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# {{crate}}
{{readme}}
## Installation Guide
__Ubuntu 18.04__
1. Download the SDK from the [Nuitrack website](https://nuitrack.com).
_If you are short on space you only need the NuitrackSDK/Nuitrack folder (you can delete the rest of the folders)_
2. Unzip it the SDK somewhere eg. `~/nuitrack/`
3. Follow the ubuntu instractions [here](http://download.3divi.com/Nuitrack/doc/Installation_page.html)
_Make sure to get `libpng12-0`. It's avalible [here](https://packages.ubuntu.com/xenial/amd64/libpng12-0/download)
if you can't find in apt-get_
4. Set the environment variable `NUI_SDK_DIR` to you sdk root directory.
eg. `NUI_SDK_DIR = /home/user/nuitrack` _note not `/home/user/nuitrack/Nuitrack`
5. Then you should be able to build your project with `cargo build --release`.
To test try `cargo run --release --example skeleton` with a camera attached.
_Please open an issue if you get stuck on any step_
__Orbtec Astra__
I've only tested this with the Orbec Astra.
To install the Orbtec SDK follow [these instructions.](https://astra-wiki.readthedocs.io/en/latest/installation.html)
__Recording / Playback__
These features are useful if you need to test when you don't
have access to a camera all the time.
You can record some data from the camera and then play it back
at a later time.
The playback API is very close to the live API. The callbacks are
identical. See the examples for usage.
__Rotation__
You can set the camera's rotation by calling:
```rust
// In degrees. Call after init() and before run.
nui.set_camera_rotation(90);
```