OpenSim - Combination between fatigable muscle and tugofwar controller

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Morgane Garaudet
Posts: 3
Joined: Tue Mar 01, 2022 4:13 am

OpenSim - Combination between fatigable muscle and tugofwar controller

Post by Morgane Garaudet » Mon Apr 25, 2022 7:23 am

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
Attachments
error.PNG
error.PNG (9.42 KiB) Viewed 181 times

Tags:

User avatar
Morgane Garaudet
Posts: 3
Joined: Tue Mar 01, 2022 4:13 am

Re: OpenSim - Combination between fatigable muscle and tugofwar controller

Post by Morgane Garaudet » Fri Apr 29, 2022 6:36 am

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

POST REPLY