-
jnbrunet replied to the topic ComputationTimes and batch in the forum Using SOFA 3 months, 1 week ago
Hey @fleonard,
If I remember correctly, the computationTimeSampling option requires an integer and will set the frequency (in number of steps) at which the computation times are printed. For example, setting
runSofa -g batch -computationTimeSampling 2
will print at every 2 steps. It is 0 by default, which means that it will never be printed.…[Read more] -
Hugo replied to the topic Continuous collision detection in the forum Programming with SOFA 6 months, 2 weeks ago
Hi @wzdy4444
@fleonard and his team in Montreal are actually pretty active on continuous collision detection. Could you tell us more Francois about your work and progresses?
For building your unit test (which are also most welcome in SOFA!), you can take a look at the Collision online doc. I hope this helps.
Best wishes,
Hugo
-
Hugo replied to the topic Continuous collision detection in the forum Programming with SOFA 7 months ago
Hi @fleonard,
I know a bit this part of SOFA, we could setup a meeting. Feel free to contact me per email. Do not forget to come back here in the forum to update about your future progresses 😉
Hugo
-
Hugo replied to the topic Continuous collision detection in the forum Programming with SOFA 9 months, 2 weeks ago
Hi @fleonard
What’s new with your continuous detection algorithm?
Regarding the last collision step, the response, it’s a part I do not perfectly master neither. But take a look at the FrictionContact class which implements thecreateResponse()
function called in the doCollisionResponse stage.Best wishes,
Hugo
-
Hugo replied to the topic Continuous collision detection in the forum Programming with SOFA 9 months, 4 weeks ago
Hi @fleonard
Good to read.
I hope the documentation on the AnimationLoop helped.
As you might have noticed, the documentation on Collision has improved a bit.For the FreeAnimationLoop and the Lagrange multipliers approach did you pay attention to the doc page?
Defining the numerical setting for collision detection is complex. You need to use a…[Read more]
-
Hugo replied to the topic Creating custom CollisionModel components in the forum Programming with SOFA 1 year, 2 months ago
Hey @fleonard
I am sorry for this late reply.
That’s an interesting and challenging objective. I am no expert of the collision detection pipeline however.Could you share your code on any GitHub repo ?
I will discuss with experts next week and get back to you.Best
Hugo
-
Hugo replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 6 months ago
Hi @fleonard
To work with the approach involving the RestShapeSpringForceField, you could simply pass these rest positions to the MechanicalObject at the init (from a loader) like :
[Read more]
<MeshObjLoader name="undeformed" filename="mesh1.obj"/>
<MeshObjLoader name="deformed-targetConfiguration" filename="mesh2.obj"/>
<MechanicalObject name="Dofs"… -
Hugo replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 6 months ago
Hi @fleonard
No prob. LocalMinDistance actually inherits from DiscreteIntersection but has a more complete implementation (e.g. of all intersections between discrete primitives to compute). You can see this here in the API doc.
If your objects are not in contact, you should be able to find a value of alarm and contact distance which satisfies…[Read more]
-
Hugo replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 7 months ago
Hi @fleonard
I do not advise to use DiscreteIntersection for the detection but rather the LocalMinDistance (or MinProximityIntersection) as shown below:
self.rootNode.createObject("LocalMinDistance", name="Intersection", alarmDistance="0.3", contactDistance="0.1", useLMDFilters="0")Best
Hugo
-
Hugo replied to the topic Collisions and LinearMovementConstraint in the forum Using SOFA 1 year, 7 months ago
Hi @fleonard
Could you share your scene with us? (link to a github/wetransfer ..)
Since you are imposing the displacement (using the LinearMovementConstraint), the simulation will make sure this constraint is respected even if the object collides with others. Therefore the result is logical and it is working properly.
To work what you expect, a…[Read more]
-
Hugo replied to the topic Error compiling with CUDA plugin in the forum Building SOFA 1 year, 10 months ago
Hi @fleonard
This looks strange to me.
What is your CMake-gui output when configuring?
Is there anything related to newmat?Hugo
-
Hugo replied to the topic Error compiling with CUDA plugin in the forum Building SOFA 1 year, 10 months ago
Hi @fleonard
I think many fixes were actually done on Cuda since v18.12.
Regarding the information-less trace, I would rather go for using the master branch or cherry-picking all changes in the SofaCUDA plugin in master since v18.12.Afterwards, let us know whether you still have exec errors.
Best wishes,Hugo
-
Hugo replied to the topic Error compiling with CUDA plugin in the forum Building SOFA 1 year, 10 months ago
Hi @fleonard
You are right, compiling the sources of the SOFA release v18.12 with the SofaCUDA plugin activated fails. The error has been fixed since then in the master branch. The release v19.06 (released this June) will include this fix.
To get it working with your v18.12 sources, you can pick the commit fixing your issue. To do so, here are…[Read more]
-
Hugo replied to the topic Multiple objects in a .obj file in the forum Using SOFA 2 years ago
Hi @fleonard
Welcome on the SOFA forum!
If you want different object to have different physical properties, it’s compulsory to have separate meshes. BestHugo