What are the differences between GenericConstraintSolver and LCPConstraintSolver ? #5000
Replies: 1 comment 1 reply
-
Hello ! Both ( In SOFA usually, constraint solving is defined by the constraint itself, e.g. a For the force feedback side, the Finally, it would really easier to help you if we could get access to the scene files to see the components and parameters that you used. If you provide them I could try to give you more insight before you need to modify the source code. Hope that helped you ! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying the Geomagic plugin and have an unstable behaviour caused by the
LCPConstraintSolver
on the scene Geomagic-DeformableCubes.scn. The initial contact force can reach10N
, while when using theGenericConstraintSolver
it is only around0.5N
.The other difference that I notice when using one or the other is that with
GenericConstraintSolver
the feedback force is updated only when SOFA can compute the deformations and stays constant in between, whileLCPConstraintSolver
always returns an estimation of the force based on the position and the last scene computed.I'm trying to understand what changes between the two solvers to see how I could improve my haptic feedback when SOFA runs at low fps.
Where can I find the differences between them ? In the documentation they are described almost identically;
A Generic Constraint Solver using the Linear Complementarity Problem formulation to solve Constraint based components
A Constraint Solver using the Linear Complementarity Problem formulation to solve BaseConstraint based components
while Factorize ConstraintSolvers #3148 mentions that the generic solver is used for non linear problems.
Here are the two behaviour with
GenericConstraintSolver
andLCPConstraintSolver
showing the instability in the second caseDeformableCubesGeneric.mp4
DeformableCubesLCP.mp4
Beta Was this translation helpful? Give feedback.
All reactions