I am repurposing the ExoConceptTrunk_BoxLift code to apply the spring loaded exoskeleton to a new part of the body. The simulation works and I can see the exoskeleton changes the muscle activity and joint reaction forces. However, I also want to visualise the system as it does in the ExoskeletonConceptTrunk_BoxLift model. Except when I repurpose this section of the code I get:
I believe this error will occur for each of the lines below it in the AnyKinPLine section. This does not occur in the original file. Could someone please help explain the reason for this error and provide pointers to fix it? Thanks very much in advance!
I could not load your model as it needs a few other files from the model folder. However, having looked at the code, I couldn't immediately figure out anything that should be wrong as far as the error you described.
Could you attach the model folder as well, please?
Thanks Dave. I don't think I can attach a folder, so I will attach the contents of the folder.
Something just occured to me when you mentioned the model folder. I copied the exoskeleton code from inside the main file of the ExoConceptTrunk_BoxLift into my own file of the seated human. I then edited the code to apply it to the new body part of the seated human. However, I didn't bring over anything from the Model folder of the ExoConceptTrunk_BoxLift. Could this be what is missing? I explored the ExoConceptTrunk_BoxLift Model folder for any mention of "w3" etc, but couldn't find any. But maybe it is in there but I have missed it or I didn't know I was looking at it. Is copying the contents of the ExoConceptTrunk_BoxLift Model folder into my files Model folder a good idea?
The ExoConceptTrunk_BoxLift model does not really have a model folder. It uses an existing mocap model (the BVH_BoxLift model) and applies exo concept to it. All the exo related code is in the main file itself.
Could you please make a zip folder of the entire model? This should include the main file and the model folder and any other file that model needs.
The problem is due to the fact that you are not using the TLEM leg model. w3 points to Wrap3 that we create in the model on Thigh.VastusIntermedius6Node. I think the leg model that you are using does not have VastusIntermedius6Node on the Thigh segment. That is the real problem. Sometimes, the error messages can be a little bit misleading with the way the model loads and constructs the model tree, unfortunately.
The quickest solution for you would be to use TLEM2 Leg model. Otherwise, you would need to define these nodes on another reference node on the thigh instead of VastusIntermedius6Node. But maybe you would need to adjust the relative positions of these nodes. Is there any particular reason you don't want to use the TLEM 2 leg model?
I am using the rotational spring exo from the exo concept model reapplied to the upper body.
Starting the simulation by inputting in "JointsAndDrivers" file, position start of 45* flexion and then an angular velocity -45 to return to neutral position in 10 steps.
I want a movement path (extension) and then be able to increase the stiffness of the spring to reduce the muscle activity of the body to complete the set motion path.
With my attempts so far with certain low spring stiffnesses it reduces the extensor muscle activity and joint reaction forces, however at slightly higher stiffnesses it increases these measures. This is counter intuitive. For a strong result, I would expect greater stiffness to reduce muscle activity by a greater amount. I think I must be doing something not quite right.
I am applying the spring at the T1C7 joint.
Is there something I should change about this model set up so I can achieve the analysis/result I laid out? In JointsAndDrivers?
I have briefly looked at your model. I think you are talking starting the head in a 45 degree flexed position and moving it with extension velocity.
I would suggest you can try applying the stiffness on the same measure that you are using to drive the movement of the head. This way you can also use the position of this measure to modulate the stiffness of the spring. When you apply a spring to a single joint like T1C7, it can be hard to understand the consequences since there are several other cervical joints all the way to C1 and the skull.