aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNLohr <charles@cnlohr.com>2018-03-10 20:59:56 -0500
committerGitHub <noreply@github.com>2018-03-10 20:59:56 -0500
commit5ae3acb6d63301ac14beaebe692f5af680e65c26 (patch)
treef833f1d8204f00d463a0b5a7f9058b98a4b4fdbc
parent4b33798e33e5d2841a91041dad8b99ddfbe29b6b (diff)
parent34bee8be2dd6fa776e407887f1e207db009e990f (diff)
downloadlibsurvive-5ae3acb6d63301ac14beaebe692f5af680e65c26.tar.gz
libsurvive-5ae3acb6d63301ac14beaebe692f5af680e65c26.tar.bz2
Merge pull request #107 from jdavidberger/playback_readme
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!