Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions A_Getting_started/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ the model view window
This tutorial relies heavily on using the AnyBody Managed Model Repository (AMMR).
Follow the steps below to unpack a local version of the AMMR.

# Setup the AMMR
## Setup the AMMR

Before you continue, you must unpack the entire repository and save it on your
hard disk. To get a copy of the AMMR, press the Demo tab in the AnyBody
Expand All @@ -34,7 +34,7 @@ your documents folder by default. It is good practice to create a second local
copy of the AMMR so that you do not overwrite the original AMMR folder by
accident.

# AMMR structure
## AMMR structure

Open a file manager and navigate to the directory where you unpacked the
repository. You should see a folder structure that includes the following
Expand Down
13 changes: 7 additions & 6 deletions A_Getting_started_anyscript/Downloads/demo.arm2d.any
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,18 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
Reaction.Type = {Off};
}; // Shoulder driver

//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
Reaction.Type = {Off};
}; // Elbow driver
}; // Driver folder
Expand Down
Binary file modified A_Getting_started_anyscript/Downloads/demo.arm2d.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion A_Getting_started_anyscript/Downloads/demo.lesson2.any
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Todo: Write a small description of your model here
// Todo: Write a small description of your model here

Main = {
// The actual body model goes in this folder
Expand All @@ -15,6 +15,7 @@ Main = {
// segments, joints, and muscles here.

};

// The study: Operations to be performed on the model
AnyBodyStudy ArmStudy = {
AnyFolder &Model = .ArmModel;
Expand Down
21 changes: 10 additions & 11 deletions A_Getting_started_anyscript/Downloads/demo.lesson5.any
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,21 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
}; // Driver folder

}; // The study: Operations to be performed on the model
// ArmModel

}; // MyModel

// The study: Operations to be performed on the model
AnyBodyStudy ArmStudy = {
AnyFolder &Model = .ArmModel;
Gravity = {0.0, -9.81, 0.0};
Expand Down
16 changes: 8 additions & 8 deletions A_Getting_started_anyscript/Downloads/demo.lesson6.any
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,21 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
Reaction.Type = {Off};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
Reaction.Type = {Off};
}; // Elbow driver
}; // Elbow driver
}; // Driver folder

AnyFolder Muscles = {
// Simple muscle model with constant strength = 400 Newton
AnyMuscleModel MusMdl = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ AnyFolder §ArmModel§ = {
// segments, joints, and muscles here.

};
// The study: Operations to be performed on the model
AnyBodyStudy §ArmStudy§ = {
AnyFolder &Model = .§ArmModel§;
Gravity = {0.0, -9.81, 0.0};
};
//# END SNIPPET 1
// The study: Operations to be performed on the model
AnyBodyStudy ArmStudy = {
AnyFolder &Model = .ArmModel;
Gravity = {0.0, -9.81, 0.0};
};

};
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ AnyFolder ArmModel = {


// Segments
AnyFolder Segs = {
//# BEGIN SNIPPET 1
AnySeg §UpperArm§ = {
//r0 = {0.0, 0.0, 0.0};
//Axes0 = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}};
Mass = §2§;
Jii = {§0.001, 0.01, 0.01§};
}; §//UpperArm§
//# END SNIPPET 1
}; // Segs folder
//# BEGIN SNIPPET 1
AnyFolder Segs = {
AnySeg §UpperArm§ = {
//r0 = {0.0, 0.0, 0.0};
//Axes0 = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}};
Mass = §2§;
Jii = {§0.001, 0.01, 0.01§};
}; §//UpperArm§
}; // Segs folder
//# END SNIPPET 1

};
// The study: Operations to be performed on the model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,18 @@ Main = {

§AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver

//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
}; // Driver folder§
//# END SNIPPET 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,21 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
//# BEGIN SNIPPET 1
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
//# END SNIPPET 1
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
//# BEGIN SNIPPET 2
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
//# END SNIPPET 2
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
}; // Driver folder

}; // The study: Operations to be performed on the model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
//# BEGIN SNIPPET 1
}; // Driver folder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,18 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver

//# BEGIN SNIPPET 1
}; // Driver folder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
}; // Driver folder

//# BEGIN SNIPPET 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
}; // Driver folder

AnyFolder Muscles = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ Main = {

AnyFolder Drivers = {
//---------------------------------
AnyKinEqSimpleDriver ShoulderMotion = {
AnyKinDriver ShoulderMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
DriverPos = {-100*pi/180};
DriverVel = {30*pi/180};
DriverPos0 = {-100*pi/180};
DriverVel0 = {30*pi/180};
}; // Shoulder driver
//---------------------------------
AnyKinEqSimpleDriver ElbowMotion = {
AnyKinDriver ElbowMotion = {
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
DriverPos = {90*pi/180};
DriverVel = {45*pi/180};
}; // Elbow driver
DriverPos0 = {90*pi/180};
DriverVel0 = {45*pi/180};
}; // Elbow driver
}; // Driver folder

AnyFolder Muscles = {
Expand Down
Loading
Loading