In general, we map the 6 dofs oculus rift motion to the biped robot base. The inverse kinematic algorithm is done in the real time. There is a socket conneciton betweeen the C++ and MATLAB. The main control program was done in MATLAB, and the C++ is responsible for grabbing the IMU data from the rift.