Search found 10 matches

by Umer Huzaifa
Thu Oct 12, 2023 1:48 pm
Forum: OpenSim
Topic: Scaling problem
Replies: 3
Views: 626

Re: Scaling problem

Hi there, For anyone who is still trying to figure out these issues, there most likely is a misalignment of the experimental data in TRC and the OpenSim Coordinate convention. Since you cant change the convention in OpenSim, you will have to rotate the collected data appropriately. I hope this helps...
by Umer Huzaifa
Thu Oct 12, 2023 1:41 pm
Forum: OpenSim
Topic: Scaling tool fails at "placing markers on model"
Replies: 14
Views: 2480

Re: Scaling tool fails at "placing markers on model"

Hi there, I am trying to use a single frame long static trial. However, the Scale tool on OpenSim GUI keeps throwing `invalid time range` error. Here is the complete error I am seeing: java.lang.RuntimeException: Invalid time range: initial time 0.000000 >= final time = 0.000000 Thrown at TimeSeries...
by Umer Huzaifa
Tue Aug 08, 2023 12:29 pm
Forum: OpenSim
Topic: Not Able to Initialize MarkersReference
Replies: 1
Views: 300

Re: Not Able to Initialize MarkersReference

Okay, it turns out that first initializing MarkersReference alone and then setting the markers file is the correct way to do it.

Code: Select all

markersRef = MarkersReference;
markersRef.set_marker_file('marker_trajectories.trc')
No errors now.
by Umer Huzaifa
Tue Aug 08, 2023 12:21 pm
Forum: OpenSim
Topic: Not Able to Initialize MarkersReference
Replies: 1
Views: 300

Not Able to Initialize MarkersReference

Hi there, I am trying to run the examples in Resources/Code/Matlab and I am unable to run the example titled `exampleMarkerTracking10DOF.m`. The specific error appears at `markersRef = MarkersReference(fullfile(scriptdir, 'marker_trajectories.trc'));` where it says `No constructor 'org.opensim.model...
by Umer Huzaifa
Thu Jul 27, 2023 10:34 am
Forum: OpenSim
Topic: Contact Geometry with Provided Models
Replies: 1
Views: 292

Contact Geometry with Provided Models

Hi there, I am still learning scripting in Matlab and Python. As a simple exercise, I was loading different models and simulating them for a given amount of time. All the models fall through he ground. I understand that this is because of absence of any movement data. But I wondered if contact physi...
by Umer Huzaifa
Tue Jul 25, 2023 11:44 am
Forum: OpenSim
Topic: OpenSim GUI is Too Slow
Replies: 0
Views: 196

OpenSim GUI is Too Slow

Hi there, I am using MATLAB and Python APIs for making models and doing MOCO based optimization studies. Now, I want to shift to OpenSim GUI for visualizing the simulations. However, the OpenSim GUI is excruciatingly slow. Just locating a model and opening it takes about a minute. Any ideas what am ...
by Umer Huzaifa
Sat Nov 13, 2021 9:11 am
Forum: OpenSim
Topic: Center of Mass for Mobile Multibody
Replies: 0
Views: 129

Center of Mass for Mobile Multibody

Hi there, I am learning Opensim to develop wearable devices for assistance in walking and want to monitor the effect on the center of mass as the walking algorithm runs on the device. I am looking into DynamicWalker challenge tutorial to get started. However, as I try osimmodel.calcMassCenterPositio...
by Umer Huzaifa
Sat Nov 13, 2021 7:36 am
Forum: OpenSim
Topic: Obtain CM position and velocity during a simulation
Replies: 9
Views: 1958

Re: Obtain CM position and velocity during a simulation

Hossein, I may have figured out using your Method 1 (thanks for sharing it!). Here is how I modified it: sto=Storage('leg_states.sto') states = StatesTrajectory.createFromStorage(model, sto, true) % my model was in the workspace so not defining that separately Straj = StatesTrajectory() % Probably d...
by Umer Huzaifa
Sat Nov 13, 2021 6:42 am
Forum: OpenSim
Topic: Obtaining Intermediate States from osimSimulate
Replies: 0
Views: 142

Obtaining Intermediate States from osimSimulate

Hi there, I am learning my way through MATLAB scripting for OpenSim. So far, I have learnt how to define bodies and joints to a model. I want to plot the center of mass during a forward simulation (my understanding of forward dynamics?) i.e. given the bodies, joints, actuators and their controllers,...
by Umer Huzaifa
Fri Nov 12, 2021 2:44 pm
Forum: OpenSim Moco
Topic: What is State in Model.calcCenterMassPosition
Replies: 2
Views: 402

What is State in Model.calcCenterMassPosition

Hi there, I am trying to tracking center of mass position for a model. However, I am unable to find what goes inside the function model.calcCenterMassPosition() as argument. All I have found on Doxygen is that it accepts const SimTK::State & s. I have Moco solved state trajectories of size 102x2. I ...