Tutorial?
※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
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.
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:
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
A controller receives joint angle data; controls the avatar's joints.
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
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.
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.
Click the [Service]-->[Add] menu on the top-left of the SIGViewer window bar.
You then can see the following window. Click the Add button to registrate SIGNiUserTracker.sig
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.