Search found 94 matches
- Wed Jul 26, 2017 5:38 am
- Forum: OpenSim
- Topic: Visualization using OpenSim API
- Replies: 13
- Views: 2027
Re: Visualization using OpenSim API
Another thought: I don't think the packaged installers include Debug libraries. Have you been building in Debug mode or are these issues present when building in Release mode as well? Dear Uchida: Thank you for your reply! I have use the compile mode RelwithDebInfo and succeeded in IK, ID and stati...
- Tue Jul 25, 2017 5:48 am
- Forum: OpenSim
- Topic: Visualization using OpenSim API
- Replies: 13
- Views: 2027
Re: Visualization using OpenSim API
The following works in MATLAB using OpenSim 3.3: import org.opensim.modeling.*; model = Model('London Lower Limb Model.osim'); model.setUseVisualizer(1); state = model.initSystem(); model.getVisualizer().show(state); I also confirmed that the model opens successfully in the OpenSim 3.2 GUI, so I do...
- Mon Jul 24, 2017 10:11 pm
- Forum: OpenSim
- Topic: Seek for instructions on the use of API class: storage and state
- Replies: 1
- Views: 101
Seek for instructions on the use of API class: storage and state
Dear All: Could anyone can help provide some brief codes illustrating the most common use of OpenSim API class: storage and state ? e.g. how to get the whole state of a moving model at a time frame in simulation ? And when will the class "storage" most commonly be used during simulation ? Thank you!...
- Mon Jul 24, 2017 8:31 pm
- Forum: OpenSim
- Topic: Visualization using OpenSim API
- Replies: 13
- Views: 2027
Re: Visualization using OpenSim API
Please upload the files necessary to reproduce the error and I will try to investigate. Dear Uchida: In the attachment please find the files concerned. Another problem is the ScaleTool object, also with unhandled exception issues. The code is inside the file containing "main()"; Thanks & Best Regar...
- Mon Jul 24, 2017 4:26 am
- Forum: OpenSim
- Topic: Visualization using OpenSim API
- Replies: 13
- Views: 2027
Re: Visualization using OpenSim API
The constructed model object's member "_fileName" is "whether or not this task will be used during inverse kinematic slove"! It sounds like there is a parsing error when reading your model file. The phrase "Whether or not this task will be used during inverse kinematics solve" is a comment associat...
- Sun Jul 23, 2017 8:38 pm
- Forum: OpenSim
- Topic: ScaleTool object constructing problem in OpenSim API
- Replies: 3
- Views: 203
Re: ScaleTool object constructing problem in OpenSim API
I haven't worked with the ScaleTool in the API, but it's used in testScale.cpp ( https://github.com/opensim-org/opensim-core/blob/master/Applications/Scale/test/testScale.cpp ). Following that example, I would try the following: std::unique_ptr<ScaleTool> scl_tol(new ScaleTool()); scl_tol->setSubje...
- Sun Jul 23, 2017 8:32 pm
- Forum: OpenSim
- Topic: Visualization using OpenSim API
- Replies: 13
- Views: 2027
Re: Visualization using OpenSim API
No visualization happens. That is the expected behavior; initSystem() does not generate visualization. If I add the code "osimModel.getVisualizer().show(stat);", unhandled exception error of VC++ happens. Have you tried replacing State with State& on line 2? The show() method takes a const SimTK::S...
- Sun Jul 23, 2017 6:56 am
- Forum: OpenSim
- Topic: Visualization using OpenSim API
- Replies: 13
- Views: 2027
Visualization using OpenSim API
Dear All: I want to use OpenSim API to visualize the result of the simulation states, while when I use the following code: osimModel.setUseVisualizer(true); State stat=osimModel.initSystem(); No visualization happens. If I add the code " osimModel.getVisualizer().show(stat); ", unhandled exception e...
- Sun Jul 23, 2017 4:30 am
- Forum: OpenSim
- Topic: ScaleTool object constructing problem in OpenSim API
- Replies: 3
- Views: 203
ScaleTool object constructing problem in OpenSim API
Dear All: I try to use OpenSim API ScaleTool to scale models.The code is as: ScaleTool scl_tol(); scl_tol.setSubjectMass(72.6); There is unhandled exception in VC++ when "scl_tol.setSubjectMass" is being executed. Maybe due to the ScaleTool is not successfully constructed? Even if I add a xml scale ...
- Mon Mar 21, 2016 5:08 am
- Forum: OpenSim
- Topic: Applying residuals at pelvis
- Replies: 5
- Views: 363
Re: Applying residuals at pelvis
If I'm correct you know [*] The positions, velocities and accelerations of every body [*] All external forces, except the external force from the chair. In this case, you can find the unknown external force by the law of conservation of momentum. Dear Kevin: Yes, thanks. But do you know OpenSim pro...