Tutorial?

Control of an agent by Kinect

※This tutorial is valid for SIGVerse 2.2.0 or later. ※This tutorial requires Windows 8.1 and Kinect for Windows SDK 2.0.

This tutorial introduces a method to control a human avatar using KinectV2 sensor


If you questions after reading this page: Please feel free to email at: sigverse-users@googlegroups.com


Kinect for Windows SDK 2.0

Set up at client side on Windows 8.1

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.

KinectV2 SIGService

The folder that contains the kinectV2_2013.sig file along with required DLLs is attached here:

#ref(): File not found: "KinectV2SIG.7z" at page "Controlling Agent with KinectV2"

You can also build the SIGService directly from the source as shown below:

Building the KinectV2 SIGService from source

For building the SIGService, Visual C++ 2013 Express Edition has been used. The Source is uploaded on GitHub which you can clone on your disk.

   $ git clone https://github.com/SIGVerse/Client.git
   $ cd Plugin/KinectV2
   

The instructions to build are given on the Github page https://github.com/SIGVerse/Client/tree/master/Plugin/KinectV2

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 avatar 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 kinectV2_2013.sig

As written above, The folder that contains the kinectV2_2013.sig file along with required DLLs is attached here:

#ref(): File not found: "KinectV2SIG.7z" at page "Controlling Agent with KinectV2"

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.

SIGNi_3.JPG

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