Up:Tutorial? Previous:Distance sensor Next: Controlling agent with Kinect
In this tutorial, a simple application to move avatar's eye is introduced.
Please create controller file moveEye.cpp as follows:
This controller moves an avatar's eyes. Eye movement is realized by setJointAngle as well as normal joints. In this sample, the avatar moves his eyes as the angle information sent by a message.
Please compile the controller.
$ ./sigmake.sh moveEye.cpp
Make an world file "moveEye.xml"
Only an avatar will be appeared in this world.
Type the following command to execute
$ sigserver.sh -w ./moveEye.xml
You can see an avatar in the SIGViewer. For example, the avatar moves his eyes to 20[deg] horizontally and 10[deg] vertically, if you input a message "20 10".
Up:Tutorial? Previous:Distance sensor Next: Controlling agent with Kinect