Search found 40 matches
- Fri Apr 26, 2024 7:28 pm
- Forum: OpenSim Moco
- Topic: MocoCasADiSolver is not available
- Replies: 10
- Views: 1695
Re: MocoCasADiSolver is not available
Hi Nick, I am getting a similar error when running the exampleMocoTrack.py script. I created a fresh python 3.11 env and conda installed opensim. Then installed opensim from the sdk/Python folder as you described above and added C:\OpenSim 4.5\bin to my environment variables. Still getting: RuntimeE...
- Wed Oct 19, 2022 12:52 pm
- Forum: OpenSim
- Topic: Vary Inverse Kinematics weights at each time point
- Replies: 4
- Views: 559
Re: Vary Inverse Kinematics weights at each time point
Hi Ayman, I am realizing now I misspoke in my last comment. My hope is to only call track (not assemble) after the first frame for all subsequent frames. I am able to do so when I do not make any calls to updateMarkerWeight. However when I do update the marker weight I get the error: 'RuntimeError: ...
- Mon Oct 17, 2022 8:20 am
- Forum: OpenSim
- Topic: Vary Inverse Kinematics weights at each time point
- Replies: 4
- Views: 559
Re: Vary Inverse Kinematics weights at each time point
Hi Ayman, Thank you for the response! I am currently attempting to use UpdateMarkerWeight with the following code: ikSolver.assemble(s) for i in range(self.nFrames): # UpdateWeights for mark in self.marker_list: markweight = self.weight[mark][i] ikSolver.updateMarkerWeight(mark, markweight) # Set th...
- Thu Oct 13, 2022 9:48 am
- Forum: OpenSim
- Topic: Vary Inverse Kinematics weights at each time point
- Replies: 4
- Views: 559
Vary Inverse Kinematics weights at each time point
Hello, I am interested in updating the weights assigned to each marker in IK at every timepoint during a trial using the python API and InverseKinematicsSolver. My current solution is to update the marker weights in the loop that is calling iksolver.track() for each timepoint. This solution seems to...
- Tue May 10, 2022 4:27 am
- Forum: OpenSim
- Topic: Get Number of Geometry Files from a Body
- Replies: 0
- Views: 124
Get Number of Geometry Files from a Body
Hi everyone, I would like to read the geometry files from each body in a .osim file. Currently I am using the following lines of code. geom = body.get_attached_geometry(counter) mesh = osim.Mesh.safeDownCast(geom) mesh_file = mesh.get_mesh_file() This code stores the correct file in mesh_file but I ...
- Fri Apr 08, 2022 2:28 pm
- Forum: OpenSim Moco
- Topic: How can I make torque-driven predictive simulations realistic?
- Replies: 16
- Views: 1812
Re: How can I make torque-driven predictive simulations realistic?
Hi Aaron, I am also interested in doing something similar, so thank you for this post! I was able to use the MuscleLikeCoordinateActuator.cpp and MuscleLikeCoordinateActuator.h here: https://github.com/opensim-org/opensim-core/tree/a01cf545485e8bc1f6e50b29ddeab229677de2c5/OpenSim/Sandbox/Moco/sandbo...
- Thu Mar 31, 2022 12:24 pm
- Forum: OpenSim Moco
- Topic: Unable to Use MocoAcclerationTrackingGoal
- Replies: 5
- Views: 314
Re: Unable to Use MocoAcclerationTrackingGoal
Hi Nick, That's good to hear that I should be able to use both! I am now trying to install OpenSim 4.3 in the Python 3.8 environment, but when I import opensim I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\OpenSim 4.3\sdk\Python\opensim\__...
- Thu Mar 31, 2022 5:26 am
- Forum: OpenSim Moco
- Topic: Unable to Use MocoAcclerationTrackingGoal
- Replies: 5
- Views: 314
Re: Unable to Use MocoAcclerationTrackingGoal
Hi Nick, In the "Step-by-step instructions when using Anaconda with OpenSim 4.3+" it looks like you are required to use python 3.8 is that correct? Is it possible to run with 3.7? If not, does the installation allow multiple versions (i.e. would my current install work properly if I also install the...
- Wed Mar 30, 2022 2:09 pm
- Forum: OpenSim Moco
- Topic: Unable to Use MocoAcclerationTrackingGoal
- Replies: 5
- Views: 314
Unable to Use MocoAcclerationTrackingGoal
Hi everyone, I am trying to add a MocoAcclerationTrackingGoal to an existing moco python script. However, I am getting an error in the line: acc_tracking = osim.MocoAccelerationTrackingGoal() I am able to instantiate other MocoGoals like MocoContactTrackingGoal using a similar commands but not Accel...
- Thu Mar 10, 2022 6:12 am
- Forum: OpenSim Moco
- Topic: Maximize Velocity of a Body Segment
- Replies: 13
- Views: 1226
Re: Maximize Velocity of a Body Segment
Hi Nick, The solution of setting the hand velocity to a high exponent seems to be a nice solution. Thanks! And Evan, 'linear_velocity' should be a Vec3 but I was trying to use it as an Output Goal so it was stored differently and I wasn't able to use the Vec3 operations. But I think I have a useful ...