Search found 6 matches

by Ekaterina Stansfield
Sun Dec 10, 2023 12:53 am
Forum: OpenSim
Topic: MocoCasADiSolver is not available in python
Replies: 5
Views: 435

Re: MocoCasADiSolver is not available in python

Thank you -- this version required python 3.9, not 3.8 -- Once the correct environment was created, the installation was painless. Thanks again for your help.
by Ekaterina Stansfield
Sat Nov 25, 2023 6:14 am
Forum: OpenSim
Topic: MocoCasADiSolver is not available in python
Replies: 5
Views: 435

MocoCasADiSolver is not available in python

I have just made a new installation of OpenSim 4.4 in Python 3.8 numpy 1.20 environment. On trying to run Moco I get an error: "std::exception in 'OpenSim::MocoSolution OpenSim::MocoStudy::solve() const': MocoCasADiSolver is not available. Thrown at MocoCasADiSolver.cpp:448 in solveImpl()" Comparing...
by Ekaterina Stansfield
Fri Jul 21, 2023 9:59 pm
Forum: OpenSim
Topic: Update Muscle Path
Replies: 2
Views: 267

Re: Update Muscle Path

Thank you -- I will give it a go!
by Ekaterina Stansfield
Tue Jul 18, 2023 4:18 am
Forum: OpenSim
Topic: Update Muscle Path
Replies: 2
Views: 267

Update Muscle Path

Hi, this question is related to my question in https://simtk.org/plugins/phpBB/viewtopic.php?f=91&t=16752 I am updating muscle paths in a model. The problem is that stating "state = model.initSystem()" before "loc=model.getMuscles().get(muscle).getGeometryPath().getPathPointSet().get(point).getLocat...
by Ekaterina Stansfield
Fri Jul 07, 2023 6:54 am
Forum: OpenSim
Topic: get location for muscle does not work in python
Replies: 2
Views: 376

Re: get location for muscle does not work in python

Thanks Dan. I'll give it a go. How can I update these XYZ?

is this right?

for i in range(0,3):
val = loc.get(i)
val = val + 1
loc.set(i, val)

K
by Ekaterina Stansfield
Thu Jul 06, 2023 8:52 am
Forum: OpenSim
Topic: get location for muscle does not work in python
Replies: 2
Views: 376

get location for muscle does not work in python

Hi, I am struggling to get and update fixed points for muscle paths in python. When using model.getMuscleList().getPathPointSet() I get an error "'AbstractPathPoint' object has no attribute 'get_location' ". I also cannot reach the vector value when running state = model.initSystem() loc = model.get...