Search found 75 matches

by Hojin Song
Thu Oct 24, 2024 12:58 am
Forum: OpenSim Moco
Topic: Torque Actuators at the pelvis
Replies: 2
Views: 203

Re: Torque Actuators at the pelvis

Hi Ross, Thank you for your advice! I was trying to generate a predictive simulation (not tracking any reference motion) using MocoStudy and make the model driven by actuators at each coordinate. I'm using a fixed based model, which is using floating based model first then constrain the foot with a ...
by Hojin Song
Tue Oct 22, 2024 12:12 am
Forum: OpenSim Moco
Topic: Torque Actuators at the pelvis
Replies: 2
Views: 203

Torque Actuators at the pelvis

Hello Moco Experts, I'm currently working on a torque-driven model, and I have a question regarding the application of torque actuators at the pelvis. I'm wondering whether it is appropriate to omit torque actuators for the 6 pelvic coordinates (3 translational and 3 rotational). The following code ...
by Hojin Song
Sun Aug 04, 2024 11:54 pm
Forum: OpenSim
Topic: Creating a ligament via C++
Replies: 3
Views: 2201

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: 2201

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: 2031

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: 13766

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: 13766

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: 13766

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: 13766

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: 1265

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