Hello everyone,
I am currently working on the "Afferents09" project. I want to make it run on opensim 4.3. To do that, I made a few changes to the initial programm. But I still got issues concerning the architecture of the programm. That's why I am asking for your help.
I have implemented three classes Spindle, Golgi tendons and a muscle : Millard with afferents. To create the model, I first tried to use the fonction extendConnectToModel to connect all three component like it was made for opensim 3.3. But with this technic I couldn't initialize the model.
So I made some researchs and found three different methods. I would like your opinion on those.
- First, I discovered the class Socket with the fonctions connectee, it seemed to be another way of connecting components. But to use it I was wondering if the components needed to be derivates from both Socket and ModelComponent classes.
- Or I am thinking about making the spindle and the golgi tendons subcomponents from the muscle.
- The last idea comes from an article, you can found a picture describing the architecture used. I based myself on it and create the following programm : https://github.com/momo99-30/Afferents09-OpenSim4
I made all three classes running in parallel and added them in the model with the fonction addComponent for the spindle and the golgi tendons and I used addForce for the muscle. But I still got issues when I try to use RungeKutta, so I believe my architecture isn't quite right yet.
Do you believe one of those architecture is better than the others? And if so, do you havee any idea why RungeKutta isn't working?
Thanks in advanced for your help,
Morgane
Project Afferents09 Opensim4
- Morgane Garaudet
- Posts: 3
- Joined: Tue Mar 01, 2022 4:13 am
Project Afferents09 Opensim4
- Attachments
-
- Spindle-golgi-controller.PNG (187.04 KiB) Viewed 132 times
Tags: