|author||Justin Berger <email@example.com>||2018-03-22 10:11:22 -0600|
|committer||Justin Berger <firstname.lastname@example.org>||2018-03-22 10:11:22 -0600|
Fixed startup bug; changed config names to be consistent
Diffstat (limited to 'README.md')
1 files changed, 4 insertions, 4 deletions
@@ -268,25 +268,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.
+# Record / 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:
-./data_recorder -o my_playback_file
+./data_recorder --record my_playback_file
This gives you a file -- my_playback_file -- with all the device configurations and events file you need to replay it.
You can also just let it stream to standard output, but this tends to be a lot of information.
-To actually replay it, put that directory path in the 'playbackfile' 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.
+To actually replay it, put that directory path in the 'playback' 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.
You can also replay it just with command line options:
-./calibrate --playbackfile my_playback_file
+./calibrate --playback my_playback_file
## Playback speed