Search found 31 matches
- Wed Jun 26, 2019 5:28 am
- Forum: OpenSim
- Topic: Difficulty setting-up virtual environment for the "NeurIPS 2019- learn to move" project
- Replies: 1
- Views: 203
Difficulty setting-up virtual environment for the "NeurIPS 2019- learn to move" project
I'm wondering if anyone else has had any difficulties or could offer som assistance with setting up the virtual environment for the NeurIPS 2019 - Learning to Walk project? (http://osim-rl.stanford.edu/docs/home/). I've followed the instructions on the website and have gone through multiple installa...
- Tue May 07, 2019 7:33 am
- Forum: OpenSim
- Topic: Direct collocation available in Python?
- Replies: 2
- Views: 272
Direct collocation available in Python?
Hi, I'm just wondering whether any Direct Collocation resources are available in Python rather than Matlab?
- Thu Mar 28, 2019 4:54 am
- Forum: OpenSim
- Topic: Running Inverse Dynamics using Python
- Replies: 1
- Views: 362
Running Inverse Dynamics using Python
I'm having difficulty getting Inverse Dynamics to run using python. I can run inverse dynamics using the external loads & coordinates file in the GUI but script crashes if I run it using Python. There must be something I'm missing in my code but it seems impossible to find out what it is. The error ...
- Mon Jan 28, 2019 8:02 am
- Forum: OpenSim
- Topic: Removing a body from model using Python
- Replies: 1
- Views: 238
Removing a body from model using Python
I have a full body model that I would like to edit via python. I can get handles to bodysets, muscles, etc but can't figure out how to remove a component from the model...I'd like to remove the body's/joints/muscles etc for the left leg. Ofc, It's possible to edit the xml file but I'd like to do eve...
- Mon Jan 14, 2019 4:20 am
- Forum: OpenSim
- Topic: Scaling using Python API
- Replies: 12
- Views: 2392
Re: Scaling using Python API
Thanks for the response. I've removed the 'states' argument from my code and the code is running without any errors. Although it doesn't look like it is scaling the model :s When I try to scale with Python, the model markers move but the models joints remain in the default pose position rather than ...
- Fri Jan 11, 2019 3:42 am
- Forum: OpenSim
- Topic: Scaling using Python API
- Replies: 12
- Views: 2392
Re: Scaling using Python API
Thanks for the suggestion Colin. All the files (e.g. osim file, setup file, marker file, etc) are located in the same folder on my computer but I gave your suggestion a go with the by adding an empty string inside the parentheses (scaleTool.getPathToSubject('')) but that returns the following error:...
- Thu Jan 10, 2019 2:42 am
- Forum: OpenSim
- Topic: Scaling using Python API
- Replies: 12
- Views: 2392
Re: Scaling using Python API
Thanks for the tips. Unfortunately, the user guide doesn't offer too much help and I'm still searching GitHub for any code that might be inuitive to work from. I've tried working from 'runScaling.py' file before but Christopher Dembia mentioned that it was for GUI scripting as I couldn't find the 'g...
- Tue Jan 08, 2019 8:08 am
- Forum: OpenSim
- Topic: Scaling using Python API
- Replies: 12
- Views: 2392
Scaling using Python API
I'm trying to scale my model using Python in Spyder but I'm having problems getting the ball rolling. There doesn't seem to be a lot of documentation to assist from my searches and I find the Doxygen page difficult to understand. Could anyone help point me in the right direction with how they may ha...
- Thu Dec 13, 2018 7:56 am
- Forum: OpenSim
- Topic: Cannot find 'getResourcesDir' and 'modeling' modules when using runScaling.py
- Replies: 1
- Views: 265
Cannot find 'getResourcesDir' and 'modeling' modules when using runScaling.py
I'm trying to run the runScaling.py code in my script but both 'getResourcesDir()' and 'modeling.' are undefined despite importing os.path and opensim. Is there something else I'm missing or does anyone know where these modules are located so that I can import them? # Written by James Dunne, Stanfor...
- Tue Dec 11, 2018 8:18 am
- Forum: OpenSim
- Topic: Retrieving muscle parameters using Python
- Replies: 1
- Views: 236
Re: Retrieving muscle parameters using Python
I managed to resolve the list issue and have attached the code that I used incase someone else might find it useful: import opensim myModel = opensim.Model('Strong_Model.osim') myModel.muscleSet = myModel.getMuscles() print("\nMUSCLES") for i in range(myModel.muscleSet.getSize()): print(i,myModel.mu...