Up:Tutorial?    Previous:Distance sensor    Next: Controlling agent with Kinect      


Eve movement

In this tutorial, a simple application to move avatar's eye is introduced.

Controller

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

World file

Make an world file "moveEye.xml"

Only an avatar will be appeared in this world.

Execution

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".

moveEye.PNG

Up:Tutorial?    Previous:Distance sensor    Next: Controlling agent with Kinect


Attach file: filemoveEye.PNG 1815 download [Information]

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2014-02-06 (Thu) 13:27:30 (3726d)