Search found 135 matches

by Hide Kimpara
Mon Jun 25, 2018 3:25 pm
Forum: OpenSim
Topic: Importing .stl file
Replies: 4
Views: 592

Re: Importing .stl file

Changing it to 0.005 0.005 0.005 make it look reasonable with coordinate axis of opensim. I don't know what is "coordinate axis" you said. But you can visualize dimensions in OpenSim environment using any points or markers on GUI. Also you may mind OpenSim uses "meter" as length unit. Thank you, Hide
by Hide Kimpara
Fri Jun 22, 2018 8:37 pm
Forum: OpenSim
Topic: API: Loading model states from an Inverse Kinematics motion file
Replies: 2
Views: 571

Re: API: Loading model states from an Inverse Kinematics motion file

Hopefully, following example based on MATLAB may give you some hints: osimModel = Model('model.osim'); osimState = osimModel.initSystem(); % Read IK post data Des_StoreData = Storage(IK_output_file); Des_Time = ArrayDouble(); Des_Size = Des_StoreData.getTimeColumn (Des_Time); for i = 1:num_Coordinat...
by Hide Kimpara
Fri Jun 22, 2018 5:17 pm
Forum: OpenSim
Topic: Issue with coupled coordinate
Replies: 0
Views: 231

Issue with coupled coordinate

Hello, I used recent compiled OpenSim 4.0 from source (version 4.0, build date 14:29:51 Jun 6 2018). Then, I found an important issue on angular displacement with coupled coordinate. I posted similar issues on GitHub (https://github.com/opensim-org/opensim-core/issues/2208). I prepared two sample fi...
by Hide Kimpara
Fri Jun 22, 2018 3:35 pm
Forum: OpenSim
Topic: Importing .stl file
Replies: 4
Views: 592

Re: Importing .stl file

Could you check the scales around the visual object? There are two scale factors: 1) under <VisibleObject> and 2) under <DisplayGeometry>.
by Hide Kimpara
Fri Jun 08, 2018 12:13 pm
Forum: OpenSim
Topic: Step by step integration
Replies: 5
Views: 522

Re: Step by step integration

Hello Andrew, manager.initialize(state) state = manager.integrate(0.1) state.setTime(0) state = manager.integrate(0.1) # I believe that the manager.integrate is always based on the current state As you thinking, manager.integrate starts from current state time. Therefore, this mentioned code looks l...
by Hide Kimpara
Tue May 15, 2018 12:06 pm
Forum: OpenSim
Topic: clear import org.opensim.modeling.* in MATLAB
Replies: 3
Views: 161

Re: clear import org.opensim.modeling.* in MATLAB

Hi Chris, Thank you for your prompt responses. I see the clear of org.opensim.modeling.* cannot become any solutions for us. But it's tough to understand why MATLAB uses so much huge runtime RAM memory although any storage for force or bodykinematics were not enabled. Probably, I may think another s...
by Hide Kimpara
Tue May 15, 2018 11:01 am
Forum: OpenSim
Topic: clear import org.opensim.modeling.* in MATLAB
Replies: 3
Views: 161

clear import org.opensim.modeling.* in MATLAB

Hello, I found runtime memory of MATLAB increased so much during OpenSim simulation. When I had some simulations until 10 s of problem time, MATLAB occupied RAM more than 10 GB(!). I made clear command for all variables with relatively large arrays. But the situations have not been improved so much....
by Hide Kimpara
Fri May 04, 2018 8:07 am
Forum: OpenSim
Topic: setInFrame for JointReaction
Replies: 4
Views: 515

Re: setInFrame for JointReaction

Hello Tom,

I got parent frame name as this:

Code: Select all

osimModel.getJointSet().get(i).getParentFrame().findBaseFrame().getName()
But I don't know why the outputs are different between "Base" and "Pin_Joint/Base_offset" setInFrames.

Thank you,
Hide
by Hide Kimpara
Fri May 04, 2018 7:33 am
Forum: OpenSim
Topic: setInFrame for JointReaction
Replies: 4
Views: 515

Re: setInFrame for JointReaction

Hello Tom, Thank you for your suggestion! I appreciate your helps every time! Once I tried based on previous conversation https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=91&t=5135 . But I realized the definitions have been changed from 3.3 to 4.0. The model was a pendulum model modified from tu...
by Hide Kimpara
Thu May 03, 2018 4:49 pm
Forum: OpenSim
Topic: setInFrame for JointReaction
Replies: 4
Views: 515

setInFrame for JointReaction

Hello, I tried to use JointReaction with 4.0 from C++. I wrote a simple code as following: Model osimModel("PendulumJoint_type5b.osim"); SimTK::State& si = osimModel.initSystem(); JointReaction *aJointReaction = new JointReaction(); aJointReaction->setName("J_Reac_Force"); Array<std::string> jFrame(...