wiki:EmitterEngine

EmitterEngine

EmitterEngines continuously 'emit' BML blocks to the realizer. The blinkingemitter emits a bml block containing a faceLexeme behavior with lexeme BLINK (and assumes that such a face behavior is bound in the facebinding). The breathingemitter emits a bml block containing a gesture with lexeme breathe (and assumes that such a gesture is bound in the gesturebinding).

Setup

Setup in VirtualHumanLoader:

<AsapVirtualHuman>
  ...
  <!-- Breathingemitter that sens small breathing animations every now and then -->
  <Loader id="breathingengine" 
          loader="asap.emitterengine.loader.EmitterEngineLoader">
    <EmitterInfo class="asap.breathingemitter.BreathingEmitterInfo"/>
  </Loader>

  <!-- Blinkemitter that sens small blink animations every now and then -->
  <Loader id="blinkengine" 
          loader="asap.emitterengine.loader.EmitterEngineLoader">
    <EmitterInfo class="asap.blinkemitter.BlinkEmitterInfo"/>
  </Loader>
</AsapVirtualHuman>

Enabling blinking

<bml xmlns="http://www.bml-initiative.org/bml/bml-1.0"  id="bml1" xmlns:bmlt="http://hmi.ewi.utwente.nl/bmlt" xmlns:bmla="http://www.asap-project.org/bmla">
  <bmlt:blinkemitter id="blinkemitter1" start="0" range="0.5" avgwaitingtime="2"/>  
</bml>

See also http://asap-project.ewi.utwente.nl/wiki/BMLT#bmlt:blinkemitter

Enabling breathing

<bml xmlns="http://www.bml-initiative.org/bml/bml-1.0"  id="bml1" xmlns:bmlt="http://hmi.ewi.utwente.nl/bmlt" xmlns:bmla="http://www.asap-project.org/bmla">
  <bmlt:breathingemitter id="breathingemitter1" start="0" range="2" avgwaitingtime="10"/>
</bml>

See also http://asap-project.ewi.utwente.nl/wiki/BMLT#bmlt:breathingemitter