The collision between the obj object and the msh object #5424
Replies: 4 comments
-
|
The collision scn file in the previous course has the following code: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @CherryJGit Indeed SOFA is evolving from a release to another. We always advise to update your code along with your SOFA version when a new release is out. Looking at the console output with SOFA v24.12, many information is provided: [ERROR] [InfoComponent(Not created (DefaultContactManager))] Object type DefaultContactManager<> was not created
The component 'DefaultContactManager' cannot be found in the factory.
Several reasons are possible:
1) This component has been MOVED from SofaBaseCollision to Sofa.Component.Collision.Response.Contact since SOFA v22.06.
To continue using this component you may need to update your scene by adding
<RequiredPlugin name='Sofa.Component.Collision.Response.Contact'/>
2) This alias for the component CollisionResponse was removed in SOFA v24.12.
[ERROR] [FileRepository] File mesh/Liver2.msh NOT FOUND in :/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa:/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa/examples:/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa:/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa/examples
[ERROR] [MeshGmshLoader(meshLoaderCoarse)] File: 'mesh/Liver2.msh' not found.
[ERROR] [ConstantForceField(unnamed)] Attribute 'force' has been removed since SOFA v24.06. Replace "force" by using the "forces" data (providing only one force value) (PR #4019)}
[ERROR] [SceneLoaderXML] Node initialization failed.
[INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckCollisionResponse, SceneCheckDeprecatedComponents, SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias, SceneCheckMultithreading]
[SUGGESTION] [SceneCheckMultithreading] This scene is using components implemented sequentially while a parallel implementation is available. Using the parallel implementation may improve the performances. Here is the list of sequential components in your scene and their parallel equivalent:
BVHNarrowPhase -> ParallelBVHNarrowPhase
BruteForceBroadPhase -> ParallelBruteForceBroadPhase
TetrahedronFEMForceField[Vec3d] -> ParallelTetrahedronFEMForceField[Vec3d]
[INFO] [SceneCheckerVisitor] Finished validating node "root".
[WARNING] [CollisionPipeline(CollisionPipeline1)] A ContactManager component is required to compute collision response and was not found in the current scene
[ERROR] [FileRepository] File mesh/Liver2.msh NOT FOUND in :/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa:/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa/examples:/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa:/data/Softwares/SOFA_Releases/SOFA_v24.12.00_Linux-Python_3.12/share/sofa/examples
[ERROR] [MeshGmshLoader(meshLoaderCoarse)] File: 'mesh/Liver2.msh' not found.
[ERROR] [MeshGmshLoader(meshLoaderCoarse)] Can't load file mesh/Liver2.msh
[ERROR] [TetrahedronFEMForceField(FEM)] object must have a tetrahedric topology. The component is inactivated. To remove this error message please add a tetrahedric topology component to your scene.
[ERROR] [MeshMatrixMass(MeshMatrixMass1)] Topology empty.
[WARNING] [FixedProjectiveConstraint(FixedProjectiveConstraint1)] Index 1 not valid, should be [0,1]. Constraint will be removed.
[WARNING] [FixedProjectiveConstraint(FixedProjectiveConstraint1)] Index 3 not valid, should be [0,1]. Constraint will be removed.
[WARNING] [FixedProjectiveConstraint(FixedProjectiveConstraint1)] Index 50 not valid, should be [0,1]. Constraint will be removed.
[ERROR] [ConstantForceField(ConstantForceField1)] No input force has been set. Please define one of both Data: forces or totalForce
[ERROR] [ConstantForceField(ConstantForceField1)] Size of input vector indices is zero
[ERROR] [ConstantForceField(ConstantForceField1)] Impossible to compute force from totalForce since vector indices size is zero
[ERROR] [ConstantForceField(ConstantForceField1)] Impossible to compute force from totalForce since vector indices size is zero
[ERROR] [ConstantForceField(ConstantForceField1)] Impossible to compute force from totalForce since vector indices size is zero
Some first hints:
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to have a mah model and an obj model. The obj model can be moved with my mouse operations or key presses. When the obj model moves and collides with the msh model, it will produce corresponding reactions. I have consulted the course materials as shown in the picture. Due to some updates in the latest version of SOFA, this section of the SCN file cannot be used. For example, the DefaultContactManager has been affected. So I want to know where the files suitable for version 24.12 are located, because I have searched on GitHub but haven't found them.

Beta Was this translation helpful? Give feedback.
All reactions