opensim moco with python

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Ho Seon Choi
Posts: 2
Joined: Thu May 24, 2018 8:14 am

opensim moco with python

Post by Ho Seon Choi » Mon Apr 19, 2021 7:21 pm

Hi,

I wanna use opensim moco with python.

But when I launch examples in python, the error "module 'opensim' has no attribute 'MocoStudy'" shows up.

Could you let me know what should I do?

Thank you for everything about opensim moco.

Best regards,

HS Choi

User avatar
Aaron Fox
Posts: 286
Joined: Sun Aug 06, 2017 10:54 pm

Re: opensim moco with python

Post by Aaron Fox » Mon Apr 19, 2021 10:56 pm

Hi Choi,

What version of OpenSim are you using? Moco only got included in the latest 4.2 release of OpenSim, so using anything earlier than this won't work. There's a useful command for checking what the actual version number is - but I can't remember what it is!

Aaron

User avatar
Nicholas Bianco
Posts: 1038
Joined: Thu Oct 04, 2012 8:09 pm

Re: opensim moco with python

Post by Nicholas Bianco » Mon Apr 19, 2021 11:08 pm

Hi Choi,

Are you using Windows or Mac? And did you follow the setup instructions for using Python bindings with OpenSim? Check out this page if you haven't: https://simtk-confluence.stanford.edu/d ... +in+Python.

-Nick

POST REPLY