Search found 74 matches

by Hojin Song
Sun Aug 04, 2024 11:54 pm
Forum: OpenSim
Topic: Creating a ligament via C++
Replies: 3
Views: 1867

Re: Creating a ligament via C++

Hi Thomas, Thank you for your suggestion. I have tried as you suggested (if I didn't misunderstood your suggestion) as follows: // Create a new Ligament Ligament* newLigament = new Ligament(); newLigament->setName("new_ligament"); newLigament->set_pcsa_force(0.01); // Example value for PCSA (cross-s...
by Hojin Song
Wed Jul 31, 2024 2:51 am
Forum: OpenSim
Topic: Creating a ligament via C++
Replies: 3
Views: 1867

Creating a ligament via C++

Hi OpenSim experts! I was trying to create an OpenSim model with using c++. I've tried the code below to add a new ligament element to an existing model but the output model is missing its geometry path. The C++ code is as follows: // Create a new Ligament Ligament* newLigament = new Ligament(); new...
by Hojin Song
Tue Apr 23, 2024 3:00 am
Forum: OpenSim Moco
Topic: Making arms parallel to the ground
Replies: 3
Views: 1813

Making arms parallel to the ground

Hello MOCO experts! I'm trying to simulate a squat while we make arms straight parallel to the ground throughout the movement. I was thinking of using MocoOutputConstraint to constrain a point on a hand's rotations in three axes (while elbows and wrists are fixed to straight), but I remember that in...
by Hojin Song
Mon Feb 26, 2024 9:49 pm
Forum: OpenSim Moco
Topic: ligament boundary conditions
Replies: 8
Views: 3519

Re: ligament boundary conditions

Hi Nick, I've found that this issue was due to not setting the name for each constraint. After naming each constraint, it worked. Thank you for the help :) ** In addition, unconverged solution using path constraints are not being saved. This reminds me of an older post regarding the similar issue ( ...
by Hojin Song
Fri Feb 23, 2024 12:40 am
Forum: OpenSim Moco
Topic: ligament boundary conditions
Replies: 8
Views: 3519

Re: ligament boundary conditions

Hi NIck, Thank you for letting me know that I should use MocoOutputConstraint. Sadly, after trying using MocoOutputConstraint, I'm facing a new issue where the build was succeed but in the debug console, it was killed before starting Moco. The code that I used is as follows: ForceSet fset = model.ge...
by Hojin Song
Wed Feb 21, 2024 7:17 pm
Forum: OpenSim Moco
Topic: ligament boundary conditions
Replies: 8
Views: 3519

Re: ligament boundary conditions

Hi all, Thank you all for your replies! However, MocoInitialOutputGoal and MocoFinalOutputGoal, when used in "endpoint constraint" mode, could be used to this effect. 1) Nick, I'm just wondering if having both goals in endpoint constraint mode, will it gives maximum boundaries to ligaments throughou...
by Hojin Song
Sun Feb 18, 2024 9:18 pm
Forum: OpenSim Moco
Topic: ligament boundary conditions
Replies: 8
Views: 3519

ligament boundary conditions

Hi MOCO Experts, I was wondering if there's a way to set boundary conditions for ligament properties? I'm hoping to give upper cap on either ligament's elongation or tension so the ligament won't go beyond the upper limit. It seems the ligament component in OpenSim doesn't have any boundary componen...
by Hojin Song
Sun Feb 18, 2024 9:14 pm
Forum: OpenSim Moco
Topic: making custom goal in python
Replies: 5
Views: 1102

Re: making custom goal in python

Hi Nick,

I was not able to build it directly on the cluster due to a permission issue so I was trying to use already existing anaconda environment (which only supports python), but I'll have a look at the SWIG bindings for now. I tried pybind11 but wasn't successful :(.

best,
Hojin
by Hojin Song
Fri Feb 16, 2024 1:27 am
Forum: OpenSim
Topic: Ligament Parameters Question
Replies: 1
Views: 55954

Ligament Parameters Question

Hi OpenSim experts! I was trying to add knee ligament component, but quite not sure what are the ligament parameters exactly are. I'm referring to the ligament parameter as shown in the image below (from the study of Blankevoort et al. https://www.sciencedirect.com/science/article/pii/00219290919001...
by Hojin Song
Wed Feb 14, 2024 7:20 pm
Forum: OpenSim Moco
Topic: making custom goal in python
Replies: 5
Views: 1102

Re: making custom goal in python

Hi Nicholas, Thank you for your response. I was trying to running my Moco code on a cluster but the opensim-moco package that I found on anaconda ( https://anaconda.org/opensim-org/opensim-moco/files ) only supports python scripting, so I was trying to migrate my C++ code to python. When I create my...