-
Francois replied to the topic ComputationTimes and batch in the forum Using SOFA 1 month, 3 weeks ago
-
Francois replied to the topic ComputationTimes and batch in the forum Using SOFA 1 month, 3 weeks ago
Hi @jnbrunet,
I don’t get the timer output in batch mode with the default scene too. I get the other kinds of output though, like the ones you get by setting
printLog = 1
in various components.Tomorrow I’ll try to investigate if the program reaches
TimerData::print()
, which is where the timer output seems to be printed.François
-
Francois replied to the topic ComputationTimes and batch in the forum Using SOFA 1 month, 3 weeks ago
Hi @jnbrunet,
Yes, I included an integer for the sampling frequency. It only prints the times when using the gui. Whenever I add
-g batch
, the times are not printed. Is it normal?Also, is
--computationTimeOutputType json
orljson
supposed to write the times in a file? I can’t find the location of these files, or rather they are created at all.Francois
-
Francois started the topic ComputationTimes and batch in the forum Using SOFA 1 month, 3 weeks ago
Hi!
I’m trying to get the computation times with the runSofa argument ‘–computationTimeSampling’ in batch mode. It works well with the GUI where the times print on the stdout, but in batch mode (with ‘-g batch’) the times are not displayed. Is there a way to print the computation times in batch?
I tried to change the output type…[Read more]
-
Francois replied to the topic Continuous collision detection in the forum Programming with SOFA 4 months, 3 weeks ago
Hi @wzdy4444
I’ve been working on a collision algorithm for a simulation developed at my university. I’m not certain if Sofa has an implementation of continuous collision detection, but there is ways to integrate one with the freeAnimationLoop and the free positions. The part I’ve been struggling with is the response, where I try to use the…[Read more]
-
Francois replied to the topic Continuous collision detection in the forum Programming with SOFA 5 months, 2 weeks ago
Hi @hugo,
Sorry for the late reply. I didn’t work on this since July. I had not made progress in preventing objects to penetrate each others using constraints for collision response.
I’ll try to dive more into the theory and math of the solvers, Lagrange multipliers and constraints. I think I need this to understand the code. However, I’m…[Read more]
-
Francois replied to the topic Continuous collision detection in the forum Programming with SOFA 8 months, 1 week ago
Hi @hugo,
I saw that that the documentation improved a lot over the last few months. Thanks for all the work on this!
So far I made a discrete collision detection algorithm based on spatial subdivision that works well with the correct numerical settings (time step, alarm and contact distance). Now, I’m trying to adapt it to handle continuous…[Read more]
-
Francois replied to the topic Continuous collision detection in the forum Programming with SOFA 8 months, 2 weeks ago
Hi @hugo,
Sorry for the late reply. It looks like I don’t receive emails anymore when my messages are answered.
I made some progress in the last few weeks. I understood some things about how the freeAnimationLoop and the free positions work. I’m using the freeAnimationLoop with the LCPConstraintSolver. However, I don’t fully understand the math…[Read more]
-
Francois started the topic Continuous collision detection in the forum Programming with SOFA 9 months, 2 weeks ago
Hi,
I wrote an algorithm for continuous collision detection. I would like it to work with constraints for the collision response. I’m having some difficulties understanding how to get this to work in Sofa.
I calculate the time and coordinate of contact between the two collision elements, but whatever I pass to the detectionOutputVector, the…[Read more]
-
Francois replied to the topic Creating custom CollisionModel components in the forum Programming with SOFA 1 year ago
Hi Hugo,
Thanks for the reply. I added the relevant classes in https://github.com/FrancoisLeonard/SOFA_Custom_CollisionModels. There’s also a scene and its output in output.txt.
I’m mostly interested in solving the error:
[ERROR] [DefaultContactManager(collision response)] Contact default between ScytherPointCollisionModel and…
[Read more] -
Francois started the topic Creating custom CollisionModel components in the forum Programming with SOFA 1 year, 1 month ago
Hi,
I’m trying to create a new collision detection method in a plugin. I’m want to create new CollisionModel components, but I can’t get them to work with the collision response in Sofa. Is it possible to create custom collisionModels? If it is, what do I need to do for Sofa to use them?
At the moment, they are almost exact copies of…[Read more]
-
Francois replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 5 months ago
Hi Hugo,
I will try again with LocalMinDistance.
For the rest_position, I was referring to your previous suggestion to impose the displacement on the rest_position and to add a RestShapeSpringForceField, rather then using LinearMovementConstraint. With what component can I do that?
Thanks,
François
-
Francois replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 5 months ago
Hi @hugo,
Sorry for the late reply. Why do you not advise to use DiscreteIntersection? In my scene, many objects are very close to each other. With proximity intersections, I haven’t been able to set the contact distance small enough so that the objects are not in collision from the start and yet have realistic looking collisions.
Also, how can…[Read more]
-
Francois replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 5 months ago
Hi,
The displacement is only imposed on one object. I don’t understand why the other object doesn’t deform or get pushed by it. I will try the RestShapeSpringForceField to see what it does.
Meanwhile, I’ve put a simplified scene here.
Thank you,
Francois
-
Francois started the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 6 months ago
Hi,
I’m trying to create a scene in Python where an instrument enter in collision with another object by following a predetermined path. I am using Discrete Intersections and the LinearMovementConstraint component to control the trajectory of the instrument.
However, the collision response doesn’t work. The intersections seems to be drawn…[Read more]
-
Francois replied to the topic Error compiling with CUDA plugin in the forum Building SOFA 1 year, 9 months ago
I tried to build the master branch, but I get several instances of
In file included from /home/franc/sofa/src/SofaGeneral/../modules/SofaDenseSolver/NewMatMatrix.h:29:
/home/franc/sofa/src/modules/SofaDenseSolver/NewMatVector.h:28:10: fatal error:
'newmat/newmatio.h' file not foundI will try to cherry pick all changes in the SofaCUDA…
-
Francois replied to the topic Error compiling with CUDA plugin in the forum Building SOFA 1 year, 9 months ago
Hi Hugo,
Thanks for the help. With the commit fixing the issue, the code compiles, but runSofa crashes when starting. Here is the trace:
########## SIG 6 - SIGABRT: usually caused by an abort() or assert() ##########
[Read more]
-> /home/franc/sofa/build/install/bin/../lib/libSofaHelper.so.18.12.00(sofa::helper::BackTrace::dump()+0x20) [0x7f864c6874b0]
->… -
Francois started the topic Error compiling with CUDA plugin in the forum Building SOFA 1 year, 9 months ago
Hi,
I’m getting compilation errors when compiling SOFA v18.12 with the CUDA plugin on Linux. From the file CudaStandardTetrahedralFEMForceField.cu lines 353 and 580, it says that the identifiers “StandardTetrahedralFEMForceFieldCuda_BoyceAndArruda_deriveSPKTensor” and “StandardTetrahedralFEMForceFieldCuda_BoyceAndArruda_ElasticityTensor” are…[Read more]
-
Francois started the topic Multiple objects in a .obj file in the forum Using SOFA 1 year, 10 months ago
Hi,
I have an .obj file which includes multiple objects’ surface meshes. I would like to create different SOFA objects with them since they have different physical properties and probably needs different models (some are rigid and other deformable).
Is it possible to create a scene with this file, or do I need to split it in multiple .obj files?…[Read more]
-
Francois became a registered member 1 year, 10 months ago