Specifications

22
We now assume that you have removed eventual errors and have loaded the model successfully.
If you are up to it, let's continue onward to Lesson 2: Segments.
This is a typical error message. First there is a message ID, then a file location and finally the body of
the message. The former two are written in blue ink and underlined to show the underlying active links. The
file location is the line where the bug was found by the system. If you double-click this link, the cursor in the
Editor Window jumps to the location of the error. Notice that this is where the system found the error, but
the error can sometimes be caused by something you mistyped earlier in the file so that you actually have
to change something elsewhere in your model. If you are in doubt of what the error message means, try
clicking the error number ERROR(SCR.PRS11). This will give you a little pop-up window with a more
complete explanation:
Lesson 2: Defining segments and displaying objects
Here's an AnyScript file to start on if you have not completed the previous lesson:
demo.lesson2.any
There are some elements that must be present in a body model for it to make any sense at all. The first one
is segments. They are the rigid elements of the body that move around when the model does its stuff. When
modeling a human or other higher life form, they usually correspond to the bones of the body. However,
they can also be used to model machines, tools, and other things that might be a part of the model but do
not belong to the human body. Hence the more general term "segment"*.
A segment is really nothing but a frame of reference that can move around in space and change its
orientation. It has an origin where its center of mass is assumed to be located, and it has axes coinciding
with its principal inertia axes.
We shall start by defining a folder for the segments. Please add the following text to your model (new text
marked by red):
// The actual body model goes in this folder
AnyFolder ArmModel = {
// Global Reference Frame
AnyFixedRefFrame GlobalRef = {