Skip to content

Commit ab67a3d

Browse files
JacobAdamsenJacob Hilmar Adamsen
andauthored
Motion capture movement (#62)
* Renames and updates of Motion Capture Movement tutorials * Rename and update of images in Motion Capture movement tutorial * Update tutorial references to Motion Capture Movement * Added code snippets to set ud Test * Finished Code snippets for lesson 4 and fixed errors in Test * Update Getting Started AnyScript to match changes in Motion Capture Movement (cherry picked from commit df25b3c) * Update of Motion Capture movement and How to Write AnyScript tutorials --------- Co-authored-by: Jacob Hilmar Adamsen <jha@anybodytech.com>
1 parent 4f23c52 commit ab67a3d

160 files changed

Lines changed: 2976 additions & 1274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

A_Getting_started/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the model view window
2121
This tutorial relies heavily on using the AnyBody Managed Model Repository (AMMR).
2222
Follow the steps below to unpack a local version of the AMMR.
2323

24-
# Setup the AMMR
24+
## Setup the AMMR
2525

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

37-
# AMMR structure
37+
## AMMR structure
3838

3939
Open a file manager and navigate to the directory where you unpacked the
4040
repository. You should see a folder structure that includes the following

A_Getting_started_anyscript/Downloads/demo.arm2d.any

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,18 @@ Main = {
123123

124124
AnyFolder Drivers = {
125125
//---------------------------------
126-
AnyKinEqSimpleDriver ShoulderMotion = {
126+
AnyKinDriver ShoulderMotion = {
127127
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
128-
DriverPos = {-100*pi/180};
129-
DriverVel = {30*pi/180};
128+
DriverPos0 = {-100*pi/180};
129+
DriverVel0 = {30*pi/180};
130130
Reaction.Type = {Off};
131131
}; // Shoulder driver
132+
132133
//---------------------------------
133-
AnyKinEqSimpleDriver ElbowMotion = {
134+
AnyKinDriver ElbowMotion = {
134135
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
135-
DriverPos = {90*pi/180};
136-
DriverVel = {45*pi/180};
136+
DriverPos0 = {90*pi/180};
137+
DriverVel0 = {45*pi/180};
137138
Reaction.Type = {Off};
138139
}; // Elbow driver
139140
}; // Driver folder
2.5 KB
Binary file not shown.

A_Getting_started_anyscript/Downloads/demo.lesson2.any

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Todo: Write a small description of your model here
1+
// Todo: Write a small description of your model here
22

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

1717
};
18+
1819
// The study: Operations to be performed on the model
1920
AnyBodyStudy ArmStudy = {
2021
AnyFolder &Model = .ArmModel;

A_Getting_started_anyscript/Downloads/demo.lesson5.any

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,21 @@ Main = {
114114

115115
AnyFolder Drivers = {
116116
//---------------------------------
117-
AnyKinEqSimpleDriver ShoulderMotion = {
117+
AnyKinDriver ShoulderMotion = {
118118
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
119-
DriverPos = {-100*pi/180};
120-
DriverVel = {30*pi/180};
119+
DriverPos0 = {-100*pi/180};
120+
DriverVel0 = {30*pi/180};
121121
}; // Shoulder driver
122122
//---------------------------------
123-
AnyKinEqSimpleDriver ElbowMotion = {
123+
AnyKinDriver ElbowMotion = {
124124
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
125-
DriverPos = {90*pi/180};
126-
DriverVel = {45*pi/180};
127-
}; // Elbow driver
125+
DriverPos0 = {90*pi/180};
126+
DriverVel0 = {45*pi/180};
127+
}; // Elbow driver
128128
}; // Driver folder
129-
130-
}; // The study: Operations to be performed on the model
131-
// ArmModel
132-
129+
}; // MyModel
130+
131+
// The study: Operations to be performed on the model
133132
AnyBodyStudy ArmStudy = {
134133
AnyFolder &Model = .ArmModel;
135134
Gravity = {0.0, -9.81, 0.0};

A_Getting_started_anyscript/Downloads/demo.lesson6.any

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@ Main = {
117117

118118
AnyFolder Drivers = {
119119
//---------------------------------
120-
AnyKinEqSimpleDriver ShoulderMotion = {
120+
AnyKinDriver ShoulderMotion = {
121121
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
122-
DriverPos = {-100*pi/180};
123-
DriverVel = {30*pi/180};
122+
DriverPos0 = {-100*pi/180};
123+
DriverVel0 = {30*pi/180};
124124
Reaction.Type = {Off};
125125
}; // Shoulder driver
126126
//---------------------------------
127-
AnyKinEqSimpleDriver ElbowMotion = {
127+
AnyKinDriver ElbowMotion = {
128128
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
129-
DriverPos = {90*pi/180};
130-
DriverVel = {45*pi/180};
129+
DriverPos0 = {90*pi/180};
130+
DriverVel0 = {45*pi/180};
131131
Reaction.Type = {Off};
132-
}; // Elbow driver
132+
}; // Elbow driver
133133
}; // Driver folder
134-
134+
135135
AnyFolder Muscles = {
136136
// Simple muscle model with constant strength = 400 Newton
137137
AnyMuscleModel MusMdl = {

A_Getting_started_anyscript/Snippets/lesson1/snip.NewModel.main-1.any

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ AnyFolder §ArmModel§ = {
1616
// segments, joints, and muscles here.
1717

1818
};
19+
// The study: Operations to be performed on the model
20+
AnyBodyStudy §ArmStudy§ = {
21+
AnyFolder &Model = .§ArmModel§;
22+
Gravity = {0.0, -9.81, 0.0};
23+
};
1924
//# END SNIPPET 1
20-
// The study: Operations to be performed on the model
21-
AnyBodyStudy ArmStudy = {
22-
AnyFolder &Model = .ArmModel;
23-
Gravity = {0.0, -9.81, 0.0};
24-
};
25-
2625
};

A_Getting_started_anyscript/Snippets/lesson2/snip.NewModel.main-3.any

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ AnyFolder ArmModel = {
1111

1212

1313
// Segments
14-
AnyFolder Segs = {
15-
//# BEGIN SNIPPET 1
16-
AnySeg §UpperArm§ = {
17-
//r0 = {0.0, 0.0, 0.0};
18-
//Axes0 = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}};
19-
Mass = §2§;
20-
Jii = {§0.001, 0.01, 0.01§};
21-
}; §//UpperArm§
22-
//# END SNIPPET 1
23-
}; // Segs folder
14+
//# BEGIN SNIPPET 1
15+
AnyFolder Segs = {
16+
AnySeg §UpperArm§ = {
17+
//r0 = {0.0, 0.0, 0.0};
18+
//Axes0 = {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}};
19+
Mass = §2§;
20+
Jii = {§0.001, 0.01, 0.01§};
21+
}; §//UpperArm§
22+
}; // Segs folder
23+
//# END SNIPPET 1
2424

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

A_Getting_started_anyscript/Snippets/lesson4/snip.NewModel.main-1.any

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,18 @@ Main = {
116116

117117
§AnyFolder Drivers = {
118118
//---------------------------------
119-
AnyKinEqSimpleDriver ShoulderMotion = {
119+
AnyKinDriver ShoulderMotion = {
120120
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
121-
DriverPos = {-100*pi/180};
122-
DriverVel = {30*pi/180};
121+
DriverPos0 = {-100*pi/180};
122+
DriverVel0 = {30*pi/180};
123123
}; // Shoulder driver
124124

125125
//---------------------------------
126-
AnyKinEqSimpleDriver ElbowMotion = {
126+
AnyKinDriver ElbowMotion = {
127127
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
128-
DriverPos = {90*pi/180};
129-
DriverVel = {45*pi/180};
130-
}; // Elbow driver
128+
DriverPos0 = {90*pi/180};
129+
DriverVel0 = {45*pi/180};
130+
}; // Elbow driver
131131
}; // Driver folder§
132132
//# END SNIPPET 1
133133

A_Getting_started_anyscript/Snippets/lesson4/snip.NewModel.main-2.any

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,21 @@ Main = {
114114

115115
AnyFolder Drivers = {
116116
//---------------------------------
117-
AnyKinEqSimpleDriver ShoulderMotion = {
117+
AnyKinDriver ShoulderMotion = {
118118
//# BEGIN SNIPPET 1
119119
AnyRevoluteJoint &Jnt = ..Jnts.Shoulder;
120120
//# END SNIPPET 1
121-
DriverPos = {-100*pi/180};
122-
DriverVel = {30*pi/180};
121+
DriverPos0 = {-100*pi/180};
122+
DriverVel0 = {30*pi/180};
123123
}; // Shoulder driver
124124
//---------------------------------
125-
AnyKinEqSimpleDriver ElbowMotion = {
125+
AnyKinDriver ElbowMotion = {
126126
//# BEGIN SNIPPET 2
127127
AnyRevoluteJoint &Jnt = ..Jnts.Elbow;
128128
//# END SNIPPET 2
129-
DriverPos = {90*pi/180};
130-
DriverVel = {45*pi/180};
131-
}; // Elbow driver
129+
DriverPos0 = {90*pi/180};
130+
DriverVel0 = {45*pi/180};
131+
}; // Elbow driver
132132
}; // Driver folder
133133

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

0 commit comments

Comments
 (0)