Search found 1096 matches
- Fri Oct 16, 2020 12:13 am
- Forum: OpenSim
- Topic: Simple example/template
- Replies: 6
- Views: 457
Re: Simple example/template
For Python and Matlab you do not have to use CMake. People typically use them since it is easy to test and prototype ideas. Most people are used to work with Matlab. Also, the C++ building system is cumbersome. However, some things are not possible to do in Python and Matlab and that is why it is us...
- Thu Oct 15, 2020 2:27 pm
- Forum: OpenSim
- Topic: Simple example/template
- Replies: 6
- Views: 457
Re: Simple example/template
Yes, the best option is to use the xml setup files, because it is very easy to mess things up. If you are interested in this post you can find the Python code to run static optimization without the setup file:
https://github.com/opensim-org/opensim-core/issues/2076
https://github.com/opensim-org/opensim-core/issues/2076
- Thu Oct 15, 2020 6:35 am
- Forum: OpenSim
- Topic: apply a force at a given point
- Replies: 4
- Views: 416
Re: apply a force at a given point
Hi, I think you can update the values of the function. The following code is adapted from PrescribedController which does something similar but for muscles: force = opensim.PrescribedForce.safeDownCast(model.getForceSet().get('Name of the force')) forceFunctionSet = force.get_forceFunctions() pointF...
- Thu Oct 15, 2020 2:37 am
- Forum: OpenSim
- Topic: Simple example/template
- Replies: 6
- Views: 457
Re: Simple example/template
Hi Rahid, Here is an example code for updating the model's pose in Python: https://github.com/mitkof6/symbolic_moment_arm/blob/master/symbolic_moment_arm_opensim40.py#L301 If you have the model visualization set to true: https://github.com/mitkof6/OpenSim_API_tutorial/blob/master/src/01_build_model/...
- Thu Oct 15, 2020 2:32 am
- Forum: OpenSim
- Topic: apply a force at a given point
- Replies: 4
- Views: 416
Re: apply a force at a given point
Hi Kaiwen,
You can apply a prescribed force which should be added before you initialize your model. Please look at the following example:
https://github.com/mitkof6/OpenSim_API_ ... d_force.py
You can apply a prescribed force which should be added before you initialize your model. Please look at the following example:
https://github.com/mitkof6/OpenSim_API_ ... d_force.py
- Thu Oct 15, 2020 1:09 am
- Forum: OpenSim
- Topic: CMC on c++
- Replies: 1
- Views: 158
Re: CMC on c++
Hi Barak, I have not done this for CMC, but you can take a look at the following thread where we discuss the use of the API to utilize the tools: https://github.com/opensim-org/opensim-core/issues/2076 Unfortunately, the easiest way is to write the setup .xml file yourself and call the tool external...
- Thu Oct 15, 2020 1:05 am
- Forum: OpenSim
- Topic: opensim 4.1 can,t load models.
- Replies: 3
- Views: 358
Re: opensim 4.1 can,t load models.
Hi,
You have to check if OpenSim GUI points the correct path to the Geometry folder. This can be done by going to File (or Edit) -> Preferences. In the preferences you will find a variable that defines the absolute path to the Geometry folder.
You have to check if OpenSim GUI points the correct path to the Geometry folder. This can be done by going to File (or Edit) -> Preferences. In the preferences you will find a variable that defines the absolute path to the Geometry folder.
- Tue Oct 13, 2020 2:11 am
- Forum: OpenSim
- Topic: OpenSim models vs 6DOF
- Replies: 4
- Views: 369
Re: OpenSim models vs 6DOF
Hi Mohammadreza, By unlocking the joint, you get better IK tracking. However, think of this as over fitting. With this approach you are capturing the noise and skin artifacts. It is best to keep the model constrained even if it is not a perfect match to your data. Also, from a anatomical point of vi...
- Tue Oct 13, 2020 2:03 am
- Forum: OpenSim
- Topic: SO failed and RRA error
- Replies: 4
- Views: 655
Re: SO failed and RRA error
Also, I am not sure if you are aware of this. You should narrow* the time (begin and end) of the RRA analysis in the region where your subject touches the ground. Maybe you are starting RRA based on the IK information, however, in the begging ground reaction forces may not be applied. Then, it makes...
- Sat Oct 10, 2020 2:07 am
- Forum: OpenSim
- Topic: Linux load plugin
- Replies: 3
- Views: 314
Re: Linux load plugin
Hi Andrew, I have a tutorial example where I extend OpenSim by implementing a hypothetical force component (the same can be done with PrescribedForce): https://github.com/mitkof6/OpenSim_API_tutorial/tree/master/src/04_perturbation_force After this is compiled and tested, one can load the dynamic li...