Thank you Nick! I'm able to get forces that way. I'll just need to work through getting the position of the contact elements now to work out GRF position
Delyle
Search found 12 matches
- Wed Nov 09, 2022 9:54 am
- Forum: OpenSim Moco
- Topic: Extract individual contact forces and positions from Moco solution
- Replies: 13
- Views: 3668
- Mon Nov 07, 2022 8:35 am
- Forum: OpenSim Moco
- Topic: Extract individual contact forces and positions from Moco solution
- Replies: 13
- Views: 3668
Extract individual contact forces and positions from Moco solution
I have a rimless wheel model with many contact elements. I want to extract the contact forces from these individual elements and visualize them in the GUI. Is there a function in Moco that can do this? I've tried using the opensimMoco.createExternalLoadsTableForGait, but this creates a single vector...
- Wed Sep 21, 2022 8:38 am
- Forum: OpenSim
- Topic: manager.getStatesTable and osimTableToStruct is very slow
- Replies: 2
- Views: 613
Re: manager.getStatesTable and osimTableToStruct is very slow
Thank you Thomas! After looking through the examples, I got the StatesTrajectoryReporter to work. Now, for a 30 second simulation, writing to a table takes 0.07 seconds, and osimTableToStruct takes 1.5 seconds (a 100 fold improvement!) For posterity, here's the relevant MATLAB code using StatesTraje...
- Fri Aug 12, 2022 6:27 am
- Forum: OpenSim
- Topic: manager.getStatesTable and osimTableToStruct is very slow
- Replies: 2
- Views: 613
manager.getStatesTable and osimTableToStruct is very slow
I am running forward dynamics for a passive dynamic rimless wheel via the OpenSim API in Matlab. A big bottle neck is reading the states table from the manager, i.e. the line sTable = manager.getStatesTable() , where manager is a member of the Manager class. Another is the osimTableToStruct method, ...
- Thu Jan 27, 2022 8:45 am
- Forum: OpenSim
- Topic: OpenSim 4.3 crashes on startup after clean install
- Replies: 2
- Views: 374
Re: OpenSim 4.3 crashes on startup after clean install
Thanks Ayman, that worked! It loaded once I cleared the cache as you suggested.
I was able to reproduce the issue by reloading the two models together. However, they are "proprietary" models (not yet published). Can I send them to you privately? Or perhaps it would be enough to upload the cache?
I was able to reproduce the issue by reloading the two models together. However, they are "proprietary" models (not yet published). Can I send them to you privately? Or perhaps it would be enough to upload the cache?
- Tue Jan 25, 2022 4:52 am
- Forum: OpenSim
- Topic: OpenSim 4.3 crashes on startup after clean install
- Replies: 2
- Views: 374
OpenSim 4.3 crashes on startup after clean install
The OpenSim 4.3 GUI crashes on startup in Windows 10. This started happening today after trying to load two copies of a relatively large model. The second model didn't appear in the visualizer (a common occurance), so I closed the app and tried to open it again. Only the app crashed on startup: it h...
- Fri Dec 10, 2021 8:30 am
- Forum: OpenSim
- Topic: Clone and move wrap object in Matlab API
- Replies: 5
- Views: 1214
Re: Clone and move wrap object in Matlab API
Brilliant, that worked! Thanks Ayman.
- Wed Dec 08, 2021 4:37 am
- Forum: OpenSim
- Topic: Clone and move wrap object in Matlab API
- Replies: 5
- Views: 1214
Re: Clone and move wrap object in Matlab API
Thanks for looking into this, Axel! That code looks great for v4. OpenSim 4 added some functionality that the v3.3 API doesn't seem to have. There is no set_translation or set_xyz_body_rotation function in the WrapObject class for v3.3. I can get the translation and rotation via getTransform.T and g...
- Tue Dec 07, 2021 5:26 am
- Forum: OpenSim
- Topic: Clone and move wrap object in Matlab API
- Replies: 5
- Views: 1214
Re: Clone and move wrap object in Matlab API
I've managed to duplicate the wrap object of interest and attach it to a new body. It seems the key is to safeDownCast the wrap object from the WrapEllipsoid derived class. But I can't figure out how to move the wrap object in the script! I can access the translation and transform properties, but I ...
- Fri Dec 03, 2021 7:22 am
- Forum: OpenSim
- Topic: Clone and move wrap object in Matlab API
- Replies: 5
- Views: 1214
Clone and move wrap object in Matlab API
I have models with muscles and wrap objects on the right side, and I want to write a MATLAB script to mirror them onto the left side. I've managed to mirror the muscles but I can't figure out how to do this for the wrap objects. Using the Arm26 model as an example, let's say I wanted to clone the TR...