Search found 412 matches

by Mohammadreza Rezaie
Sun Dec 08, 2024 2:52 am
Forum: OpenSim
Topic: How to use the getCoordinatesInMultibodyTreeOrder() function in Python
Replies: 5
Views: 1339

Re: How to use the getCoordinatesInMultibodyTreeOrder() function in Python

Hi, it seems that this method has been introduced recently and doesn't exist in the official 4.5 release. Possible solutions: 1. You can wait for the next official release. 2. Try the latest artifact: https://github.com/opensim-org/opensim-gui/wiki#how-to-get-the-latest-buildartifact 3. Use this alt...
by Mohammadreza Rezaie
Sat Dec 07, 2024 9:55 am
Forum: OpenSim
Topic: How to use the getCoordinatesInMultibodyTreeOrder() function in Python
Replies: 5
Views: 1339

Re: How to use the getCoordinatesInMultibodyTreeOrder() function in Python

Hi, getCoordinateNamesInMultibodyTreeOrder can be used instead:

Code: Select all

model.initSystem()
coordNames = model.getCoordinateNamesInMultibodyTreeOrder()
[coordNames.getElt(i) for i in range(coordNames.size())]
Hope this helps.
by Mohammadreza Rezaie
Thu Dec 05, 2024 10:41 am
Forum: OpenSim
Topic: Inverse Dynamics with and without COP
Replies: 2
Views: 575

Re: Inverse Dynamics with and without COP

Hi Nicos, please find the attached files:
Trial1_FPOrigin.zip
(448.77 KiB) Downloaded 98 times
Trial1_COP.zip
(538.73 KiB) Downloaded 95 times
Thanks
by Mohammadreza Rezaie
Wed Dec 04, 2024 4:32 am
Forum: OpenSim
Topic: Inverse Dynamics with and without COP
Replies: 2
Views: 575

Inverse Dynamics with and without COP

Hi, this might be a stupid question. I created the GRF file with ForceLocation set to zero (forceplate origin) and one (COP). This is the output which makes sense: COP.png Then I executed Inverse Dynamics for each file. My question is why the outputs are exactly identical? Moment.png It seems that t...
by Mohammadreza Rezaie
Sun Dec 01, 2024 4:35 am
Forum: OpenSim
Topic: Issues related to IAA
Replies: 6
Views: 1255

Re: Issues related to IAA

Hi, this is a bug, I posted it on the GitHub page for the record: https://github.com/opensim-org/opensim-gui/issues/1529 Must wait until the developers fix it. In the meantime, there is a workaround for this bug: After creating the XML analyze tool through API, a simple code can be used to replace t...
by Mohammadreza Rezaie
Wed Oct 23, 2024 9:06 am
Forum: OpenSim
Topic: Adding via points programmatically to path spring
Replies: 2
Views: 743

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

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

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

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

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...