Search found 53 matches

by Colin Smith
Fri Feb 19, 2021 8:12 am
Forum: OpenSim
Topic: Hide Ellipsoid Joint in GUI
Replies: 4
Views: 462

Hide Ellipsoid Joint in GUI

When I add an ellipsoid joint to a model, the corresponding ellipsoid is displayed (solid blue) in the gui. Is there a way to hide/change the display properties of this ellipsoid?
by Colin Smith
Thu Feb 18, 2021 9:45 am
Forum: OpenSim
Topic: Prescribing acceleration of a coordinate
Replies: 1
Views: 270

Re: Prescribing acceleration of a coordinate

I haven't looked in detail at the implementation of Prescribed Coordinates, so I am not sure... but as far as I know you can only prescribe position. I think you might be able to solve your issue by resetting the speeds of your prescribed coordinates in the state at the beginning of each cycle. Righ...
by Colin Smith
Thu Sep 17, 2020 12:19 pm
Forum: OpenSim
Topic: Working with/editing VTP geometry files
Replies: 6
Views: 530

Re: Working with/editing VTP geometry files

https://www.paraview.org/Wiki/Beginning_Filters

You can use the clip filter in Para view to cut geometries ^.

A couple other mesh editing softwares listed here:
https://github.com/clnsmith/opensim-jam ... ting-tools
by Colin Smith
Thu Jun 25, 2020 9:52 am
Forum: OpenSim
Topic: RMS errors of scaling for each Marker/Scaling 6 DoFs knee model
Replies: 2
Views: 359

Re: RMS errors of scaling for each Marker/Scaling 6 DoFs knee model

I'm not sure about a nice solution for the first question through the API. For the second question, the scale tool is essentially performing inverse kinematics for your input .trc marker data. So an optimization is being solved to calculate the joint angles that pose the model to minimize the errors...
by Colin Smith
Thu Jun 25, 2020 8:58 am
Forum: OpenSim
Topic: find all references to a component in a model
Replies: 1
Views: 186

find all references to a component in a model

Hi, I am removing a CustomJoint from my model and replacing it with a new PinJoint, using model.updJointSet().remove(joint); When I remove the CustomJoint, the coordinates are accordingly removed, but this causes problems if other components depend on the removed coordinates. In this example, I have...
by Colin Smith
Thu Jun 25, 2020 8:48 am
Forum: OpenSim
Topic: Basic Model Measurements
Replies: 1
Views: 261

Re: Basic Model Measurements

Easiest way I can think of is to use the gui to add markers to the model and adjust their placement so that are located over the boney landmarks of interest. If you attach them all to the ground body, then you can save the markerset to a file, and it will contain the x,y,z positions of each of the b...
by Colin Smith
Tue Apr 28, 2020 2:25 am
Forum: OpenSim
Topic: How to get Multipliers of Static Optimization?
Replies: 7
Views: 643

Re: How to get Multipliers of Static Optimization?

Sounds like the state might only realized to the position stage.

Try running this line before accessing the multipliers.

model.realizeVelocity(state)
by Colin Smith
Thu Jan 24, 2019 8:27 am
Forum: OpenSim
Topic: osimTableFromStruct(markerStruct)
Replies: 1
Views: 242

Re: osimTableFromStruct(markerStruct)

I think the forum community can be helpful for you if you clarify exactly what errors you are getting and/or upload the code and input files you are having issues with.

This might be helpful for you:
https://github.com/opensim-org/opensim-core/issues/2389
by Colin Smith
Thu Jan 10, 2019 8:57 am
Forum: OpenSim
Topic: Scaling using Python API
Replies: 12
Views: 1912

Re: Scaling using Python API

I have gotten a similar error to the first example you show. This likely means that the tool cannot find your generic model. check scaleTool.getPathToSubject(). I think this gets set to the directory where your scale tool setup file is located. This path gets appended to the generic model file in th...
by Colin Smith
Wed Jan 09, 2019 10:25 am
Forum: OpenSim
Topic: Scaling using Python API
Replies: 12
Views: 1912

Re: Scaling using Python API

"C:\OpenSim 4.0\resources\Code\GUI\runScaling.py"

Check out that file in the Resources folder that comes with OpenSim 4.0