hmi.environment.avatars
Class GenericVirtualHuman

java.lang.Object
  extended by hmi.environment.avatars.GenericVirtualHuman
All Implemented Interfaces:
VirtualHuman
Direct Known Subclasses:
HmiVirtualHuman

public class GenericVirtualHuman
extends Object
implements VirtualHuman

Access to all elements of a VirtualHuman.

Author:
Dennis Reidsma

Field Summary
private  VJoint animationRootJoint
           
private  AudioPlanner audioPlanner
           
private  VJoint currentAnimationRootJoint
           
private  FaceController faceController
           
private  FacePlanner facePlanner
           
private  org.odejava.JointGroup feetGlueJointGroup
           
private  String id
           
private  ArrayList<MixedSystem> mixedSystems
           
private  VJoint nextAnimationRootJoint
           
private  ArrayList<OdeHumanoid> physicalHumans
           
private  VJoint predictorAnimationRootJoint
           
private  VJoint previousAnimationRootJoint
           
private  SpeechPlanner speechPlanner
           
private  AnimationPlanner theAnimationPlanner
           
private  BlinkEmitter theBlinkEmitter
           
private  RealizerBridge theBMLRealizer
           
private  ElckerlycRealizer theElckerlyc
           
private  GazeEmitter theGazeEmitter
           
private  IKBody theIKBody
           
private  InterruptPlanner theInterruptPlanner
           
private  TCPIPRealizerBridgeServer theRealizerServer
           
private  VirtualHumanSpec theSpec
           
private  VirtualWorld theVirtualWorld
           
private  WaitPlanner theWaitPlanner
           
 
Constructor Summary
GenericVirtualHuman(String id)
           
 
Method Summary
 void cleanUp()
          clean up this virtual human -- destroy planners; clean up physical models, etc
 AnimationPlanner getAnimationPlanner()
           
 VJoint getAnimationRootJoint()
           
 AudioPlanner getAudioPlanner()
           
 BlinkEmitter getBlinkEmitter()
           
 RealizerBridge getBMLRealizer()
           
 VJoint getCurrentAnimationRootJoint()
           
 ElckerlycRealizer getElckerlyc()
           
 FaceController getFaceController()
           
 FacePlanner getFacePlanner()
           
 org.odejava.JointGroup getFeetGlueJointGroup()
          access needed to remove the feet glue thingies again
 GazeEmitter getGazeEmitter()
           
 String getId()
           
 IKBody getIKBody()
           
 InterruptPlanner getInterruptPlanner()
           
 ArrayList<MixedSystem> getMixedSystems()
          associated with getPhysicalHumans, same order
 VJoint getNextAnimationRootJoint()
           
 ArrayList<OdeHumanoid> getPhysicalHumans()
          associated with getMixedSystems, same order
 VJoint getPredictorAnimationRootJoint()
           
 VJoint getPreviousAnimationRootJoint()
           
 TCPIPRealizerBridgeServer getRealizerServer()
           
 SpeechPlanner getSpeechPlanner()
           
 VirtualHumanSpec getVirtualHumanSpec()
           
 VirtualWorld getVirtualWorld()
           
 WaitPlanner getWaitPlanner()
           
 void loadNewGestureBinding(Resources res, String filename)
          Call this to load a new gesture binding on a virtual human that was already initialised
 void reloadGestureBinding()
          Call this to reload the current gesture binding from it's file, on a virtual human that was already initialised
 void setAnimationPlanner(AnimationPlanner ap)
           
 void setAnimationRootJoint(VJoint newJoint)
           
protected  void setAudioPlanner(AudioPlanner ap)
           
 void setBlinkEmitter(BlinkEmitter be)
           
 void setBMLRealizer(RealizerBridge bmlr)
           
 void setCurrentAnimationRootJoint(VJoint newJoint)
           
 void setElckerlyc(ElckerlycRealizer er)
           
protected  void setFaceController(FaceController fc)
           
protected  void setFacePlanner(FacePlanner fp)
           
 void setGazeEmitter(GazeEmitter gc)
           
 void setIKBody(IKBody ikb)
           
 void setMixedSystems(ArrayList<MixedSystem> ms)
           
 void setNextAnimationRootJoint(VJoint newJoint)
           
 void setPhysicalHumans(ArrayList<OdeHumanoid> ph)
           
 void setPredictorAnimationRootJoint(VJoint newJoint)
           
 void setPreviousAnimationRootJoint(VJoint newJoint)
           
 void setRealizerServer(TCPIPRealizerBridgeServer server)
           
