Tutorial?

Control of an agent by Kinect †

※This tutorial is valid for SIGVerse 2.1.0 or later. ※This tutorial requires OpenNI in your client computer. Sample program NiUserTracker is also required to be executable.

This tutorial introduces a method to control a human avatar using Kinect sensor.

↑

Version of OpenNI †

↑

Set up at client side †

A plug-in module for the SIGViewer receives motion data from Kinect, calculates quaternion of each joint, and send the data to avatar controller on the server.

↑

Download †

Please download SIGNiUserTracker_<version>.zip from KINECT Service

↑

Installation †

Extract the zip file and find SIGNiUserTracker.sig file. Put the SIGNiUserTracker.sig in a folder which has the OpenNI sample program. The defold folder name is:

C:\Program Files (x86)\OpenNI\Samples\Bin\Release

(※In the case of Windows7 64bit)

Connect your Kinect to the client PC.

↑

Set up at server side †

A controller receives joint angle data; controls the avatar's joints.

↑

Controller †

Create a controller file kinectController.cpp as follows:

This controller receives messages from Kinect; rotates each joint of an avatar.

Compile with the following command.

$ ./sigmake.sh kinectController.cpp
↑

World file †

Create world file kinectWorld.xml as follows:

Just an avator will be appeared in this world. This sample controls only one human avatar by the Kinect.

↑

Execution †

↑

SIGVerse server †

Start the SIGVerse server

$ sigserver.sh -w ./kinectWorld.xml

Next, run the SIGViewer and connect to the sigserver. You can see an avatar is standing.

↑

Registration of user interface plug-in †

Click the [Service]-->[Add] menu on the top-left of the SIGViewer window bar.

SIGNi_1.PNG

You then can see the following window. Click the Add button to registrate SIGNiUserTracker.sig

SIGNi_2.PNG

After the registration of SIGNiUserTracker.sig to the Service list, click the OK button to close the window.

Next, click the [Service]-->[Start] menu; then select the SIGNiUserTracker.sig.

If the Kinect's depth map window is appeared and you see the following message on the server, it means the application is successfully started.

[SYS]  Service: "SIGKINECT" is available

Click the "START" button to start the simulation.

You can control the human avatar with the Kinect.

#ref(): File not found: "SIGNi_3.PNG" at page "Controlling Agent with KinectV2"

↑

Compilation of source code of user interface plug-in †

In this tutorial Visual C++ 2008 is used to compile the user interface plug-in.

↑

Download of the source code of user interface plug-in †

Please download the source code from KINECT Service

Move the SIGNiUserTracker folder, which is contained in the ZIP file, to a folder which has sample codes of OpenNI.

C:\Program Files (x86)\OpenNI\Samples

↑

Compile †

Next, double-click the solution file in the SIGNiUserTracker folder with administrative right.

※You have to install boost library in the case of the version number is 1.0.0.

Right-click the solution name in the solution explorer of VC++ to build the source code. If the build succeeds, SIGNiUserTracker.exe will be created at C:\Program Files (x86)\OpenNI\Samples\Bin\Release

You can registrate the plug-in module to SIGViewer after changing the suffix from .exe to .sig.


Front page   New List of pages Search Recent changes   Help   RSS of recent changes