Page 1 of 1

Model Visualization using opensim4.0 C++ API

Posted: Mon Jun 04, 2018 5:49 am
by veerendra
1. Can't add .vtp files using addDisplayGeometry() function. What is the equivalent of addDisplayGeometry(){which is in 3.x} in opensim4.0?
2. What is the general procedure to visualize opensim model geometry(.osim and .vtp) using opensim4.0 C++ API?

Re: Model Visualization using opensim4.0 C++ API

Posted: Mon Jun 04, 2018 8:47 am
by chrisdembia

Code: Select all

Body.attachGeometry(Mesh("file.vtp"));

Re: Model Visualization using opensim4.0 C++ API

Posted: Tue Jun 05, 2018 3:54 am
by veerendra
Thanks Christopher..!

Re: Model Visualization using opensim4.0 C++ API

Posted: Mon Dec 24, 2018 7:49 pm
by cjszero
Why does it show no matching function for call to OpenSim::Body::attachGeometry OpenSim::Mesh

Re: Model Visualization using opensim4.0 C++ API

Posted: Fri Dec 28, 2018 2:02 pm
by mitkof6
Are you sure that CMake finds OpenSim 4.0 and not 3.3?

Re: Model Visualization using opensim4.0 C++ API

Posted: Thu Jan 03, 2019 1:21 am
by cjszero
Yes, in fact I did not find opensim3.3 on opensim github, so I downloaded opensim4.0. Can you tell me where to find 3.3? Thank you

Re: Model Visualization using opensim4.0 C++ API

Posted: Thu Jan 03, 2019 4:42 am
by mitkof6
With find I meant the find command of CMake which automatically finds the installed version of OpenSim. If you have OpenSim 3.3 and 4.0 installed it may be that CMake finds the previous version, where the function prototype for attaching geometries to bodies is different.

Anyway, you can find previous versions of OpenSim under the link Previous Releases in the download page:

https://simtk.org/frs/?group_id=91

Re: Model Visualization using opensim4.0 C++ API

Posted: Thu Jan 03, 2019 6:05 pm
by cjszero
OK,I will try ,thank you.

Re: Model Visualization using opensim4.0 C++ API

Posted: Wed Jan 16, 2019 6:11 pm
by cjszero
Dear Dimitar Stanev, thank you for your help, I designed an exoskeleton similar to the chairless chair (to support the body weight). I want to use the opensim contrast simulation before and after wearing the exoskeleton, the thigh muscle torque changes. I checked a lot of information, but I can't do anything, can you give me some advice? Or recommend some information. I will be very grateful to you.