class CAVERN_perfArticulatedAvatar_c

Performer CAVE Articulated Avatar class

Public Methods

virtual void init (pfDCS* parent, char *avatarServerIP, short avatarServerRemotePort, char* userName, char* headFile, char* bodyFile, char* rightHAndFile, char* upperRightArmFile, char* lowerRightArmFile, char* leftHandFile, char* upperLeftArmFile, char* lowerLeftArmFile)
Initialize the performer avatar class
virtual void process (int cycles=5)
Call this once per performer loop cycle to process incoming avatar messages
virtual void sendSelfAvatarTrackerData ()
Send your own avatar's info
virtual void exit ()
Exit your avatar from the collaboration
void setRightHanded ()
Set your avatar to be right handed
void setLeftHanded ()
Set your avatar to be left handed
void calibrate (float shoulderVertOffsetFromHead, float shoulderHorizOffsetFromHead, float upperArmLength, float lowerArmLength, float armLengthTolerance)
Adjust avatar arm parameters

Documentation

Performer CAVE Articulated Avatar class. This class manages Performer articulated avatars. Begin by calling init(). Then at each cycle of the performer CAVE loop call sendSelfAvatarTrackerData() and process(). Call exit() to have your avatar exit the space. Most of the networking occurs in the CAVERN_perfBaseArticulatedAvatar_c class. The CAVERN_perfArticulatedAvatar_c class simply adds Performer/CAVE relevent routines to the base (non-graphical) avatar class.
virtual void init(pfDCS* parent, char *avatarServerIP, short avatarServerRemotePort, char* userName, char* headFile, char* bodyFile, char* rightHAndFile, char* upperRightArmFile, char* lowerRightArmFile, char* leftHandFile, char* upperLeftArmFile, char* lowerLeftArmFile)
Initialize the performer avatar class. Note that for body parts a copy of the objects must reside at each collaborators site. Otherwise a default avatar will be loaded (defaulthead.pfb etc..)

Parameters:
parent - - DCS onto which the avatars are added.
avatarServerIP - - IP address of avatar server.
avatarServerRemotePort - - remote port that the avatar server is listening to.
userName - - your name

virtual void process(int cycles=5)
Call this once per performer loop cycle to process incoming avatar messages
Parameters:
cycles - - number of cycles to go through checking for avatar events. Usually once per performer main loop is NOT enough. You should do it as often as N times- where N is the number of collabators in the space.

void calibrate(float shoulderVertOffsetFromHead, float shoulderHorizOffsetFromHead, float upperArmLength, float lowerArmLength, float armLengthTolerance)
Adjust avatar arm parameters
Parameters:
shoulderVertOffsetFromHead - - vertical distance between your eyes (where the head tracker is) and your shoulder. Default is 0.75 (feet).
shoulderHorizOffsetFromHead - - horizontal distance between your eyes and your shoulder. Default is 0.75.
upperArmLength - - the length of your upper arm. Default us 1.
lowerArmLength - - the length of your lower arm. Default is 0.75.
armLengthTolerance - - tolerance to allow your lower arm to extend from- or slide into the upper arm. Default is 0.4.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de