- This topic has 1 reply, 1 voice, and was last updated 7 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] ArticulatedSystemMapping: Asking for help to understand the example scene
Tagged: 64_bits, Linux_ubuntu, SOFA_1608
Hello,
I have a question concerning the “ArticulatedSystemMapping” scene in “examples/Components/mapping” directory.
In both “collision” and “visu” nodes, the positions for the mechanical object and the Ogl model are defined by (4*8 = 32) 3D points which I guess should be the 3D coordinates of 4 cuboids centered at the five rigid frames defined before.
I noticed that the coordinates of the first cuboid are repeated 4 times
“-1 -0.5 -0.5 -1 0.5 -0.5 -1 0.5 0.5 -1 -0.5 0.5 1 -0.5 -0.5 1 0.5 -0.5 1 0.5 0.5 1 -0.5 0.5”
As a result, the collision detection is not detected properly, and the 4 cuboids are superimposed in the scene view. Have I misunderstood the scene? or is it a small bug and the accurate coordinates have to be redefined ?
Thanks,
Noura
The simulation seems to run fine now after a slight change in the RigidMapping as the follwing:
Replacing
<RigidMapping rigidIndexPerPoint="0 8 8 8 8" />
by:
<RigidMapping template=”Rigid3d,Vec3d” name=”rigidMap1″ rigidIndexPerPoint=”1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4″ />
and
<RigidMapping template="Rigid3d,ExtVec3f" rigidIndexPerPoint="0 8 8 8 8" input="@.." output="@Visual" />
by:
<RigidMapping template=”Rigid3d,ExtVec3f” name=”rigidMap2″ rigidIndexPerPoint=”1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4″ />
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.