A demo of how to do simple 6DOF position tracking using a wiimote. Requires 4 IR LEDs as tracking markers. Blog has details on how to make one.
Build and run:
git submodule init git submodule update mkdir build cd build cmake .. make ./demo
Press the sync button on the back of a wiimote to connect while it is searching for devices.
A - switch between world frame and camera frame B - draw the current path Home - clear the drawn path UP/DOWN - change the rendered camera size LEFT/RIGHT - rotate the mapping of the leds (press this if your world y-axis is not pointing up or your camera y-axis is not pointing down) PLUS/MINUS - change IR sensitivity ONE - toggle whether to draw the wiimote TWO - use the last few frames to print out a calibrated camera matrix