Converting .osim files in .cpp files

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
S Jul
Posts: 6
Joined: Mon Feb 25, 2019 9:13 am

Converting .osim files in .cpp files

Post by S Jul » Tue Mar 12, 2019 8:36 am

Hi everyone!
I'm new to Opensim. I don't use the GUi but instead I directly code in C++ and then simulate the movement. As I would like to have a full body model I want to use a code already made. However I can only find .osim files on Internet. Do you know how I could convert those files into .cpp files so I can visualize them myself without using Opensim interface?
Thank you very much in advance!!

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Converting .osim files in .cpp files

Post by jimmy d » Tue Mar 12, 2019 9:46 am

I doubt there is a single .cpp that programmatically builds an entire full body model-- that would be a massive file and would be an incredibly inefficient way of storing a model.

Why can't you just initialize an instance of a Model using a model file? This would be what is typically done.

POST REPLY