Translating python API code to matlab
Posted: Wed Apr 28, 2021 12:21 pm
Hi,
I am just starting to use the opensim API for matlab. I have a line of code in python which I am trying to convert to matlab. However, I missing a specific part for the matlab code. I was trying now for hours to get a results and finally ended up with getting help here in the forum : ) Any hints more than appreciated:
Python version:
femContact = osimModel.getContactGeometrySet().get('femur_cartilage')
femContactMesh = osim.PropertyString_getAs(femContact.getPropertyByName('mesh_file')).getValue()
What I was not able to find in Matlab was the part 'PropertyString_getAs' - does anyone have an idea how this needs to be done in matlab?
Thank you, Brian
I am just starting to use the opensim API for matlab. I have a line of code in python which I am trying to convert to matlab. However, I missing a specific part for the matlab code. I was trying now for hours to get a results and finally ended up with getting help here in the forum : ) Any hints more than appreciated:
Python version:
femContact = osimModel.getContactGeometrySet().get('femur_cartilage')
femContactMesh = osim.PropertyString_getAs(femContact.getPropertyByName('mesh_file')).getValue()
What I was not able to find in Matlab was the part 'PropertyString_getAs' - does anyone have an idea how this needs to be done in matlab?
Thank you, Brian