Search found 412 matches
- 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...
- 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:
Hope this helps.
Code: Select all
model.initSystem()
coordNames = model.getCoordinateNamesInMultibodyTreeOrder()
[coordNames.getElt(i) for i in range(coordNames.size())]
- 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:
Thanks
Thanks
- 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...
- 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...
- 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:
Hope this helps.
Code: Select all
via = ConditionalPathPoint()
via.setName('via')
...
syringeActuator.getGeometryPath().getPathPointSet().cloneAndAppend(via)
- 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...
- 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...
- 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.
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.
- 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...