Specifications
101
Once again we need two drivers to put the model into the posture for calibration of the TricepsLong muscle:
// -----------------------------------------------------
// Triceps Calibration Drivers
// -----------------------------------------------------
AnyFolder TricepsCalibrationDrivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyJoint &Jnt = Main.ArmModel.Jnts.Shoulder;
DriverPos = {-90*pi/180}; // Vertical upper arm
DriverVel = {0.0};
Reaction.Type = {Off};
};
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyJoint &Jnt = Main.ArmModel.Jnts.Elbow;
DriverPos = {90*pi/180}; // 30 degrees elbow flexion
DriverVel = {0.0};
Reaction.Type = {Off};
};
};
As you can see, this differs from the drivers for calibration of BicepsLong only by using 90 degrees elbow
flexion rather than 30 degrees.
What we could do now is to take the two advanced muscle models out of the ArmModel folder, so that we
could refer to them individually in the study; just like we did with the drivers. But let's try something else
instead. We'll simply refer directly to the individual elements of the ArmModel in the calibration study rather
than the entire ArmModel. This way we are able to leave out the muscles we do not want to include. So we
simply make a new study that looks like this:
// A calibration study for TricepsLong
AnyBodyCalibrationStudy TricepsCalibrationStudy = {
AnyFixedRefFrame &GlobalRef = Main.ArmModel.GlobalRef;
AnyFolder &Segs = Main.ArmModel.Segs;
AnyFolder &Jnts = Main.ArmModel.Jnts;
AnyViaPointMuscle &TricepsLong = Main.ArmModel.Muscles.TricepsLong;
AnyFolder& Drivers = Main.TricepsCalibrationDrivers;
nStep = 1;
}; // End of study
Notice that this study refers to each folder inside the ArmModel individually. This way, we can restrict our
references only to the TricepsLong muscle and leave all the other muscles out. This means that the other
muscles will not be affected by this calibration. So if you initially calibrate all the muscles by the
CalibrationStudy and subsequently run the TricepsCalibrationStudy, then the latter will not overwrite the
effect of the former, but only for the muscle mentioned in the study, i.e. the TricepsLong.
Here's a link to the finished calibration.any
example.










