Page 1 of 1

OpenSim - Combination between fatigable muscle and tugofwar controller

Posted: Mon Apr 25, 2022 7:23 am
by mgaraudet
Hello everyone,
I am working on the project Afferents09 which was made on OpenSim 3.3. I am trying to make it works on OpenSim 4.3.
To do that, I am currently trying to combine two different examples :
- MuscleExample
- ControllerExample
You can find my code here : https://github.com/momo99-30/OpenSim-Fa ... Controller, but when I use it I get the following error.

Does one of you know what could be the problem?
Thanks !

Morgane

Re: OpenSim - Combination between fatigable muscle and tugofwar controller

Posted: Fri Apr 29, 2022 6:36 am
by mgaraudet
Hi,
I solved the issue. It was caused by the call of the name "blockToGround_zTranslation" corresponding at blockToGround->getCoordinate(FreeJoint::Coord::TranslationZ).getName() but being now named "blockToGround_coord_5".
I updated the code which can be found here : https://github.com/momo99-30/OpenSim-Fa ... Controller.

Morgane