[x3d-public] unrecognized value. HAnim bug in KoreanCharacterMotionAnnex* aliases for LOA-02/3 and LOA-4 feet

John Carlson yottzumm at gmail.com
Sat Jan 23 16:53:28 PST 2021


I missed LOA0, it appears.

Hmm.

John

On 1/23/21 6:51 PM, John Carlson wrote:
> Perhaps we should look at the hierarchies in the spec:
>
> Hier1.txt:  | |     l_metatarsophalangeal_2 : l_tarsal_proximal_phalanx_2
> Hier1.txt:  |       r_metatarsophalangeal_2 : r_tarsal_proximal_phalanx_2
> Hier2.txt:  | |       l_metatarsophalangeal_2 : 
> l_tarsal_proximal_phalanx_2
> Hier2.txt:  |         r_metatarsophalangeal_2 : 
> r_tarsal_proximal_phalanx_2
> Hier3.txt:  | |       l_metatarsophalangeal_2 : 
> l_tarsal_proximal_phalanx_2
> Hier3.txt:  |         r_metatarsophalangeal_2 : 
> r_tarsal_proximal_phalanx_2
> Hier4.txt:  | |     | |   l_metatarsophalangeal_1 : 
> l_tarsal_proximal_phalanx_1
> Hier4.txt:  | |     | |   l_metatarsophalangeal_2 : 
> l_tarsal_proximal_phalanx_2
> Hier4.txt:  | |     |     l_metatarsophalangeal_3 : 
> l_tarsal_proximal_phalanx_3
> Hier4.txt:  | |         | l_metatarsophalangeal_4 : 
> l_tarsal_proximal_phalanx_4
> Hier4.txt:  | |           l_metatarsophalangeal_5 : 
> l_tarsal_proximal_phalanx_5
> Hier4.txt:  |       | |   r_metatarsophalangeal_1 : 
> r_tarsal_proximal_phalanx_1
> Hier4.txt:  |       | |   r_metatarsophalangeal_2 : 
> r_tarsal_proximal_phalanx_2
> Hier4.txt:  |       |     r_metatarsophalangeal_3 : 
> r_tarsal_proximal_phalanx_3
> Hier4.txt:  |           | r_metatarsophalangeal_4 : 
> r_tarsal_proximal_phalanx_4
> Hier4.txt:  |             r_metatarsophalangeal_5 : 
> r_tarsal_proximal_phalanx_5
> Hierarchy.txt:  | |     | |   l_metatarsophalangeal_1 : 
> l_tarsal_proximal_phalanx_1
> Hierarchy.txt:  | |     | |   l_metatarsophalangeal_2 : 
> l_tarsal_proximal_phalanx_2
> Hierarchy.txt:  | |     |     l_metatarsophalangeal_3 : 
> l_tarsal_proximal_phalanx_3
> Hierarchy.txt:  | |         | l_metatarsophalangeal_4 : 
> l_tarsal_proximal_phalanx_4
> Hierarchy.txt:  | |           l_metatarsophalangeal_5 : 
> l_tarsal_proximal_phalanx_5
> Hierarchy.txt:  |       | |   r_metatarsophalangeal_1 : 
> r_tarsal_proximal_phalanx_1
> Hierarchy.txt:  |       | |   r_metatarsophalangeal_2 : 
> r_tarsal_proximal_phalanx_2
> Hierarchy.txt:  |       |     r_metatarsophalangeal_3 : 
> r_tarsal_proximal_phalanx_3
> Hierarchy.txt:  |           | r_metatarsophalangeal_4 : 
> r_tarsal_proximal_phalanx_4
> Hierarchy.txt:  |             r_metatarsophalangeal_5 : 
> r_tarsal_proximal_phalanx_5
>
>
> All have the digit.  So it's more on the authoring side, I would say.
>
>
> John
>
> On 1/23/21 6:10 PM, Don Brutzman wrote:
>> You are correct to flag these other issues.
>>
>> Please look at what I wrote, I think that the solution I proposed 
>> should work by mapping the four missing LOA-2 and LOA-3 joint names 
>> to the corresponding first LOA-4 joint name.
>>
>> We'll see what Joe says and then apply/test the best path forward.
>>
>> On 1/23/2021 3:46 PM, John Carlson wrote:
>>>
>>>
>>> I will have to figure out how to change my skeleton build, it relies on
>>> sections cut out of the spec.
>>>
>>> It would probably be good to collect all errors like this, as there may
>>> be more.  Did you check for "r_metatarsophalangeal" and
>>>
>>>      r_metatarsophalangeal_1
>>>      r_metatarsophalangeal_2
>>>      r_metatarsophalangeal_3
>>>      r_metatarsophalangeal_4
>>>      r_metatarsophalangeal_5
>>>
>>> in the X3D schema or X3DUOM?
>>>
>>> On 1/23/21 5:31 PM, Don Brutzman wrote:
>>>> [cc: Joe, x3d-public, hanim]
>>>>
>>>> John, like you, am not finding "l_metatarsophalangeal" in current X3D
>>>> Schema or X3DUOM.  Instead am finding
>>>>
>>>>     l_metatarsophalangeal_1
>>>>     l_metatarsophalangeal_2
>>>>     l_metatarsophalangeal_3
>>>>     l_metatarsophalangeal_4
>>>>     l_metatarsophalangeal_5
>>>>
>>>> Close reading of these HAnimJoint names will note the prefixes l_ and
>>>> r_ are alphabetic, while suffixes _1 _2 _3 _4 _5 are numeric.
>>>>
>>>> However, like you, am nevertheless finding "l_metatarsophalangeal" in
>>>> current HAnim Specification in both animation examples but also Part 1
>>>> Concepts.
>>>>
>>>> [1]    HAnim version 2
>>>> https://www.web3d.org/documents/specifications/19774/V2.0/index.html
>>>>
>>>> [2]    Part 1:  Humanoid animation (HAnim) architecture, 4 Concepts,
>>>> 4.9.4 The feet
>>>> https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/concepts.html#TheFeet 
>>>>
>>>>
>>>> This paragraph has a layout problem, now entered as Mantis
>>>>
>>>> [3]    Mantis 1338: HAnim part 1 clause 4.9.4 has malformed HTML
>>>> https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/concepts.html#TheFeet 
>>>>
>>>>
>>>> (Am guessing we missed this during prior document review because it
>>>> was offscreen on the far-right margin.)
>>>>
>>>> Dick, first correction: please advise how we can resolve this layout
>>>> issue which relates to whitespace, not prose.
>>>>
>>>> Dick, please also monitor the following resolution and let's decide if
>>>> additional prose is appropriate too.
>>>>
>>>> ---
>>>>
>>>> The clause itself reads as follows:
>>>>
>>>>> 4.9.4 The feet
>>>>>
>>>>> The names of the Joint objects for the LOA‑2 and 3 feet are specified
>>>>> in Table 4.4.
>>>>>
>>>>> Table 4.4 — LOA‑2 and 3 foot Joint object names
>>>>>
>>>>> Left foot
>>>>>     l_talocrural     l_tarsometatarsal l_metatarsophalangeal
>>>>> l_tarsal_interphalangeal
>>>>>
>>>>> Right foot
>>>>>     r_talocrural     r_tarsometatarsal r_metatarsophalangeal
>>>>> r_tarsal_interphalangeal
>>>>
>>>> Corresponding joints with _1 _2 _3 _4 _5 appended are found in
>>>>
>>>> [4]    Figure 4.9 — LOA‑4 foot joints
>>>> https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/concepts.html#f-FootJoints 
>>>>
>>>>
>>>> Joe, second correction:  I think that we missed defining 'alias'
>>>> values for this difference between LOA-2/LOA-3 and LOA-4.
>>>>
>>>> Proposed fix: define alias correspondences in X3D XML Schema, X3DUOM
>>>> and corresponding Quality Assurance (QA) diagnostics such as X3D
>>>> Schematron and X3D Tooltips.
>>>>
>>>>     l_talocrural                l_talocrural_1
>>>>     l_tarsometatarsal           l_tarsometatarsal_1
>>>>     l_metatarsophalangeal       l_metatarsophalangeal_1
>>>>     l_tarsal_interphalangeal    l_tarsal_interphalangeal_1
>>>>
>>>>     r_talocrural                r_talocrural_1
>>>>     r_tarsometatarsal           r_tarsometatarsal_1
>>>>     r_metatarsophalangeal       r_metatarsophalangeal_1
>>>>     r_tarsal_interphalangeal    r_tarsal_interphalangeal_1
>>>>
>>>> Please let me know what you think about these alias additions. 
>>>> Entered as
>>>>
>>>> [5]    Mantis 1339: missing alias correspondences for foot joints
>>>> LOA-2/LOA-3 and LOA-4
>>>> https://www.web3d.org/member-only/mantis/view.php?id=1339
>>>>
>>>> John, if accepted, that change will clear the diagnostic errors you
>>>> encountered. Thanks for pursuing this tricky problem, am happy to
>>>> confirm that your diagnosis was exactly on target.
>>>>
>>>> Pretty tricky problem, but appears to have a straightforward
>>>> solution.  Please advise what you think.
>>>>
>>>>
>>>> On 1/21/2021 3:34 PM, John Carlson wrote:
>>>>>
>>>>> Appears valid in spec.
>>>>>
>>>>> $ find . -type f -print0 |xargs -0 grep -w l_metatarsophalangeal|grep
>>>>> -e -IS|grep l_metatarsophalangeal
>>>>> ./ISO-IEC19774/ISO-IEC19774-2/ISO-IEC19774-2v2.0/ISO-IEC19774-2v2.0-IS/MotionDataAnimation/ExampleMocapAnimationInterpolators.html: 
>>>>>
>>>>> <HAnimJoint DEF="hanim_l_metatarsophalangeal" center="3.854 3.64
>>>>> 0.7402" name="l_metatarsophalangeal" >
>>>>> ./ISO-IEC19774/ISO-IEC19774-2/ISO-IEC19774-2v2.0/ISO-IEC19774-2v2.0-IS/MotionDataAnimation/Concepts.html: 
>>>>>
>>>>> <td class="center">l_metatarsophalangeal</td>
>>>>> ./ISO-IEC19774/ISO-IEC19774-2/ISO-IEC19774-2v2.0/ISO-IEC19774-2v2.0-IS/MotionDataAnimation/Concepts.html: 
>>>>>
>>>>> <td class="center">l_metatarsophalangeal</td>
>>>>> ./ISO-IEC19774/ISO-IEC19774-2/ISO-IEC19774-2v2.0/ISO-IEC19774-2v2.0-IS/MotionDataAnimation/Concepts.html: 
>>>>>
>>>>> <li>The <code>l_metatarsophalangeal</code> <span
>>>>> class="Object">Joint</span> has the motion of [R17]
>>>>> ./ISO-IEC19774/ISO-IEC19774-2/ISO-IEC19774-2v2.0/ISO-IEC19774-2v2.0-IS/MotionDataAnimation/ExampleKeyframeAnimation.html: 
>>>>>
>>>>> <HAnimJoint DEF="hanim_l_metatarsophalangeal" center="3.854 3.64
>>>>> 0.7402" name="l_metatarsophalangeal" >
>>>>> ./ISO-IEC19774/ISO-IEC19774-2/ISO-IEC19774-2v2.0/ISO-IEC19774-2v2.0-IS/MotionDataAnimation/ExampleMocapAnimationMotionObject.html: 
>>>>>
>>>>> <HAnimJoint DEF="hanim_l_metatarsophalangeal" center="3.854 3.64
>>>>> 0.7402" name="l_metatarsophalangeal" >
>>>>> ./ISO-IEC19774/ISO-IEC19774-1/ISO-IEC19774-1v2.0/ISO-IEC19774-1v2.0-IS/Architecture/Design.html: 
>>>>>
>>>>> <HAnimJoint DEF="hanim_l_metatarsophalangeal"
>>>>> center="3.854000 3.640000 0.740200"
>>>>> name="l_metatarsophalangeal" >
>>>>> ./ISO-IEC19774/ISO-IEC19774-1/ISO-IEC19774-1v2.0/ISO-IEC19774-1v2.0-IS/Architecture/concepts.html: 
>>>>>
>>>>> <td>l_metatarsophalangeal</td>
>>>>>
>>>>> But not in XML schema or X3DUOM.   Hmm.
>>>>>
>>>>> coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
>>>>>
>>>>> find . -type f -print0 |xargs -0 grep -w l_metatarsophalangeal
>>>>> coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
>>>>>
>>>>>
>>>>>
>>>>> So there must be some disconnect between the spec and the schema?
>>>>>
>>>>>
>>>>> HAnim examples to test against:
>>>>>
>>>>> coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/x3d/content/examples/HumanoidAnimation$ 
>>>>>
>>>>> find . -type f -print0 |xargs -0 grep -wl l_metatarsophalangeal
>>>>>
>>>>> ./Characters/JinLOA3.x3d
>>>>> ./Characters/JinLOA1.x3d
>>>>> ./Characters/JinLOA2.x3d
>>>>> ./Specifications/KoreanCharacterMotionAnnexD01Jin.x3d
>>>>> ./Specifications/KoreanCharacterMotionAnnexC01Jin.x3d
>>>>>
>>>>> The unrecognized value errors are in your build.log.txt.
>>>>>
>>>>> Thanks for looking at this!
>>>>>
>>>>> John
>>>>>
>>>>>
>>>>> On 1/21/21 5:15 PM, John Carlson wrote:
>>>>>> I believe I am using X3DJSAIL. Do I need to do a build/checkout
>>>>>>  or download jars?
>>>>>>
>>>>>> It would be good to cross test with stylesheet.
>>>>>>
>>>>>> I’ll try to remember to look into it tonight.  Resting now.
>>>>>>
>>>>>> John
>>>>>> On Thu, Jan 21, 2021 at 10:57 AM Don Brutzman <brutzman at nps.edu
>>>>>> <mailto:brutzman at nps.edu>> wrote:
>>>>>>
>>>>>>     Thanks for checking John.  Wondering, are you checking HAnim
>>>>>> specification, X3DUOM or X3D Schema for correct values?
>>>>>>
>>>>>>     We can also define alias enumerations if there are allowable
>>>>>> synonyms.
>>>>>>
>>>>>>     On 1/20/2021 9:07 PM, John Carlson wrote:
>>>>>>     >
>>>>>>     >
>>>>>>     > Running with nashorn.
>>>>>>     >
>>>>>>     > jjs -J-Xss1g -J-Xmx4g
>>>>>>     >
>>>>>> -J-Djava.class.path=.:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar:/home/coderextreme/X3DJSONLD/saxon9he.jar:/home/coderextreme/X3DJSONLD/target/X3DJSONLD-1.0-SNAPSHOT.jar:/home/coderextreme/X3DJSONLD/src/main/nashorn 
>>>>>>
>>>>>>     >
>>>>>> ../nashorn/net/coderextreme/data/KoreanCharacterMotionAnnexC01Jin.js
>>>>>>     > Warning: The jjs tool is planned to be removed from a future
>>>>>> JDK release
>>>>>>     > Warning: HAnimJoint name newValue="l_metatarsophalangeal" 
>>>>>> has an
>>>>>>     > unrecognized value not matching any of the optional string
>>>>>> tokens.
>>>>>>     > Warning: HAnimJoint name newValue="r_metatarsophalangeal" 
>>>>>> has an
>>>>>>     > unrecognized value not matching any of the optional string
>>>>>> tokens.
>>>>>>     >
>>>>>>     > jjs -J-Xss1g -J-Xmx4g
>>>>>>     >
>>>>>> -J-Djava.class.path=.:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar:/home/coderextreme/X3DJSONLD/saxon9he.jar:/home/coderextreme/X3DJSONLD/target/X3DJSONLD-1.0-SNAPSHOT.jar:/home/coderextreme/X3DJSONLD/src/main/nashorn 
>>>>>>
>>>>>>     >
>>>>>> ../nashorn/net/coderextreme/data/KoreanCharacterMotionAnnexD01Jin.js
>>>>>>     > Warning: The jjs tool is planned to be removed from a future
>>>>>> JDK release
>>>>>>     > Warning: HAnimJoint name newValue="l_metatarsophalangeal" 
>>>>>> has an
>>>>>>     > unrecognized value not matching any of the optional string
>>>>>> tokens.
>>>>>>     >
>>>>>>     > Related X3D files found in:
>>>>>>     >
>>>>>>     >
>>>>>> /c/x3d-code/www.web3d.org/x3d/content/examples/HumanoidAnimation/Specifications/ 
>>>>>>
>>>>>> <http://www.web3d.org/x3d/content/examples/HumanoidAnimation/Specifications/> 
>>>>>>
>>>>>>
>>>>>>     >
>>>>>>     > X3D files up to date:
>>>>>>     >
>>>>>>     >
>>>>>> coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/x3d/content/examples/HumanoidAnimation$ 
>>>>>>
>>>>>> <http://www.web3d.org/x3d/content/examples/HumanoidAnimation$>
>>>>>>     > diff Specifications/ ~/X3DJSONLD/src/main/data/|grep diff
>>>>>>     >
>>>>>> coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/x3d/content/examples/HumanoidAnimation$ 
>>>>>>
>>>>>> <http://www.web3d.org/x3d/content/examples/HumanoidAnimation$>
>>>>>>     > svn up
>>>>>>     > Updating '.':
>>>>>>     > At revision 31305.
>>>>>>     >
>>>>>>     > John
>>>>
>>>> all the best, Don
>>
>> all the best, Don



More information about the x3d-public mailing list