Specifications

210
AnyRefNode &Seat = Main.MyPedal.EnvironmentModel.GlobalRef.Hpoint;
AnySeg &Pelvis = Main.MyPedal.HumanModel.Trunk.SegmentsLumbar.PelvisSeg;
};
};
Save the file under the name JointsAndDrivers.any. Then insert the necessary include statement into the
main file:
AnyFolder HumanModel={
#include "../../../BRep/Aalborg/BodyModels/RightLeg/BodyModel_NoMuscles.any"
#include "../../../BRepAalborg/Scaling/ScalingStandard.any"
AnyFolder StrengthParameters={
AnyVar SpecificMuscleTensionSpine= 90; //N/cm^2
AnyVar StrengthIndexLeg= 1;
AnyVar SpecificMuscleTensionShoulderArm= 90; //N/cm^2
};
};
AnyFolder ModelEnvironmentConnection = {
#include "JointsAndDrivers.any"
};
Hit F7 to reload the model. The model still loads in the same position as before. If you run the
SetInitialConditions operation, the body model may move backward with the pelvis to the point you have
specified (You may have to click the model view to update the picture). This brings up the challenge of
getting the model elements aligned reasonably at load time. This is an important topic because the model
will be unable to resolve the initial conditions when we add more constraints if all the segments are loaded
in a big mess on top of each other.
For the purpose of initial alignment, most applications have a file called InitialPositions.any. It contains
specifications of positions and rotations of all segments in the model at load time. It is possible to type
reasonable positions manually into this file, but it is much easier to use the version from the standing model
we used in the first lessons in this tutorial. It allows us to set the load-time positions of the model by means
of anatomical joint angles, which is more intuitive for most users.
As a first step, go to /ARep/Aalborg/StandingModel, and make copies of the two files InitialPositions.any and
Mannequin.any. Paste these files into the directory of the model you are working on here. Then insert a
couple of new include statements into the main file:
AnyFolder MyPedal = {
#include "Environment.any"
#include "Mannequin.any"
AnyFolder HumanModel={
#include "../../../BRep/Aalborg/BodyModels/RightLeg/BodyModel_NoMuscles.any"
#include "../../../BRepAalborg/Scaling/ScalingStandard.any"
AnyFolder StrengthParameters={
AnyVar SpecificMuscleTensionSpine= 90; //N/cm^2
AnyVar StrengthIndexLeg= 1;
AnyVar SpecificMuscleTensionShoulderArm= 90; //N/cm^2
};
};
AnyFolder ModelEnvironmentConnection = {
#include "JointsAndDrivers.any"
#include "InitialPositions.any"
};
}; // MyPedal