Skip to content

fta2012/WiimotePositionTrackingDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Uses wiiuse for connecting to the wiimote and getting raw IR values. Uses OpenCV's solvepnp for solving for camera pose. Drawing was based off of wiiuse's example which requires SDL 1.2 and OpenGL.

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.

Controls:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages