hmi.environment.avatars
Class GenericVirtualHumanBuilder

java.lang.Object
  extended by hmi.environment.avatars.GenericVirtualHumanBuilder
All Implemented Interfaces:
VirtualHumanBuilder
Direct Known Subclasses:
HmiVirtualHumanBuilder

public abstract class GenericVirtualHumanBuilder
extends Object
implements VirtualHumanBuilder

Generic implementation, takes a generic render-independent specification and loads the appropriate elements.

Author:
Dennis Reidsma

Field Summary
private static org.slf4j.Logger logger
           
private  GenericVirtualHuman theVirtualHuman
           
 
Constructor Summary
GenericVirtualHumanBuilder()
           
 
Method Summary
protected abstract  void buildBody()
           
 VirtualHuman buildVirtualHuman(VirtualHumanSpec spec, String id, VirtualWorld vw, SchedulingClock c)
          Load the virtual human, with the parameters that have been set.
protected  void createVirtualHuman(String id)
           
 VirtualHuman getVirtualHuman()
           
 void glueFeetToFloor(PhysicalHumanoid pHuman)
          Connects the ankle segments to the world with a fixed, unmovable joint, to prevent the feet from slipping
protected  void initAnimationPlanner()
           
protected  void initAudioPlanner()
           
protected  void initBMLRealizer(SchedulingClock c)
           
protected  void initFaceController()
           
protected  void initFacePlanner()
           
protected  void initGestureBinding()
           
protected  void initSpeechBinding()
           
protected  void initSpeechPlanner()
           
protected  void prepareMixedAnimation()
          load physicalhuman, mixed systems, clone animation joint, ...
protected  void setAvatarPose()
           
protected  void setVirtualHuman(GenericVirtualHuman vh)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.slf4j.Logger logger

theVirtualHuman

private GenericVirtualHuman theVirtualHuman
Constructor Detail

GenericVirtualHumanBuilder

public GenericVirtualHumanBuilder()
Method Detail

setVirtualHuman

protected void setVirtualHuman(GenericVirtualHuman vh)

getVirtualHuman

public VirtualHuman getVirtualHuman()

buildVirtualHuman

public VirtualHuman buildVirtualHuman(VirtualHumanSpec spec,
                                      String id,
                                      VirtualWorld vw,
                                      SchedulingClock c)
Load the virtual human, with the parameters that have been set.

Specified by:
buildVirtualHuman in interface VirtualHumanBuilder

createVirtualHuman

protected void createVirtualHuman(String id)

buildBody

protected abstract void buildBody()

prepareMixedAnimation

protected void prepareMixedAnimation()
load physicalhuman, mixed systems, clone animation joint, ...


initSpeechBinding

protected void initSpeechBinding()

initGestureBinding

protected void initGestureBinding()

initAnimationPlanner

protected void initAnimationPlanner()

setAvatarPose

protected void setAvatarPose()

glueFeetToFloor

public void glueFeetToFloor(PhysicalHumanoid pHuman)
Connects the ankle segments to the world with a fixed, unmovable joint, to prevent the feet from slipping

Parameters:
pHuman - human to tighten in place like this

initFaceController

protected void initFaceController()

initFacePlanner

protected void initFacePlanner()

initAudioPlanner

protected void initAudioPlanner()

initSpeechPlanner

protected void initSpeechPlanner()

initBMLRealizer

protected void initBMLRealizer(SchedulingClock c)