protected  void setSpeechPlanner(SpeechPlanner sp)
           
 void setVirtualHumanSpec(VirtualHumanSpec spec)
          Set the virtual human spec from which this virtual human was built -- for future reference
 void setVirtualWorld(VirtualWorld vw)
          set the virtualWorld associated with this VH, for access to ode space and collision and worldobjectmanager and such
 void setVoice(String newVoice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private String id

theVirtualWorld

private VirtualWorld theVirtualWorld

theSpec

private VirtualHumanSpec theSpec

animationRootJoint

private VJoint animationRootJoint

previousAnimationRootJoint

private VJoint previousAnimationRootJoint

currentAnimationRootJoint

private VJoint currentAnimationRootJoint

nextAnimationRootJoint

private VJoint nextAnimationRootJoint

predictorAnimationRootJoint

private VJoint predictorAnimationRootJoint

mixedSystems

private ArrayList<MixedSystem> mixedSystems

physicalHumans

private ArrayList<OdeHumanoid> physicalHumans

feetGlueJointGroup

private org.odejava.JointGroup feetGlueJointGroup

theIKBody

private IKBody theIKBody

theAnimationPlanner

private AnimationPlanner theAnimationPlanner

theInterruptPlanner

private InterruptPlanner theInterruptPlanner

theWaitPlanner

private WaitPlanner theWaitPlanner

audioPlanner

private AudioPlanner audioPlanner

faceController

private FaceController faceController

facePlanner

private FacePlanner facePlanner

speechPlanner

private SpeechPlanner speechPlanner

theBMLRealizer

private RealizerBridge theBMLRealizer

theElckerlyc

private ElckerlycRealizer theElckerlyc

theBlinkEmitter

private BlinkEmitter theBlinkEmitter

theGazeEmitter

private GazeEmitter theGazeEmitter

theRealizerServer

private TCPIPRealizerBridgeServer theRealizerServer
Constructor Detail

GenericVirtualHuman

public GenericVirtualHuman(String id)
Method Detail

cleanUp

public void cleanUp()
Description copied from interface: VirtualHuman
clean up this virtual human -- destroy planners; clean up physical models, etc

Specified by:
cleanUp in interface VirtualHuman

getId

public String getId()
Specified by:
getId in interface VirtualHuman

setVirtualHumanSpec

public void setVirtualHumanSpec(VirtualHumanSpec spec)
Description copied from interface: VirtualHuman
Set the virtual human spec from which this virtual human was built -- for future reference

Specified by:
setVirtualHumanSpec in interface VirtualHuman

getVirtualHumanSpec

public VirtualHumanSpec getVirtualHumanSpec()
Specified by:
getVirtualHumanSpec in interface VirtualHuman

setVirtualWorld

public void setVirtualWorld(VirtualWorld vw)
Description copied from interface: VirtualHuman
set the virtualWorld associated with this VH, for access to ode space and collision and worldobjectmanager and such

Specified by:
setVirtualWorld in interface VirtualHuman

getVirtualWorld

public VirtualWorld getVirtualWorld()
Specified by:
getVirtualWorld in interface VirtualHuman

setAnimationRootJoint

public void setAnimationRootJoint(VJoint newJoint)

getAnimationRootJoint

public VJoint getAnimationRootJoint()
Specified by:
getAnimationRootJoint in interface VirtualHuman

setPreviousAnimationRootJoint

public void setPreviousAnimationRootJoint(VJoint newJoint)

getPreviousAnimationRootJoint

public VJoint getPreviousAnimationRootJoint()
Specified by:
getPreviousAnimationRootJoint in interface VirtualHuman

setCurrentAnimationRootJoint

public void setCurrentAnimationRootJoint(VJoint newJoint)

getCurrentAnimationRootJoint

public VJoint getCurrentAnimationRootJoint()
Specified by:
getCurrentAnimationRootJoint in interface VirtualHuman

setNextAnimationRootJoint

public void setNextAnimationRootJoint(VJoint newJoint)

getNextAnimationRootJoint

public VJoint getNextAnimationRootJoint()
Specified by:
getNextAnimationRootJoint in interface VirtualHuman

setPredictorAnimationRootJoint

public void setPredictorAnimationRootJoint(VJoint newJoint)

getPredictorAnimationRootJoint

public VJoint getPredictorAnimationRootJoint()
Specified by:
getPredictorAnimationRootJoint in interface VirtualHuman

setMixedSystems

public void setMixedSystems(ArrayList<MixedSystem> ms)

getMixedSystems

public ArrayList<MixedSystem> getMixedSystems()
Description copied from interface: VirtualHuman
associated with getPhysicalHumans, same order

Specified by:
getMixedSystems in interface VirtualHuman

setPhysicalHumans

public void setPhysicalHumans(ArrayList<OdeHumanoid> ph)

getPhysicalHumans

public ArrayList<OdeHumanoid> getPhysicalHumans()
Description copied from interface: VirtualHuman
associated with getMixedSystems, same order

Specified by:
getPhysicalHumans in interface VirtualHuman

getFeetGlueJointGroup

public org.odejava.JointGroup getFeetGlueJointGroup()
Description copied from interface: VirtualHuman
access needed to remove the feet glue thingies again

Specified by:
getFeetGlueJointGroup in interface VirtualHuman

setIKBody

public void setIKBody(IKBody ikb)

getIKBody

public IKBody getIKBody()
Specified by:
getIKBody in interface VirtualHuman

setAnimationPlanner

public void setAnimationPlanner(AnimationPlanner ap)

getAnimationPlanner

public AnimationPlanner getAnimationPlanner()
Specified by:
getAnimationPlanner in interface VirtualHuman

getInterruptPlanner

public InterruptPlanner getInterruptPlanner()
Specified by:
getInterruptPlanner in interface VirtualHuman

getWaitPlanner

public WaitPlanner getWaitPlanner()
Specified by:
getWaitPlanner in interface VirtualHuman

reloadGestureBinding

public void reloadGestureBinding()
Description copied from interface: VirtualHuman
Call this to reload the current gesture binding from it's file, on a virtual human that was already initialised

Specified by:
reloadGestureBinding in interface VirtualHuman

loadNewGestureBinding

public void loadNewGestureBinding(Resources res,
                                  String filename)
Description copied from interface: VirtualHuman
Call this to load a new gesture binding on a virtual human that was already initialised

Specified by:
loadNewGestureBinding in interface VirtualHuman

setAudioPlanner

protected void setAudioPlanner(AudioPlanner ap)

getAudioPlanner

public AudioPlanner getAudioPlanner()
Specified by:
getAudioPlanner in interface VirtualHuman

setFaceController

protected void setFaceController(FaceController fc)

getFaceController

public FaceController getFaceController()
Specified by:
getFaceController in interface VirtualHuman

setFacePlanner

protected void setFacePlanner(FacePlanner fp)

getFacePlanner

public FacePlanner getFacePlanner()
Specified by:
getFacePlanner in interface VirtualHuman

setSpeechPlanner

protected void setSpeechPlanner(SpeechPlanner sp)

getSpeechPlanner

public SpeechPlanner getSpeechPlanner()
Specified by:
getSpeechPlanner in interface VirtualHuman

setVoice

public void setVoice(String newVoice)
Specified by:
setVoice in interface VirtualHuman

setBMLRealizer

public void setBMLRealizer(RealizerBridge bmlr)

getBMLRealizer

public RealizerBridge getBMLRealizer()
Specified by:
getBMLRealizer in interface VirtualHuman

setElckerlyc

public void setElckerlyc(ElckerlycRealizer er)

getElckerlyc

public ElckerlycRealizer getElckerlyc()
Specified by:
getElckerlyc in interface VirtualHuman

setBlinkEmitter

public void setBlinkEmitter(BlinkEmitter be)

getBlinkEmitter

public BlinkEmitter getBlinkEmitter()
Specified by:
getBlinkEmitter in interface VirtualHuman

setGazeEmitter

public void setGazeEmitter(GazeEmitter gc)

getGazeEmitter

public GazeEmitter getGazeEmitter()
Specified by:
getGazeEmitter in interface VirtualHuman

setRealizerServer

public void setRealizerServer(TCPIPRealizerBridgeServer server)

getRealizerServer

public TCPIPRealizerBridgeServer getRealizerServer()
Specified by:
getRealizerServer in interface VirtualHuman