Ticket #115 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Unknown joints in murml-description cause Exception in ASAPrealizer

Reported by: yaghoubzadeh Owned by:
Priority: major Component: AsapRealizer
Version: 0.9 Keywords:
Cc: Duration:
Planned Date:

Description

The following BML contains a joint that is not present in Billie (whyever that may be in the first place...):

<bml xmlns=" http://www.bml-initiative.org/bml/bml-1.0" id="bml4" >
<murmlgesture id="gesture1" start="0" xmlns=" http://www.techfak.uni-bielefeld.de/ags/soa/murml">

<murml-description>

<dynamic>
<keyframing mode="spline" easescale="1.0" easeturningpoint="0.5" >

<phase>
<frame ftime="0.50"><posture>Humanoid (vt6 3 0.0 0.0 -5.0)</posture></frame>
</phase>

</keyframing>
</dynamic>

</murml-description>

</murmlgesture>
</bml>

When sent, it causes this Exception (instead of providing just a warning):

[java] Exception in thread "DefaultPhysicsEnvironmentClock?" java.lang.NullPointerException?
[java] at asap.animationengine.keyframe.MURMLKeyframeMU.getStartKeyFrame(MURMLKeyframeMU.java:165)
[java] at asap.motionunit.keyframe.KeyFrameMotionUnit?.setupDynamicStart(KeyFrameMotionUnit?.java:59)
[java] at asap.animationengine.keyframe.MURMLKeyframeMU.startUnit(MURMLKeyframeMU.java:174)
[java] at asap.motionunit.TimedMotionUnit?.startUnit(TimedMotionUnit?.java:135)
[java] at asap.realizer.planunit.TimedAbstractPlanUnit?.start(TimedAbstractPlanUnit?.java:223)
[java] at asap.realizer.planunit.DefaultTimedPlanUnitPlayer?.playUnit(DefaultTimedPlanUnitPlayer?.java:26)
[java] at asap.animationengine.AnimationPlanPlayer?.playback(AnimationPlanPlayer?.java:148)
[java] at asap.animationengine.AnimationPlanPlayer?.play(AnimationPlanPlayer?.java:125)
[java] at asap.animationengine.AnimationPlayer?.playKinematics(AnimationPlayer?.java:466)
[java] at asap.animationengine.AnimationPlayer?.playStep(AnimationPlayer?.java:302)
[java] at hmi.mixedanimationenvironment.MixedAnimationPlayerManager?.time(MixedAnimationPlayerManager?.java:133)
[java] at hmi.mixedanimationenvironment.MixedAnimationEnvironment?.physicsUpdate(MixedAnimationEnvironment?.java:89)
[java] at hmi.physicsenvironment.OdePhysicsEnvironment?.physicsTime(OdePhysicsEnvironment?.java:602)
[java] at hmi.physicsenvironment.OdePhysicsEnvironment?$MyPhysicsClockListener?.time(OdePhysicsEnvironment?.java:277)
[java] at hmi.util.SystemClock?.time(SystemClock?.java:282)
[java] at hmi.util.SystemClock?.access$400(SystemClock?.java:53)
[java] at hmi.util.SystemClock?$ClockThread?.run(SystemClock?.java:313)

Change History

comment:1 Changed 5 years ago by yaghoubzadeh

Addition: I got the Exception with these emitters turned on beforehand:

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

comment:2 Changed 5 years ago by welberge

Should be fixed, tested with unit test, to test in realizer itself.

comment:3 Changed 5 years ago by welberge

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.