hello every one
i am scaling a model by matlab programning
but when i want to input axis for set measurement i get this error ....
i would be very gradful if someone can help me.
m1=Measurement();
m1.setName('pelvis')
mps=m1.getMarkerPairSet();
mp=MarkerPair('LTAS','RTAS');
mps.adoptAndAppend(mp);
sm= model_Scalar.getMeasurementSet()
sm.adoptAndAppend(m)
bs1=BodyScale();
bs1.setName('pelvis');
bs1.setAxisNames('X Y Z')
No method 'setAxisNames' with matching signature found for class 'org.opensim.modeling.BodyScale'.
king regards
measurement set
- Thomas Uchida
- Posts: 1804
- Joined: Wed May 16, 2012 11:40 am
Re: measurement set
Please see the doxygen documentation for the setAxisNames() method: https://simtk.org/api_docs/opensim/api_ ... 1e27970a96. The argument must be of type Array<std::string>. In MATLAB, you need to do something like the following:
Code: Select all
import org.opensim.modeling.*
% ...
axisNames = ArrayStr;
axisNames.append('X');
axisNames.append('Y');
axisNames.append('Z');
bs1.setAxisNames(axisNames);
Re: measurement set
thank you .
it helps me alotof.
it helps me alotof.
Re: measurement set
Dear Tom:tkuchida wrote:Please see the doxygen documentation for the setAxisNames() method: https://simtk.org/api_docs/opensim/api_ ... 1e27970a96. The argument must be of type Array<std::string>. In MATLAB, you need to do something like the following:Code: Select all
import org.opensim.modeling.* % ... axisNames = ArrayStr; axisNames.append('X'); axisNames.append('Y'); axisNames.append('Z'); bs1.setAxisNames(axisNames);
Thank you so much and it also indeed solved my problem of using Array in MATLAB ID process!
Jack