Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRigid3d - template recognition in Mappings #1014
Comments
|
Hi Camille, Thanks a lot for the detailed reports. I just tested the files and can confirm the issue. |
|
Well after a quick look in the scene you provided: I'm not surprised the BarycentricMapping is not able to work . Let's me explain:
What your are specifying by setting the input & output field of BarycentricMapping is that you are driving the collisionDofs(type Vec3d) from the one from the one of type Dofs(type Rigid3). So the corresponding mapping should be Rigid3d, Vec3d (an not Vec3d, Rigid3d). Now about the BeamLinearMapping...the situation is a bit different. There is a valid template from Rigid3 to Vec3. This is why: <BeamLinearMapping template="Rigid3d,Vec3d"/>And <BeamLinearMapping"/>Work the same. Now I have no idea why the BeamLinearMapping is not working as you expect:
NB to anyone: |
|
Hi Damien, Thanks a lot for your answer! Regarding the BarycentricMapping, I indeed wasn't sure of which of the input and the output was driving the other (although I knew that the mechanical model was supposed to drive the collision model). It is definitely clear with your explanation. So I understand that there is no bug regarding the behaviour of the BarycentricMapping (as you pointed out), as it is not suppose to work for another input types than Vec3d. My apologies for the typo, indeed, I hadn't paid attention... |
|
@Camille-K if I understand well, you want to make a beam structure (Rigid3d with its collision model) collide with a surface. Since the collision model is only instantiable in Vec3d you created a subnode with a mapping. Correct ? |
|
@hugtalbot Correct! This actually works with the IdentityMapping, but I'd be interested in using a reduced topology for the collision model. |
|
are you coming to the STC @remibessard and @Camille-K ? it could be nice having you to work on this. |
|
Unfortunately, I won't be able to come to Sophia Antipolis for the next STC... But if I haven't investigated the issue until then, I'll try to block 1 or 2 days during the STC to work on it from distance. |
|
Hi @remibessard |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Hello,
There seem to be an issue in template recognition when creating mappings involving Rigid3d DoFs.
Namely, when creating a BarycentricMapping or a BeamLinearMapping between a mechanical model and a collision model of connected beam elements, I receive the following error messages:
[ERROR] [InfoComponent(Not created (BarycentricMapping))] Object type BarycentricMapping<Vec3d,Rigid3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Rigid3d(Vec3d,Rigid3d) Available templates: Vec3d,ExtVec3d, Vec3d,Rigid3d, Vec3d,Vec3d,[ERROR] [SceneLoaderXML] Node initialization failed.[ERROR] [InfoComponent(Not created (BeamLinearMapping))] Object type BeamLinearMapping<Rigid3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Rigid3d,Vec3d(Rigid3d,Vec3d) Available templates: Rigid3d,ExtVec3d, Rigid3d,Vec3d,[ERROR] [SceneLoaderXML] Node initialization failed.The template specialisation in BarycentricMapping.cpp suggests that the component is actually not specialised for <Vec3d,Rigid3d>, which could partly explain the error. Nevertheless the BeamLinearMapping component seems to be specialised for <Rigid3d,Vec3d>.
I attached to this issue an example scene file, reproducing the errors. I commented the lines corresponding to the different scenarios mentioned above.
NB: the "floor2b.obj" object I use for collisions is directly taken from Sofa sources.
Rigid3d_Mapping.zip
NB: the related forum topic is Beam collision mapping
Suggested labels: bug (minor)