Home › Forum › SOFA › Using SOFA › [SOLVED] Problem when running SoftRobots tutorial
Tagged: 64_bits, Linux_ubuntu, Plugin_SoftRobots, SOFA_other, softrobots
- This topic has 12 replies, 7 voices, and was last updated 3 years ago by Hugo.
-
AuthorPosts
-
2 July 2019 at 11:45 #13886nickljBlocked
After I build SOFA from scratch together with SoftRobots and STLIB plugins (all master branch on the date of July 2), I met some problem when running the tutorial case located in SoftRobots/docs/tutorials/CableGripper/details
$ runSofa cablegripper.pyscn
The program can run, and the main sofa window can appear. However, there is ERROR information as:[ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find edge 0 [28, 77] in triangle 0 [ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find edge 0 [28, 77] in triangle 0 [WARNING] [TetrahedronSetTopologyContainer(container)] TrianglesAroundEdge buffer can't be created as EdgesInTriangle buffer creation failed. [ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find triangle 0 [140, 113, 125] in tetrahedron 0 [ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find triangle 0 [140, 113, 125] in tetrahedron 0 [WARNING] [TetrahedronSetTopologyContainer(container)] TetrahedraAroundTriangle buffer can't be created as trianglesInTetrahedron buffer creation failed. [WARNING] [CableConstraint(CableConstraint)] An old implementation of CableConstraint was not allowing negative force. This is now possible. However, to limit the force to be strictly positive you now have to set minForce=0.
The same information repeated 3 times as there are three fingers. I found this seems to be the problem when SOFA read vtk meshes. Then I use gmsh to convert the .vtk mesh to .msh format (only support version 2, but not version 4), and change volumeMeshFileName to the msh file. Then the error disappears.
Then, no matter use vtk file (with errors), or use msh file (without errors), the gripper can correctly move, but cannot use ctrl+ to grasp. The fingers can interact with brick, but just directly penetrate the plate surface.
Sorry for all these chaos information. Some of them maybe caused by SOFA, some of them maybe caused by SoftRobots/STLIB, or may because I still did not setup the software correctly. So would appreciate if anyone may help me to figure it out.
9 July 2019 at 16:29 #13922HugoKeymasterHey @nicklj
I am no expert from SoftRobot, but I just poked the SoftRobot devs! The community should get back to you!
CheersHugo
3 August 2019 at 20:34 #14058Damien MarchalBlockedHi @nicklj, hi hugo,
I will add that to my todo list.
4 January 2021 at 00:07 #18099twxuBlockedHi @nicklj, @Damien Marchal,
Sorry to add to an old post, but I am experiencing the same issue (after updating SOFA from v19.06 to v20.12). I see the exact same warning messages, but the scene still appears to work as it did before (using .VTK files).
Any updates on why these error messages appear?
11 January 2021 at 20:19 #18185HugoKeymasterDear @twxu
I would guess that your mesh has some issue (maybe duplicated edge). Could you check this ?
Best,Hugo
11 January 2021 at 23:56 #18194twxuBlockedHi @Hugo,
Is there a way to check that inside SOFA? It seems ok when opened in Gmsh.
I’m also confused by this error because I only saw it appear after switching to v20.06 (the same scene opened in v19.06 did not show these errors).14 January 2021 at 10:13 #18214HugoKeymasterThese checked were added by @epernod.
Could you confirm us Erik that these errors (see first post) come from issues in the mesh? could you tell us more?Hugo
14 January 2021 at 11:46 #18216epernodBlockedhi,
yes I saw that as well. Indeed the mesh file used in this tutorial need some cleanup. The errors notify that some topological element are not created but in this mesh they correspond to duplicated elements. This is not affecting the tutorial behavior.
I’ll clean it up when I have 2 mins.
best,
22 January 2021 at 20:23 #18378beichunBlockedHi,
I’m also having the same problem. Would like to hear any update! Is the mesh updated @epernod ?25 January 2021 at 02:55 #18382beichunBlockedProblem solved 🙂
I managed to convert the mesh, by converting the finger.stl to finger.msh using gmsh (needed to use format version 2, the default version 4 doesn’t work).5 February 2021 at 10:05 #18518HugoKeymaster17 October 2021 at 11:45 #20630ShaswatBlocked@beichun could you share the .msh file you created. The msh file created by converting stl to msh using Gmsh is having some errors.
If you could share the file you created, it would be helpful.
Regards
Shaswat Garg17 October 2021 at 21:30 #20632 -
AuthorPosts
- You must be logged in to reply to this topic.