why call the computeAccelerationsArticulatedBodyAlgorithmMultiDoft twice?

Post Reply
steven
Posts: 83
Joined: Mon Nov 05, 2018 8:16 am
Location: China

why call the computeAccelerationsArticulatedBodyAlgorithmMultiDoft twice?

Post by steven »

i don't understand why we have to call this function computeAccelerationsArticulatedBodyAlgorithmMultiDof() twice which is very time consuming,i don't think the second time is necessary if we don't set the btMultiBodyJointFeedback. any idea is appreciated, thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: why call the computeAccelerationsArticulatedBodyAlgorithmMultiDoft twice?

Post by Erwin Coumans »

Good point, the second pass is used for joint feedback (using results from the constraint solver).

We can add a check for 'body->internalNeedsJointFeedback()' around line 720 of btMultiBodyDynamicsWorld. Mind sending a patch to github?
steven
Posts: 83
Joined: Mon Nov 05, 2018 8:16 am
Location: China

Re: why call the computeAccelerationsArticulatedBodyAlgorithmMultiDoft twice?

Post by steven »

OK, i will do it asap. thanks.
Post Reply