SurfacePressureConstraint question:Can't word wthile another robot work #172
-
Hi!
It worked very well and it printed the value correctly. So I tried to add it to my arm-like robot scene which has 6 cableactuators and 1 slidingactuator worked in inverse mode to find a target. But after add the ball-like robot, the arm-like robot still worked but the ball-like didn't breathe. I printed the value and sometimes it's all 0 and sometimes like:
It's not continuouse but has some regular which make the SurfacePressureConstraint flash alternately between red and green and didn‘t belly. I'm so confused about that and I wondering is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @TeoREN0217, You're right, unfortunately you can't use both So what happens is that the chosen solver tries to process all your constraints, namely What you can try is use the |
Beta Was this translation helpful? Give feedback.
Hi @TeoREN0217,
You're right, unfortunately you can't use both
GenericConstraintSolver
andQPInverseProblemSolver
at the same time.It seems that only the last constraint solver you add to your scene is taken into account.
So what happens is that the chosen solver tries to process all your constraints, namely
SurfacePressureConstraint
,PositionEffector
,SlidingActuator
, andCableActuator
, and fails.What you can try is use the
SurfacePressureEquality
component instead ofSurfacePressureConstraint
which will be understood by theQPInverseProblemSolver
as a fixed constraint. Sorry there's definitively room from improvement here.