aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-10 18:58:06 -0700
committerJustin Berger <j.david.berger@gmail.com>2018-03-10 18:58:06 -0700
commit34bee8be2dd6fa776e407887f1e207db009e990f (patch)
tree6521c9a68c1bd8925319dab491b0d7cf013e6bac
parent1d0a7fc7c84ec9977cf9f456dcccd2b69c7ab9e2 (diff)
downloadlibsurvive-34bee8be2dd6fa776e407887f1e207db009e990f.tar.gz
libsurvive-34bee8be2dd6fa776e407887f1e207db009e990f.tar.bz2
Added blurb in readme about playback functionality
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 98f75c8..8e81398 100644
--- a/README.md
+++ b/README.md
@@ -263,6 +263,25 @@ Compiling this minimal example only requires the include path for survive.h as w
As mentioned, only the pose from lighthouse number `0` is used. Since the callback is called for all tracked devices, `so->codename` can be used to differentiate between devices like `HMD`, `WM0`, etc.
+# Playback
+
+libsurvive has an integrated tool that allows you to record and playback streams from all supported devices. To save off a stream, invoke it as follows:
+
+```
+make
+mkdir my_playback
+./datarecorder my_playback/events
+cp *_config.json my_playback
+```
+
+This gives you a directory -- my_playback -- with all the device configurations and events file you need to replay it.
+
+To actually replay it, put that directory path in the 'PlaybackDir' configuration value in config.json and run libsurvive as usual. Note that this will purposefully stop the USB devices from loading as to not confuse the library with inconsistent data.
+
+## Playback speed
+
+There is also a config variable -- `PlaybackFactor` -- which adjusts the speed at which playback happens. A value of 1 emulates the same time the events file took to create, a value of 0 streams the data in as fast as possible.
+
# FAQ
* The tracking quality is bad/jitters/too slow!