Search found 188 matches
- Fri Jul 12, 2024 10:55 am
- Forum: OpenSim
- Topic: Calculate the transformation matrices in a specific pose using MATLAB
- Replies: 3
- Views: 1402
Re: Calculate the transformation matrices in a specific pose using MATLAB
Hey Rodrigo! Hope you are well! After you have set the relevant state information and realized to the necessary stage you can extract the Transform as follows: bodySet = model.getBodySet(); body1 = bodySet.get('your_body'); body1Transform = body1.getTransformInGround(state); if you then want the rot...
- Fri Jun 14, 2024 10:28 am
- Forum: OpenSim
- Topic: Handling Data from 5 Force Plates
- Replies: 4
- Views: 2195
Re: Handling Data from 5 Force Plates
Hey Ali,
It looks to me as though you haven't updated the number of columns to reflect 5 force plates worth of data... it is currently at nColumns=19... time + 2*9 force plate signals... I think in your case it should be time + 5*9 - so 46.
Hope that helps.
Nicos
It looks to me as though you haven't updated the number of columns to reflect 5 force plates worth of data... it is currently at nColumns=19... time + 2*9 force plate signals... I think in your case it should be time + 5*9 - so 46.
Hope that helps.
Nicos
- Wed Mar 27, 2024 9:28 am
- Forum: OpenSim
- Topic: Creating and Adding Virtual Markers to .trc Files
- Replies: 2
- Views: 924
Re: Creating and Adding Virtual Markers to .trc Files
Hello Ali,
Have you tried the TRCFileAdapter class?
https://simtk.org/api_docs/opensim/api_ ... apter.html
Perhaps once you have read your *.trc file you then are able to update the table of markers?
Best wishes,
Nicos
Have you tried the TRCFileAdapter class?
https://simtk.org/api_docs/opensim/api_ ... apter.html
Perhaps once you have read your *.trc file you then are able to update the table of markers?
Best wishes,
Nicos
- Wed Mar 27, 2024 9:09 am
- Forum: OpenSim
- Topic: MocoParameter for multiple elements
- Replies: 2
- Views: 661
Re: MocoParameter for multiple elements
Hello Francine,
I would suggest posting your question on the dedicated Moco forum: indexPhpbb.php?group_id=1815&pluginname=phpBB
Best wishes,
Nicos Haralabidis
I would suggest posting your question on the dedicated Moco forum: indexPhpbb.php?group_id=1815&pluginname=phpBB
Best wishes,
Nicos Haralabidis
- Wed Mar 27, 2024 9:04 am
- Forum: OpenSim
- Topic: How to generate Storage in Python
- Replies: 3
- Views: 737
Re: How to generate Storage in Python
Hello Sebastien, storage.setColumnLabels takes a String Array as input: https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1Storage.html#a9f2c1a44e4293790f4aeb24c9edbe51a So you need to create a string array for your column labels like so (in Matlab): col_labels = ArrayStr(); col_labels.set(...
- Wed Mar 06, 2024 10:44 am
- Forum: OpenSim
- Topic: Tracking marker position
- Replies: 4
- Views: 722
Re: Tracking marker position
Hello Krishna, It looks like you have the coordinates/motion file based on your attachment in the previous post - great! Have your model loaded in the OpenSim GUI, then go Tools -> Analyze... in the input space select Motion and From File, select your motion file. At the top then go to Analyses, at ...
- Mon Mar 04, 2024 4:22 pm
- Forum: OpenSim
- Topic: How can I extract muscle activations after static optimization?
- Replies: 3
- Views: 875
Re: How can I extract muscle activations after static optimization?
I see I see. You could write your own implementation of static optimization based on the tutorial here to avoid having to load the file as you say: https://simtk-confluence.stanford.edu:8 ... +in+MATLAB
Best wishes,
Nicos
Best wishes,
Nicos
- Mon Mar 04, 2024 11:20 am
- Forum: OpenSim
- Topic: How can I extract muscle activations after static optimization?
- Replies: 3
- Views: 875
Re: How can I extract muscle activations after static optimization?
Hey Riza,
After you run each StaticOptimization you should get an output file (*.sto) which contains the muscle activations for each muscle. You can load in that file and then perform your preferred analysis.
Hope that helps!
Best wishes,
Nicos
After you run each StaticOptimization you should get an output file (*.sto) which contains the muscle activations for each muscle. You can load in that file and then perform your preferred analysis.
Hope that helps!
Best wishes,
Nicos
- Mon Mar 04, 2024 11:11 am
- Forum: OpenSim
- Topic: Adding an accelerometer to the femur
- Replies: 7
- Views: 1645
Re: Adding an accelerometer to the femur
This is somewhat of a minimum working example for adding an IMU to the femur_r using Matlab scripting... assuming you have already loaded your model as 'myModel': pos_vector = Vec3(0); % where you wish to position the IMU eventually in the body of interest pos_vector.setToZero(); pos_vector.set(1,-0...
- Mon Mar 04, 2024 10:29 am
- Forum: OpenSim
- Topic: Adding an accelerometer to the femur
- Replies: 7
- Views: 1645
Re: Adding an accelerometer to the femur
Hello Bas, Have you seen the IMU class? https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1IMU.html#a43a600184e05e1a5ee66f0658fa7a052 I believe you need to create a PhysicalOffsetFrame(specify the body, position and orientation), create an IMU object, connect the frame to the IMU and then c...