Search found 6 matches

by Csongor Barabasi
Mon Nov 26, 2018 6:14 am
Forum: OpenSim
Topic: Python Joint Control
Replies: 1
Views: 473

Python Joint Control

Hey people! I would have a quick question. I manage to retrieve the jointSet of the model through model.getJointSet(). Then I manage to find different joints, for example the shoulder-arm joint through: jointset.get(x) (x is the index of the joint). This returns me a Joint type object. I would like ...
by Csongor Barabasi
Tue Nov 20, 2018 7:40 am
Forum: OpenSim
Topic: Moving model in Python
Replies: 5
Views: 677

Re: Moving model in Python

Yes, so that is exactly what I did so far. But as a function I used Constant. So the muscle activation has a constant value. And now I would like to change this value to another constant ... I don't want to exhibit a full movement, just a change in the body pose. So for example change the biceps mus...
by Csongor Barabasi
Tue Nov 20, 2018 7:00 am
Forum: OpenSim
Topic: Moving model in Python
Replies: 5
Views: 677

Re: Moving model in Python

Well that's what I did, but it is a tiny bit unclear.

So I understand that I have to create a PrescribedController() and here I add the muscles with their activation.

But then I don't know how to control them.
by Csongor Barabasi
Mon Nov 19, 2018 2:44 am
Forum: OpenSim
Topic: Moving model in Python
Replies: 5
Views: 677

Moving model in Python

Hey OpenSimmers :D Thanks to this awesome community I managed to load and visualize an OpenSim model like this: import opensim m = opensim.Model('<filename>') m.setUseVisualizer(True) state = m.initSystem() m.getVisualizer().show(state) Then I managed to get out body parts like this: self.muscleSet ...
by Csongor Barabasi
Mon Nov 19, 2018 1:39 am
Forum: OpenSim
Topic: Python Scripting Question
Replies: 2
Views: 606

Re: Python Scripting Question

Thank you for your help! :D
by Csongor Barabasi
Sun Nov 18, 2018 10:07 am
Forum: OpenSim
Topic: Python Scripting Question
Replies: 2
Views: 606

Python Scripting Question

Hey dear community! I am trying to get my head around OpenSim scripting. Unfortunately the documentation for Python is not perfect. So I would like to ask if anybody could help me in this. I would like to load up a full body model (which I could not find, with upper and lower body muscles) and just ...