Search found 414 matches
- Fri Jan 17, 2025 9:35 pm
- Forum: OpenSim
- Topic: Read/write mesh file
- Replies: 1
- Views: 171
Read/write mesh file
Hi, I need to read/write the points and normals from/to mesh files (e.g. vtp, stl), and am currently using XML parsing methods (I prefer not to use external libraries). I wonder if such method already exists in OpenSim API. I tested PolygonalMesh() , but the output is empty. >>> import opensim as os...
- Fri Jan 17, 2025 8:35 pm
- Forum: OpenSim
- Topic: Obtaining body rotation matrices in a loop
- Replies: 3
- Views: 1129
Re: Obtaining body rotation matrices in a loop
Hi, there is already a method for updating the column labels TabOpUseAbsoluteStateNames : table = osim.TableProcessor(IK_path) table.append(osim.TabOpConvertDegreesToRadians()) # if in degrees table.append(osim.TabOpUseAbsoluteStateNames()) table = table.process(model) Alternatively, you can update ...
- Sun Dec 08, 2024 2:52 am
- Forum: OpenSim
- Topic: How to use the getCoordinatesInMultibodyTreeOrder() function in Python
- Replies: 5
- Views: 1366
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: 1366
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: 593
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: 593
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: 1267
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: 755
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: 683
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: 909
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...