Specifications
201
The model can be compiled, but it does not do much, and in any case we shall restructure it right away. As
indicated above, we wish to separate the parts that deal with the environment into a dedicated file. Press
the "New Include" button.
This gives you an empty window. Now fill the following into the new include file:
AnyFolder EnvironmentModel = {
};
This folder is for keeping stuff that forms the environment. In this case it is the global reference frame, i.e.
ground, and the pedal that the foot is going to step on. In fact, let's move the global reference frame to this
folder right away. Simply cut the GlobalRef definition from the Pedal.Main.any file and insert it into the
include file (notice that new AnyScript code is written in red while existing code has the usual syntax
highlighting):
AnyFolder EnvironmentModel = {
// Global Reference Frame
AnyFixedRefFrame GlobalRef = {
}; // Global reference frame
};
It is time to save the new include file. Click the "Save" button or Ctrl-S and save it under the name of
"Environment.any" in the same directory as the Main file.
The next step is to add an include statement in the Main file that incorporates the environment into the
model:
Main = {
// The actual body model goes into this folder
AnyFolder MyPedal = {
#include "Environment.any"
}; // MyPedal
We now have the framework for adding the pedal to the model. We are presuming a pedal hinged in one
end and the foot pushing in the other. We define the segment and the hinge in the Environment.any file:
AnyFolder EnvironmentModel = {
// Global Reference Frame










