Using Matlab API to change model WrapObject

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Wen Wu
Posts: 6
Joined: Thu Jul 25, 2013 2:09 am

Using Matlab API to change model WrapObject

Post by Wen Wu » Thu Nov 20, 2014 3:06 pm

Hi all,
I am wondering if it is possible to change the model WrapObject using Matlab API. Specifically, I used

'my_model.getBodySet().get(Index).getWrapObjectSet().get(Index_wrap)'

to obtain the WrapObject, but it seems I am unable to go any further. It does not have such functions as '.setRadius()', 'setTranslation()' or somthing, but it does have a 'getTranslation()' function, whose return type is a 'SWIG_p_double', which seems uneditable in Matlab.
Does someone know any solution to it, like if it is possible to achieve this using alternative approaches or in C++ API?

Thanks in advance!
Wen

POST REPLY