Open stephane-caron opened 8 years ago
On a related note, transforms (including translations of the baselink) appear in the <shape>
tags of <rigid_body>
definitions. Are these considered by OpenRAVE at all?
The Collada spec says the <shape>
definitions are used for collision detection, but all transforms look static in the file definition...
Hi there,
Here is a bug report for the Collada parser. The cause of the problem and quickfix were found by Jose Enrique Chen.
Problem: the parser produces wrong results when the base-link is translated with respect to the world frame.
Affects: the current
master
andlatest_stable
branches.Comment: the bug dates back to commit c054cabe42580e615c6d19d252868ff0ae021ae9, where the behavior of Collada changed. I noticed it because it broke compatibility with the Collada models generated from VRML by the
openhrp-export-collada
script of OpenHRP3. It seems that the translation of the base link is read differently for its mesh (kinbody) and for its link in the kinematic tree. See the example below.Example: here is a Collada file that produces the bug: JVRC-1.dae
<environment><robot file="JVRC-1.dae" name="JVRC-1" /></environment>
, the kinbody of the base link (PELVIS_S in this model) appears above the head of the humanoid robot.Quickfix: comment out the
<translate>
tags of the base link PELVIS_S in the Collada file, both in the definitions of its<node>
(line 17) and its<link>
(line 3405).