Forum Replies Created
-
AuthorPosts
-
1 October 2021 at 00:04 in reply to: Controlling cable by SofaPython3 from python interpreter #20469HugoKeymaster
Hey @abdelrahman2010
The fact that you get different results between SOFA from a python environment and SOFA from runSofa necessarily comes from your
main()
function (since this function is called when working from python and not called from runSofa).Indeed, you can notice that the
main()
function is adding
rootNode.addObject(TrunkController(node=rootNode))
despite the TrunkController is also defined in the
createScene()
function.
Could you try to remove this line?Best
Hugo
HugoKeymasterHi @arsalan
Is there anyway you can access 3d models of the organs you want to simulate?
Then, we could help you building the scene.Hugo
30 September 2021 at 23:13 in reply to: How to apply a force and get the feedback of the soft tissue deformation #20463HugoKeymasterHugoKeymasterHey @neriodev
First of all sorry for this very late reply.
The integration of SOFA within UE has been prototyped by @epernod from InfinyTech3D. Any interest in it or in a collaboration can be referred here.Let me know if you want to know more generally regarding the open-source project SOFA.
Best wishes,Hugo
HugoKeymasterHey @sergiopm23
Have you the STLIB plugin well loaded in the PluginManager? (and the SofaPython plugin?)
Hugo
30 September 2021 at 22:43 in reply to: Visual not updating when using with a GLFW window (ImGUI) #20460HugoKeymasterHey @brunob81hk
Sorry about this mis-solved flag!
Hey @froy could you take a look at it please?Hugo
HugoKeymasterGreat to know @christopheyberg
If you think your changes can be useful for others do not hesitate to pull-request them.
Let’s keep updated about this when the time suits you.VG
Hugo
HugoKeymasterSorry for the delay of the reply.
To get the convergence error, you can firstly use the graph to check residuals at each iteration. The LCP does not provide by default much more.
I think you can also use the printLog option to print information.However, it could be possible to modify the Gauss Seidel in it to output more, like creating data to access the information of interest. This would require modifications in LCPcalc and LCPConstraintSolver. This is no more simple way, but we could assist you in it.
Best wishes,
Hugo
27 September 2021 at 22:56 in reply to: VectorSpringForceField not working with ArticulatedSystemMapping #20431HugoKeymasterHey @brunob81hk
Sorry for replying so late but I was hoping someone else (better than me on the topic) would have answered.
I never built a simulation with a jaw model for grasping. I guess you got inspired from both the Xitact and Geomagic examples.
Without the meshes I cannot run the scene, let me know if you are willing to share them.
Could you try using :
input2="@DOFs"
?
You would have the articulated system independent from the Trex position but managing the opening/closing of the jaw. The “Trex” node in charge of following the Trex device and the VectorSpringFF connecting the two for stability.Let me know if it helps.
@epernod if you recall how to build a jaw model it is also welcome 😉Sorry for being approximated Bruno,
Hugo
23 September 2021 at 16:50 in reply to: [SOLVED] Unable to load .py scene from SoftRobot plugin #20421HugoKeymasterGreat @anthony !
If you would share some feedback when you reach your final results it would be nice : a video, a scene file or anything else would be great!Best
Hugo
HugoKeymasterDear SOFA forum,
Registration for the 2021 edition of the SOFA Week is free and open!
It’s now time:– to submit a (short as you wish) abstract to save a time slot for a presentation of your work: https://easychair.org/cfp/sws2021
– to apply for the award competition if you would like to win one of the two prices : https://www.sofa-framework.org/sofa-events/sofa-week-2021/awards/
– to mention the topic of interest you would like to address at the STC#12, and the work you achieved recently
– or simply to register for attendance!Best,
–
The SOFA Consortium staff17 September 2021 at 11:46 in reply to: Floating behaviour in soft actuators with BilateralInteractionConstraint #20370HugoKeymasterHey @asedal !
Thank you for posting your issue. I will summarize the solutions we discussed together directly:
1. It is confirmed (Chip is discussing it with the devs) that the SurfacePressureConstraint is timestep dependent and the pressure set as input has to actually be related to pressure/dt as explained in the associated GitHub issue.
2. I think you are now smoothly working with the LinearSolverCC, right ?
Do not hesitate to also update this discussion thread (and we keep in contact per email as well obviously 😉 )
Best,
Hugo
17 September 2021 at 11:46 in reply to: BilateralInteractionConstraint causes unrealistic motion #20369HugoKeymasterHi @sedal,
I just update this post.
Regarding the issue with the SurfacePressureConstraint detailed in the associated GitHub issue.
Note that the research team is also investigating convergence issues with such constraints. I will update you, it could also explain the difficulty to converge with your high-stiffnesses.
Best wishes,
Hugo
17 September 2021 at 11:46 in reply to: Surface Pressure Constraint causes unrealistic sliding #20368HugoKeymasterHi @quantanovo
Even if it took me some time, I carried on the investigation. It appears that the SurfacePressureConstraint is timestep dependent and the pressure set as input has to actually be related to pressure/dt as explained in the associated GitHub issue.
You may want to follow closely the ongoing discussion there.
Best wishes,Hugo
HugoKeymasterHi @ma1991
Thanks for your question.
Positions of an object are stored in the component MechanicalObject. This component is storing the degrees of freedom / state information: rest_position (equals to initial position if not specified), position, velocity.I would therefore recommend to access the initial position from MechanicalObject.rest_position and the current position from MechanicalObject.position. Your total displacement would therefore be: position-rest_position.
I hope this helps
Best wishes,Hugo
7 September 2021 at 14:50 in reply to: Creating an isolated environment for working with Sofa #20324HugoKeymasterHi @daserk
For such a docker topic, let me poke @younesssss for a bit of support.
Could you give a look please @younesssss ?Best
Hugo
HugoKeymasterHugoKeymasterHey @geofliu
Can you confirm us that with the v21.06 the problem is now solved?
Else I would push for working on this on the STLIB side.Best
Hugo
HugoKeymasterHugoKeymasterOla @eaparra
To have an example, you should rather take a look at the scene BeamFEMForceField.scn.
If the simulation is far away from the experiment, I would indeed check the units. To help here, I would need to see your scene. What do you give as a topology? what is the lenghth unit?
The important point with units is that they have to remain coherent: if you give as input a mesh/topology in meters and you would like to work in Newton, then your Young’s modulus is in Pa. If you give as input a mesh/topology in millimeters and you would like to work in Newton, then your Young’s modulus is in GPa. etc
In the same way, the radius of your beam must be in the same length unit than your mesh.
Best wishes,
Hugo
HugoKeymasterYou are welcome @toriwalnuss
I set the topic as solved.
I found the extract translation values by computing the size of the box bounding your mesh (dx, dy, dy) and by translating the object by (dx/2, dy/2, dy/2) you get it centered back in (0,0,0). For this I used the “Extract Cell by Region” filter from Paraview 😉Best
Hugo
HugoKeymasterhi @chiarasapo
Would you agree to share this code by making a pull-request on GitHub?
Best wishes,Hugo
24 August 2021 at 08:33 in reply to: BilateralInteractionConstraint causes unrealistic motion #20222HugoKeymasterNote that I moved your topic in the forum “Using SOFA” instead of “Announcement”.
Best,Hugo
-
AuthorPosts