Page 1 of 1

Converting .osim files in .cpp files

Posted: Tue Mar 12, 2019 8:36 am
by sjullien
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!!

Re: Converting .osim files in .cpp files

Posted: Tue Mar 12, 2019 9:46 am
by jimmy
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.