Search found 407 matches

by Mohammadreza Rezaie
Wed Oct 23, 2024 9:06 am
Forum: OpenSim
Topic: Adding via points programmatically to path spring
Replies: 2
Views: 332

Re: Adding via points programmatically to path spring

Hi, once you created your via point through ConditionalPathPoint object, you can add it to the PathSpring as follows:

Code: Select all

via = ConditionalPathPoint()
via.setName('via')
...
syringeActuator.getGeometryPath().getPathPointSet().cloneAndAppend(via)
Hope this helps.
by Mohammadreza Rezaie
Wed Oct 23, 2024 8:25 am
Forum: OpenSim
Topic: Checking Reserve Actuator Activity
Replies: 1
Views: 329

Re: Checking Reserve Actuator Activity

Hi, the names of the reserve actuators are specified in your actuator file, or in your model's forceset. Here is an example of an actuators file in Rajagopal2016 model: https://github.com/opensim-org/opensim-models/blob/c62c24b0da1f89178335cf10f646a39c90d15580/Pipelines/Rajagopal/CMC/walk/cmc_actuat...
by Mohammadreza Rezaie
Wed Oct 23, 2024 7:49 am
Forum: OpenSim
Topic: Ho to process the data faster by iktool
Replies: 2
Views: 312

Re: Ho to process the data faster by iktool

Hi, depending on your problem, OpenSim finds the best optimizer. Please see: https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=91&t=3854&p=0&start=0&view=&sid=77b9299bc1a4dc42ad43083b9c27d6be In my experience, if you omit the constraints from your model, the problem will be solved much faster. Th...
by Mohammadreza Rezaie
Tue Oct 15, 2024 10:09 pm
Forum: OpenSim
Topic: Property 'GeometryPath' not present in Object glmed1_r
Replies: 1
Views: 250

Re: Property 'GeometryPath' not present in Object glmed1_r

Hi, this issue has been fixed in the dev version: https://github.com/opensim-org/opensim-gui/issues/1494

You can either wait for the next official release, or try the most recent artifact via: https://github.com/opensim-org/opensim- ... ldartifact

Hope this helps.
by Mohammadreza Rezaie
Tue Oct 15, 2024 10:02 pm
Forum: OpenSim
Topic: Residual Reduction Algorithm, Tracking Tasks
Replies: 4
Views: 549

Re: Residual Reduction Algorithm, Tracking Tasks

Hi, sorry for brevity. Free coordinates are independent without any constraint, so the optimizer can change their values. The Coordinate::isConstrained method could help you find them; for example in Python: import opensim as osim model = osim.Model('Rajagopal2016.osim') state = model.initSystem() f...
by Mohammadreza Rezaie
Tue Oct 15, 2024 12:01 am
Forum: OpenSim
Topic: Residual Reduction Algorithm, Tracking Tasks
Replies: 4
Views: 549

Re: Residual Reduction Algorithm, Tracking Tasks

Hi, you need a tracking task for every free coordinate. The issue might also be your actuator file. Similarly, in RRA you need a strong coordinate actuator for every free coordinate, but weak residual actuator for pelvis coordinates.
(weld and locked coordinates must be excluded)

Hope this helps.
by Mohammadreza Rezaie
Thu Oct 03, 2024 1:02 am
Forum: OpenSim
Topic: Hip joint center calculation in gait2392, where is the default hip joint center located?
Replies: 2
Views: 359

Re: Hip joint center calculation in gait2392, where is the default hip joint center located?

Hi, the hip joint center is located in the center of the femoral head. This is also the origin of the femur geometry. So, just create a new marker, change the frame to femur_r and set the location to zero:
HJC.png
HJC.png (4.44 KiB) Viewed 308 times
Hope this helps.
by Mohammadreza Rezaie
Fri Sep 27, 2024 1:00 pm
Forum: OpenSim
Topic: Issues related to IAA
Replies: 5
Views: 623

Re: Issues related to IAA

Hi, I just tested IAA using the dataset and setup files available here (https://simtk.org/projects/nmbl_running). I confirm that after loading the setup file in the GUI, both socket_rolling_body and socket_surface_body fields are empty (the tool doesn't get those parameters from the XML file), and t...
by Mohammadreza Rezaie
Fri Sep 20, 2024 12:31 am
Forum: OpenSim
Topic: Error when running AnalyzeTool using Python
Replies: 2
Views: 478

Re: Error when running AnalyzeTool using Python

Hi, I just tested your minimum working example in IPython console (py10, osim4.5.1), and it works. Your motion seems to be a static pose, and I think that's why you set the final time to zero as well. The warnings suggest that the motion file doesn't contain all coordinates. Some people have reporte...
by Mohammadreza Rezaie
Wed Sep 11, 2024 11:58 pm
Forum: OpenSim
Topic: static optimization with one force plate
Replies: 2
Views: 377

Re: static optimization with one force plate

Hi, if I understand correctly, you are asking about whether the pipeline is ok when there is only one force plate.
Yes, that's totally fine, and the outputs of ID, SO, and JR of the leg the GRF has been applied to are still valid.
Hope this helps.