- This topic has 3 replies, 2 voices, and was last updated 7 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Collision detection algorithm and the algorithm to calculate the feedback force.
Tagged: 32_bits, SOFA_other, Windows_7
Hi,everyone
I have q question ,I would like to know the collision detection algorithm and the calculation of the feedback algorithm, and how to achieve in SOFA .
Thank you
Hi Sen,
You have an example in the scene applications/plugins/Geomagic/scenes/Geomagic-FEMLiver.scn using a Geomagic haptic device. You will find the following collision pipieline:
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceDetection name="detection" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="0.15" contactDistance="0.05" angleCone="0.0" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="1000"/>
and the object on which you wan to have force feedback will be like
<Node name="Instrument" >
<EulerImplicitSolver name="ODE solver" rayleighStiffness="0.05" rayleighMass="1.0" />
<CGLinearSolver name="linear solver" iterations="25" tolerance="1e-10" threshold="10e-10" />
<MechanicalObject name="instrumentState" position="@GeomagicDevice.positionDevice" template="Rigid" />
<UniformMass name="mass" totalmass="0.005" />
<LCPForceFeedback activate="true" forceCoef="0.005"/> <!-- ADDED : Compute a force-feedback for the device -->
<UncoupledConstraintCorrection/>
</Node>
Hope this helps.
Hugo
Hi,
There are formulas or documents to how to explain or calculate it ?
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.