Search found 53 matches

by Colin Smith
Thu Mar 07, 2024 2:26 pm
Forum: OpenSim
Topic: Exporting data from Noraxon IMU system in a format compatible with OpenSim
Replies: 2
Views: 254

Re: Exporting data from Noraxon IMU system in a format compatible with OpenSim

You can read a .csv into MATLAB, then use the MATLAB OpenSim interface to process the data in MATLAB directly, or to write .mot files you can read with OpenSim. In our Noraxon Ultimum system you can also export .mat files, which are even easier to read into MATLAB. This could all be done with python...
by Colin Smith
Sat May 14, 2022 9:04 am
Forum: OpenSim
Topic: Removing a body from the model
Replies: 2
Views: 482

Re: Removing a body from the model

Hopefully someone has a better answer for you... I'm not sure if a solution has been implemented recently. I have found the API is well designed for adding components to models, but not as streamlined for removing components. In the "Set" class there is a function "remove" that works... sometimes (i...
by Colin Smith
Wed May 04, 2022 4:15 pm
Forum: OpenSim
Topic: How to "not control" a joint/coordinate
Replies: 2
Views: 457

Re: How to "not control" a joint/coordinate

controller->setActuators( osimModel.updActuators() ); Here, osimModel.updActuators() is giving a list of all the actuators in the model to the controller. Trying using osimModel.updForceSet().get('actuator_name') to input only the actuators you want to control. Otherwise, as long as a coordinate is ...
by Colin Smith
Fri Feb 18, 2022 12:29 pm
Forum: OpenSim
Topic: Change scapulothoracic joint properties in the Thoracoscapular model
Replies: 11
Views: 1153

Re: Change scapulothoracic joint properties in the Thoracoscapular model

Hi Felix, scap = myModel.getJointSet().get("scapulothoracic") returns a generic object of type "Joint" you can downcast this to the specific type of joint, since you know the type from the model file. scap_joint = ScapulothoracicJoint.safeDownCast(scap); now there will be all the ScapulothoracicJoin...
by Colin Smith
Fri Feb 18, 2022 12:20 pm
Forum: OpenSim
Topic: Explorer very slow
Replies: 5
Views: 854

Re: Explorer very slow

Are you loading the same files on both computers?

Is the file saved locally? If the file is large (ie geometry files in .osim or .sto files with lots of results) and on a network drive, it can take a long time to load.
by Colin Smith
Mon Mar 01, 2021 4:29 am
Forum: OpenSim
Topic: How to export ligament length from opensim directly?
Replies: 2
Views: 435

Re: How to export ligament length from opensim directly?

If you are using the existing Ligament component, you can use the getLength (const SimTK::State &s) function.

https://simtk.org/api_docs/opensim/api_ ... ament.html
by Colin Smith
Mon Mar 01, 2021 4:27 am
Forum: OpenSim
Topic: How to export ligament length from opensim directly?
Replies: 2
Views: 435

Re: How to export ligament length from opensim directly?

https://simtk.org/frs/?group_id=91 If you install the OpenSim 4.2 beta, there is a new component called the Blankevoort1991Ligament. This component has an output called "length" You can find an example of the xml structure here (or in Help->XML Browser in OpenSim 4.2 GUI): https://github.com/clnsmit...
by Colin Smith
Mon Feb 22, 2021 6:19 am
Forum: OpenSim
Topic: Prescribed Controller with Static Optimization
Replies: 4
Views: 912

Re: Prescribed Controller with Static Optimization

I know that all controllers are turned off in the source code of the static optimization tool, so there is currently no way to use a controller within static optimization through the GUI in any version. https://github.com/opensim-org/opensim-core/blob/master/OpenSim/Analyses/StaticOptimization.cpp#L...
by Colin Smith
Mon Feb 22, 2021 1:55 am
Forum: OpenSim
Topic: Hide Ellipsoid Joint in GUI
Replies: 4
Views: 422

Re: Hide Ellipsoid Joint in GUI

OpenSim 4.2 GUI image now attached
by Colin Smith
Mon Feb 22, 2021 1:52 am
Forum: OpenSim
Topic: Hide Ellipsoid Joint in GUI
Replies: 4
Views: 422

Re: Hide Ellipsoid Joint in GUI

Thanks for the info Ayman. I have attached a screen shot from the 4.2 beta If I right click on "Joints" there is a hide/show option for all joints. But this does not affect the ellipsoid visualization though. Under the EllipsoidJoint "trunk_to_scapula", there are not any options to control the visua...