Model Visualization using opensim4.0 C++ API

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
veerendra v
Posts: 6
Joined: Wed May 16, 2018 5:03 am

Model Visualization using opensim4.0 C++ API

Post by veerendra v » Mon Jun 04, 2018 5:49 am

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?

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

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

Post by Christopher Dembia » Mon Jun 04, 2018 8:47 am

Code: Select all

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

User avatar
veerendra v
Posts: 6
Joined: Wed May 16, 2018 5:03 am

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

Post by veerendra v » Tue Jun 05, 2018 3:54 am

Thanks Christopher..!

User avatar
cui jiashuo
Posts: 17
Joined: Thu Dec 06, 2018 6:21 pm

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

Post by cui jiashuo » Mon Dec 24, 2018 7:49 pm

Why does it show no matching function for call to OpenSim::Body::attachGeometry OpenSim::Mesh

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

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

Post by Dimitar Stanev » Fri Dec 28, 2018 2:02 pm

Are you sure that CMake finds OpenSim 4.0 and not 3.3?

User avatar
cui jiashuo
Posts: 17
Joined: Thu Dec 06, 2018 6:21 pm

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

Post by cui jiashuo » Thu Jan 03, 2019 1:21 am

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

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

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

Post by Dimitar Stanev » Thu Jan 03, 2019 4:42 am

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

User avatar
cui jiashuo
Posts: 17
Joined: Thu Dec 06, 2018 6:21 pm

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

Post by cui jiashuo » Thu Jan 03, 2019 6:05 pm

OK,I will try ,thank you.

User avatar
cui jiashuo
Posts: 17
Joined: Thu Dec 06, 2018 6:21 pm

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

Post by cui jiashuo » Wed Jan 16, 2019 6:11 pm

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.

POST REPLY