Search found 12 matches

by Andrew Stolin
Sun Oct 18, 2020 1:26 pm
Forum: OpenSim
Topic: Linux load plugin
Replies: 3
Views: 502

Re: Linux load plugin

Thank you both, it worked perfectly after following the instructions at https://github.com/mitkof6/OpenSim_API_ ... tion_force and loading within python with

Code: Select all

lib = opensim.LoadOpenSimLibraryExact('libScapulothoracicJointPlugin40.so')
by Andrew Stolin
Fri Oct 09, 2020 9:44 am
Forum: OpenSim
Topic: Linux load plugin
Replies: 3
Views: 502

Linux load plugin

Hi, There's a Windows and a Mac build of the following plugin, but no Linux version ( https://simtk.org/frs/?group_id=986 sources here: https://github.com/opensim-org/ScapulothoracicJointPlugin ) Supposing the building it from source is straight forward (bonus point for anyone with a binary), where ...
by Andrew Stolin
Sun Jul 01, 2018 3:29 am
Forum: OpenSim
Topic: Step by step integration
Replies: 5
Views: 540

Re: Step by step integration

Thank you very much, Thomas and Hide - everything seems to be working now
by Andrew Stolin
Thu Jun 07, 2018 3:02 am
Forum: OpenSim
Topic: Step by step integration
Replies: 5
Views: 540

Re: Step by step integration

Thank you very much for this information, I did not think of the integrator's default tolerance. Just to confirm, does it mean that when I re-integrate, all the controls have been preserved by default (i.e. I am integrating from the last state of the last integration, and not from the beginning) ? m...
by Andrew Stolin
Sun Jun 03, 2018 9:40 am
Forum: OpenSim
Topic: Step by step integration
Replies: 5
Views: 540

Step by step integration

Hi, I am trying to perform a simulation step by step in python. The results differ between a 0.2s integration and two 0.1s integrations. Would you be able to tell me if there is something wrong in these few lines of code? I am using the build_simple_arm_model.py" example. The controller brain = osim...
by Andrew Stolin
Thu May 31, 2018 11:08 am
Forum: OpenSim
Topic: python custom controller
Replies: 4
Views: 791

Re: python custom controller

I am struggling here as I am missing a few key pieces to make sense of all this. So the small forward integration goes like this : manager = osim.Manager(arm) state.setTime(0) manager.initialize(state) state = manager.integrate(0.1) And we can get the state of activation and excitation of the muscle...
by Andrew Stolin
Thu May 31, 2018 1:16 am
Forum: OpenSim
Topic: python custom controller
Replies: 4
Views: 791

Re: python custom controller

Christopher, thank you very much for your answer. I will update this post as soon as possible
by Andrew Stolin
Tue May 29, 2018 9:26 am
Forum: OpenSim
Topic: python custom controller
Replies: 4
Views: 791

python custom controller

Hello, I am trying to create a custom controller in python, and I had no luck going through the forum so far. I have compiled opensim 4 with the python wrapper and the example file "build_simple_arm_model.py" runs fine, it uses a prescribed controller with a stepfunction on over 2 seconds that gadua...
by Andrew Stolin
Wed Jul 01, 2015 2:51 am
Forum: OpenSim
Topic: Visualizer API
Replies: 4
Views: 368

Re: Visualizer API

It does seem to work, thank you! It still doesn't want to compile but I think that's because I am not including some libraries in the compilation. That's an other problem! /usr/bin/ld: /tmp/cco9ybJX.o: undefined reference to symbol '_ZNK5SimTK10Visualizer12drawFrameNowERKNS_5StateE' //usr/local/lib/...
by Andrew Stolin
Wed Jul 01, 2015 1:20 am
Forum: OpenSim
Topic: Visualizer API
Replies: 4
Views: 368

Re: Visualizer API

Thank you very much for your answer.
I did try to pause the program after initSystem but it left me with the same white window.

I tried to compile your code but I got:

Code: Select all

error: ‘model_’ was not declared in this scope
      OpenSim::ModelVisualizer& mV(model_.updVisualizer());