Page 1 of 1

Using Matlab API to change model WrapObject

Posted: Thu Nov 20, 2014 3:06 pm
by unimelbww
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