Changes between Version 6 and Version 7 of Environments


Ignore:
Timestamp:
12/10/12 16:03:17 (7 years ago)
Author:
welberge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Environments

    v6 v7  
    2020Either way, the construction of an Embodiment that is to resides in one or more Environments requires those Environments. 
    2121 
     22In addition to that, the construction of an Embodiment might require other Embodiment. For example, the !OdePhysicalEmbodiment requires an !MixedSkeletonEmbodiment on which it can steer physical joints. 
     23 
     24== Using the VirtualHumanLoader to construct Embodiments == 
     25 
     26Typical initialization: 
     27{{{ 
     28OdePhysicsEnvironment ope = new OdePhysicsEnvironment(); 
     29WorldObjectEnvironment we = new WorldObjectEnvironment(); 
     30MixedAnimationEnvironment mae = new MixedAnimationEnvironment(); 
     31AsapEnvironment ee = new AsapEnvironment(); 
     32AudioEnvironment aue = new AudioEnvironment("LJWGL_JOAL"); 
     33 
     34ArrayList<Environment> environments = new ArrayList<Environment>(); 
     35environments.add(ope); 
     36environments.add(we); 
     37environments.add(mae); 
     38environments.add(ee); 
     39environments.add(aue);   
     40ee.init(environments, ope.getPhysicsClock()); 
     41ee.loadVirtualHuman("armandia", "", "asaparmandia.xml", "AsapRealizer demo");  
     42}}} 
     43 
     44Here, asaparmandia.xml is the VirtualHumanLoader xml that constructs an AsapRealizer consisting of the Engines and Embodiments defined in it. 
     45 
     46 
    2247[[ViewTopic()]]