Page 1 of 1

ConditionalPathPoint In Matlab API

Posted: Mon May 20, 2024 5:28 am
by craving
Hi, I have troubled with the BIClong_point9 below for weeks, do you know how to add ConditionalPathPoint to muscle,it didn't work at Matlab, and i need insure that i connect socket coordinate correctly so that finalizeconnection can worked.
//..........
BIClong.addNewPathPoint('BIClong_point7', humerus, Vec3(0.0228,-0.1754,-0.0063));
BIClong.addNewPathPoint('BIClong_point8', radius, Vec3(-0.002,-0.0375,-0.002));
coord = osimModel.updCoordinateSet().get('elbow_flextion');~~~~~~error
BIClong_point9 = ConditionalPathPoint();
BIClong_point9.setName('BIClong_point9');
BIClong_point9.connectSocket_coordinate(coord);~~~~~error
BIClong_point9.setRangeMax(1.570796326795);
BIClong_point9.setRangeMin(-0.63879050623);
BIClong.updGeometryPath.updPathPointSet.cloneAndAppend(BIClong_point9);~~~~~error
osimModel.addForce(BIClong);
//..............
Thanks!