2011/05/09

DHBR : June 2011

I read the article "Creating Shared Value" on Diamond HBR / June 2011.




2011/05/07

Reading document "NITE Controls 1.3 - Programmer's Guide.pdf"

NITE Controls 1.3 - Programmer's Guide.pdf is in
C:\Program Files\Prime Sense\NITE\Documentation.

* Introduction
- What is NITE ?

NITE is a toolbox to allow application to build flows based on the user's hands movement.
The hands movement is understood as gestrures and is tracked, to provide 'hand point'.

* Software Overview











* Programmer Tutorial
- Quick Start


* Session State
- session state flow
-- Not in Session, In Session, Quick Refocus


* Chapter 3 : NITE Controls
- List of controls in NITE
-- Point Controls / Push Detector / Swipe Detector / Steady Detector / Wave Detector /Circle Detector
-- Selectable Slider1D / Selectable Slider2D


* Chpeter 4 : Flow and NITE tree
- 4.1. NITE flow
- 4.2. Flow Objects
- 4.3. NITE tree
- 4.4. List of Flow object
-- Flow Router / Broadcaster / Point Denoiser / Point Area / Virtual Coordinates


* Multi-process / Multi-threaded Support


* Log

Reading document "Prime Sensor NITE 1.3 Alogrithms notes"

"Prime Sensor NITE 1.3 Alogrithms notes" is in 
C:\Program Files\Prime Sense\NITE\Documentation".

* Chapter 1 : special gesture called "focus gestrue"
- click : your palm should be open, fingers pointing up, and face the sensor.
- wave : should consist of at least 5 horizontal movements (left-right or rigth-left)

** output
- Click, Wave, Swipe, Raise hand, 

** status
- Gesture started
- Gesture completed


* Chapter 3 :Skeleton tracking

** calibration
- the user should be facing the sensor with calibration pose.

** output
- The API returns positions and orientations of the skeleton joints.

**Joint transformations defined



trial kinect NITE Samples (on Windows)

NITE Samples is in
C:\Program Files\Prime Sense\NITE\Samples\Bin\Release

cp
from avin2-SensorKinect-*******\OpenNI\Data\*
to C:\Program Files\OpenNI\Data


cp
from avin2-SensorKinect-*******\NITE\Data\*
to C:\Program Files\Prime Sense\NITE\Data


input "key" C:\Program Files\Prime Sense\NITE\Data\*




cp
from C:\Program Files\Prime Sense\NITE\Bin\XnVNITE.dll
to C:\Program Files\Prime Sense\NITE\Samples\Bin\Release


Sample-PointViewer.exe
error occured.
InitFromXmlFile failed: Device Protocol: Bad Parameter sent!




Visual Studio 2010 Express

I downloaded && installed Visual Stdio C++

http://www.microsoft.com/japan/msdn/vstudio/express/

kinect structure memo for dummies





reference :
http://d061333.web.fc2.com/Kinect.html

2011/05/06

SSE : streaming SIMD extensions

startup pattern1 : kinect hacks for linux(centos)

Install OpenNI, KinectDriver ,NITE

mkdir ~/kinect && cd ~/kinect

1 OpenNI

git clone https://github.com/OpenNI/OpenNI.git
cd OpneNI/Platform/Linux-x86/RedistMarker
./RedistMaker
sudo ./install.sh

1-1. error

1-1.1-err: libusb-1.0 not found

mak- download
http://sourceforge.net/projects/libusb/

- make install
chmod 775 configure
./configure && make && make install

- reference
http://lfsbookja.sourceforge.jp/BLFS/svn.ja/general/libusb.html


1-1.2-err: /usb/bin/ld: cannot find -lglut
glut may be OpenGL Library

yum install freeglut
yum install freeglut-devel


2. kinect's driver

cd ~/kinect
git clone https://github.com/ros-pkg-git/Sensor.git
cd Sensor/Platform/Linux-x86/CreateRedist
./RedistMaker
sudo ./install.sh


3. NITE

download
http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/34-stable
PrimeSense NITE Stable Build for Ubuntu 10.10 x86(32bit) v1.3.1.3

extract
cd Data && chmod 644 *
edit key= in 3files. 0KOIk2JeIBYClPWVnMoRKn5cdY4=
sudo ./install.sh 
Please enter your PrimeSense license key: 0KOIk2JeIBYClPWVnMoRKn5cdY4=


error occurred,

g++ -o ../Bin/Sample-PointServer ./Release/main.o ./Release/signal_catch.o ./Release/kbhit.o  -L../Bin -lOpenNI -lXnVNite_1_3_1
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& st\
d::basic_istream<char, std::char_traits<char> >::_M_extract<double>(double&)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& st\
d::basic_ostream<char, std::char_traits<char> >::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& st\
d::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.1\
1'


Add Yum Repository



* CentOS Extras
cd /etc/yum.repos.d
sudo wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

* dag
vim /etc/yum.repos.d/dag.repo
edit follows.
----
[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
enabled=1
gpgcheck=1
----


* RPMForge

vim /etc/yum.repos.d/rpmforge.repo
edit follows.
----
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
enabled = 0
gpgcheck = 0
----


startup pattern2 : kinect hacks for linux/centos

1. download
http://www.openni.org/downloadfiles/openni-binaries/21-stable
OpenNI Stable Build for Ubuntu 10.10 x86 (32-bit) v1.1.0.37

2
2-1. ./install.sh

2-2. A error is occured. libusb1.0 not found.

- download
http://www.rpmfind.net/linux/rpm2html/search.php?query=libusb-1.0.so.0

- rpm -ivh libusb-*-.rpm

2-3. A error is occured. glibc-2.12 not found (required by /usr/lib/libOpenNI.so)
http://ftp.gnu.org/pub/gnu/glibc/glibc-2.12.2.tar.gz