ArticulatedSocialAgentsPlatform / AsapRealizer

GNU Lesser General Public License v3.0
6 stars 5 forks source link

optional undefinedPartsToIdentity attribute for restposes #193

Closed jankolkmeier closed 5 years ago

jankolkmeier commented 5 years ago

Using SkeletonRestPoses as start/restpose sets all parts not specified in that pose to identity rotation. With this patch this behavior can be disabled, i.e. in agentspec:

<Loader id="animationengine" loader="asap.animationengine.loader.MixedAnimationEngineLoader"  ...>
  <GestureBinding ... />
  <StartPose>
    <RestPose type="SkeletonPose" file="sitting_pose.xml" undefinedPartsToIdentity="false" />
  </StartPose>
</Loader>

In multi-agent setups, this allows us to set different starting poses per agent when initializating the SkeletonEmbodiment, and not have them overridden when setting the restpose.

jankolkmeier commented 5 years ago

Hold on, this actually seems like a bad idea.