Search found 10 matches
- Thu Oct 12, 2023 1:48 pm
- Forum: OpenSim
- Topic: Scaling problem
- Replies: 3
- Views: 937
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...
- Thu Oct 12, 2023 1:41 pm
- Forum: OpenSim
- Topic: Scaling tool fails at "placing markers on model"
- Replies: 14
- Views: 3550
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...
- Tue Aug 08, 2023 12:29 pm
- Forum: OpenSim
- Topic: Not Able to Initialize MarkersReference
- Replies: 1
- Views: 369
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.
No errors now.
Code: Select all
markersRef = MarkersReference;
markersRef.set_marker_file('marker_trajectories.trc')
- Tue Aug 08, 2023 12:21 pm
- Forum: OpenSim
- Topic: Not Able to Initialize MarkersReference
- Replies: 1
- Views: 369
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...
- Thu Jul 27, 2023 10:34 am
- Forum: OpenSim
- Topic: Contact Geometry with Provided Models
- Replies: 1
- Views: 398
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...
- Tue Jul 25, 2023 11:44 am
- Forum: OpenSim
- Topic: OpenSim GUI is Too Slow
- Replies: 0
- Views: 268
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 ...
- Sat Nov 13, 2021 9:11 am
- Forum: OpenSim
- Topic: Center of Mass for Mobile Multibody
- Replies: 0
- Views: 192
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...
- Sat Nov 13, 2021 7:36 am
- Forum: OpenSim
- Topic: Obtain CM position and velocity during a simulation
- Replies: 9
- Views: 3010
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...
- Sat Nov 13, 2021 6:42 am
- Forum: OpenSim
- Topic: Obtaining Intermediate States from osimSimulate
- Replies: 0
- Views: 200
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,...
- Fri Nov 12, 2021 2:44 pm
- Forum: OpenSim Moco
- Topic: What is State in Model.calcCenterMassPosition
- Replies: 2
- Views: 527
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 ...