Skip to content

Commit a71ab1f

Browse files
committed
docs: Document environment variables
1 parent a98db16 commit a71ab1f

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ cmake --build . --config RelWithDebInfo --target install
145145
* Run the test program: `.\install\bin\Protonect.exe`, or start debugging in Visual Studio.
146146
* Test OpenNI2 (optional)
147147

148-
Copy freenect2-openni2.dll, and other dll files (libusb-1.0.dll, glfw.dll, etc.) in `install\bin` to `C:\Program Files\OpenNI2\Tools\OpenNI2\Drivers`. Then run `C:\Program Files\OpenNI\Tools\NiViewer.exe`.
148+
Copy freenect2-openni2.dll, and other dll files (libusb-1.0.dll, glfw.dll, etc.) in `install\bin` to `C:\Program Files\OpenNI2\Tools\OpenNI2\Drivers`. Then run `C:\Program Files\OpenNI\Tools\NiViewer.exe`. Environment variable `LIBFREENECT2_PIPELINE` can be set to `cl`, `cuda`, etc to specify the pipeline.
149149

150150
### Mac OSX
151151

@@ -189,7 +189,7 @@ make
189189
make install
190190
```
191191
* Run the test program: `./bin/Protonect`
192-
* Test OpenNI2. `make install-openni2` (may need sudo), then run `NiViewer`.
192+
* Test OpenNI2. `make install-openni2` (may need sudo), then run `NiViewer`. Environment variable `LIBFREENECT2_PIPELINE` can be set to `cl`, `cuda`, etc to specify the pipeline.
193193

194194
### Linux
195195

@@ -253,4 +253,4 @@ make install
253253
You need to specify `cmake -Dfreenect2_DIR=$HOME/freenect2/lib/cmake/freenect2` for CMake based third-party application to find libfreenect2.
254254
* Set up udev rules for device access: `sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/`, then replug the Kinect.
255255
* Run the test program: `./bin/Protonect`
256-
* Run OpenNI2 test (optional): `sudo apt-get install openni2-utils && sudo make install-openni2 && NiViewer2`.
256+
* Run OpenNI2 test (optional): `sudo apt-get install openni2-utils && sudo make install-openni2 && NiViewer2`. Environment variable `LIBFREENECT2_PIPELINE` can be set to `cl`, `cuda`, etc to specify the pipeline.

doc/mainpage.dox

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ Features
2525

2626
### Issues and Future Work
2727

28-
- Audio. There is basic access to Kinect v2's audio via ALSA (Linux). However,
29-
this is directional audio with intricate calibration, which is probably
30-
beyond the scope of this image processing library.
31-
- Unstable USB and crashes. Due to differences in a vast range of hardware, it
32-
is very hard to test them all. Also, the libusb usage in %libfreenect2 may
33-
miss a lot of error checking and simply crash. This can be improved.
34-
- Firmware upload. This is being worked on. Use Windows for this right now.
28+
- Audio. Raw audio is accessible via Linux USB audio. There is no support for
29+
the calibrated directional audio.
30+
- Unstable USB and crashes. Due to differences in driver support, USB problems
31+
can happen a lot. Error handling in %libfreenect2 is not fully verified for
32+
production use.
33+
- Firmware upload. The protocol has been reverse engineered, but use Windows
34+
for this right now.
3535
- Example of multiple Kinects.
3636
- Example utility of dumping image frames.
37-
- API for pausing, or on-demand processing.
37+
- API for on-demand processing.
3838
- Verification of systematic errors through accurate calibration.
3939
- Bindings for C, Python, Java, etc.
4040

@@ -54,6 +54,20 @@ to implement performance optimizers, you are encouraged to read the source
5454
code. The source code is the updated and authoritative reference for any
5555
functionalities.
5656

57+
Environment Variables
58+
=====================
59+
60+
There are a few environment variables providing controls for both end-users and
61+
programmers:
62+
63+
* `LIBFREENECT2_LOGGER_LEVEL`: The default logging level if not explicitly set
64+
by the code.
65+
* `LIBFREENECT2_PIPELINE`: The default pipeline if not explicitly set by the
66+
code.
67+
* `LIBFREENECT2_RGB_TRANSFER_SIZE`, `LIBFREENECT2_RGB_TRANSFERS`,
68+
`LIBFREENECT2_IR_PACKETS`, `LIBFREENECT2_IR_TRANSFERS`: Tuning the USB buffer
69+
sizes. Use only if you know what you are doing.
70+
5771
You can also see the following walkthrough for the most basic usage.
5872

5973
Walkthrough

0 commit comments

Comments
 (0)