Install the development version from GitHub:
$ git clone --recursive https://github.com/cesandovalp/libfreenectr
$ R CMD build libfreenectr;
$ R CMD INSTALL libfreenectr_0.1.tar.gz
library(libfreenectr)
CreateSimpleDevice()
SetTiltDegrees( 30 )
Sys.sleep( 2 )
SetTiltDegrees( 0 )
Sys.sleep( 2 )
SetTiltDegrees( -30 )
Sys.sleep( 2 )
SetTiltDegrees( 0 )
library(libfreenectr)
CreateSimpleDevice()
SetLed( "red" )
Sys.sleep( 2 )
SetLed( "green" )
Sys.sleep( 2 )
SetLed( "off" )
library(libfreenectr)
library(pixmap)
CreateSimpleDevice()
StartVideo()
photo = GetPhoto( )
plot( photo )
SetHighResolution()
photo = GetPhoto( )
plot( photo )
library(libfreenectr)
library(pixmap)
CreateSimpleDevice()
StartDepth()
photo = GetDepth( )
plot( photo )
library(libfreenectr)
CreateSimpleDevice()
StartVideo()
StartGLUTVideo( )
library(libfreenectr)
CreateSimpleDevice()
StartVideo()
SetHighResolution()
StartGLUTVideo( )