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
25 changes: 24 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
workflow_dispatch:


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:

find-tag:
Expand Down Expand Up @@ -56,12 +59,32 @@ jobs:
- run: pixi run sphinx-build -M linkcheck . _build -W --keep-going -a -q
continue-on-error: true

test-latest:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: prefix-dev/setup-pixi@v0.8.1
with:
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
environments: test
activate-environment: true

- name: Test Snippets
if: ${{ !github.event.pull_request.head.repo.fork && github.repository == 'anybody/tutorials' }}
run: pytest
env:
RLM_LICENSE: ${{ secrets.LICENSE_TEST_SERVER }}
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_TEST_SERVER_PASSWORD }}

build-latest:

runs-on: ubuntu-latest
needs: [find-tag, link-check]
needs: [link-check, test-latest]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ _build/
*.docx
*.pyc# pixi environments
.pixi
__pycache__

12 changes: 5 additions & 7 deletions A_Getting_started_anyscript/Downloads/demo.lesson2.any
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Todo: Write a small description of your model here

Main = {

// The actual body model goes in this folder
AnyFolder ArmModel = {

Expand All @@ -10,17 +9,16 @@ Main = {

// Todo: Add points for grounding of the model here

}; // Global reference frame

// Todo. Add the model elements such as
};
// Todo: Add the model elements such as
// segments, joints, and muscles here.

}; // ArmModel

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

}; // Main
};
152 changes: 72 additions & 80 deletions A_Getting_started_anyscript/Downloads/demo.lesson3.any
Original file line number Diff line number Diff line change
@@ -1,95 +1,87 @@
// 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
AnyFolder ArmModel = {

// Global Reference Frame
AnyFixedRefFrame GlobalRef = {

// Todo: Add points for grounding of the model here

}; // Global reference frame
// Segments
AnyFolder Segs = {
AnySeg UpperArm =
{
r0 = {0.3, 0, 0};
//rDot0 = {0, 0, 0};
//Axes0 = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}};
//omega0 = {0, 0, 0};
Mass = 2;
Jii = {0.001, 0.01, 0.01};
//Jij = {0, 0, 0};
//sCoM = {0, 0, 0};
AnyDrawSeg drw = {};
AnyRefNode ShoulderNode = {
sRel = {-0.2,0,0};
};
AnyRefNode ElbowNode = {
sRel = {0.2,0,0};
};
AnyRefNode DeltodeusA = {
sRel = {-0.1,0,0.02};
};
AnyRefNode DeltodeusB = {
sRel = {-0.1,0,-0.02};
};
AnyRefNode Brachialis = {
sRel = {0.1,0,0.01};
};
AnyRefNode BicepsShort = {
sRel = {-0.1,0,0.03};
};
AnyRefNode Brachioradialis = {
sRel = {0.05,0,0.02};
};
AnyRefNode TricepsShort = {
sRel = {-0.1,0,-0.01};
};

}; //UpperArm
AnySeg ForeArm = {
r0 = {0, 0.3, 0};
Axes0 =RotMat(-90*pi/180, z);
}; // Global Reference Frame

Mass = 2.0;
Jii = {0.001,0.01,0.01};
AnyRefNode ElbowNode = {
sRel = {-0.2,0,0};
};
AnyRefNode HandNode = {
sRel = {0.2,0,0};
};
AnyRefNode Brachialis = {
sRel = {-0.1,0,0.02};
};
AnyRefNode Brachioradialis = {
sRel = {0.0,0,0.02};
};
AnyRefNode Biceps = {
sRel = {-0.15,0,0.01};
};
AnyRefNode Triceps = {
sRel = {-0.25,0,-0.05};
};
AnyDrawSeg DrwSeg = {};
}; // ForeArm

}; // Segs folder

// Todo. Add the model elements such as
// segments, joints, and muscles here.
// Segments
AnyFolder Segs = {

}; // ArmModel

// The study: Operations to be performed on the model
//UpperArm
AnySeg UpperArm = {
r0 = {0.0, 0.3, 0.0};
Axes0 = RotMat(-90*pi/180, z);
Mass = 2;
Jii = {0.001, 0.01, 0.01};
AnyDrawSeg drw = {};
AnyRefNode ShoulderNode = {
sRel = {-0.2,0,0};
};
AnyRefNode ElbowNode = {
sRel = {0.2,0,0};
};
AnyRefNode DeltodeusA = {
sRel = {-0.1,0,0.02};
};
AnyRefNode DeltodeusB = {
sRel = {-0.1,0,-0.02};
};
AnyRefNode Brachialis = {
sRel = {0.1,0,0.01};
};
AnyRefNode BicepsShort = {
sRel = {-0.1,0,0.03};
};
AnyRefNode Brachioradialis = {
sRel = {0.05,0,0.02};
};
AnyRefNode TricepsShort = {
sRel = {-0.1,0,-0.01};
};
}; //UpperArm

// ForeArm
AnySeg ForeArm = {
r0 = {0.3, 0.0, 0.0};
Mass = 2.0;
Jii = {0.001,0.01,0.01};
AnyRefNode ElbowNode = {
sRel = {-0.2,0,0};
};
AnyRefNode HandNode = {
sRel = {0.2,0,0};
};
AnyRefNode Brachialis = {
sRel = {-0.1,0,0.02};
};
AnyRefNode Brachioradialis = {
sRel = {0.0,0,0.02};
};
AnyRefNode Biceps = {
sRel = {-0.15,0,0.01};
};
AnyRefNode Triceps = {
sRel = {-0.25,0,-0.05};
};
AnyDrawSeg DrwSeg = {};
}; // ForeArm

// Todo: Add the model elements such as
// segments, joints, and muscles here.

}; // Segs folder

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

}; // Main


};
2 changes: 1 addition & 1 deletion A_Getting_started_anyscript/Downloads/demo.lesson4.any
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Main = {

}; // Segs folder

// Joints
AnyFolder Jnts = {

//---------------------------------
AnyRevoluteJoint Shoulder = {
Axis = z;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Todo: Write a small description of your model here

Main = {
//# BEGIN SNIPPET 1
// The actual body model goes in this folder
AnyFolder §ArmModel§ = {

// Global Reference Frame
AnyFixedRefFrame GlobalRef = {

// Todo: Add points for grounding of the model here

};

// Todo: Add the model elements such as
// segments, joints, and muscles here.

};
//# 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
@@ -0,0 +1,25 @@
// Todo: Write a small description of your model here

Main = {
//# BEGIN SNIPPET 1
// The actual body model goes in this folder
AnyFolder ArmModel = {

// Global Reference Frame
AnyFixedRefFrame GlobalRef = {
// Todo: Add points for grounding of the model here
};

§// Segments
AnyFolder Segs = {
}; // Segs folder §

};
//# 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
@@ -0,0 +1,43 @@
//expect_errors = ["'<ObjectName>'", "Model loading skipped"]

// Todo: Write a small description of your model here

Main = {
// The actual body model goes in this folder
AnyFolder ArmModel = {

// Global Reference Frame
AnyFixedRefFrame GlobalRef = {
// Todo: Add points for grounding of the model here
};

//# BEGIN SNIPPET 1
// Segments
AnyFolder Segs = {
§AnySeg <ObjectName> = {
//viewRefFrame.Visible = Off;
//viewNodes.Visible = Off;
//r0 = {0.0, 0.0, 0.0};
//rDot0 = {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}};
//omega0 = {0.0, 0.0, 0.0};
Mass = 0.0;
Jii = {0.0, 0.0, 0.0};
//Jij = {0.0, 0.0, 0.0};
//sCoM = {0.0, 0.0, 0.0};
//JaboutCoMOnOff = Off;
//viewInertia.Visible = Off;
//AnyInertia &<Insert name0> = <Insert object reference (or full object definition)>;
//AnyInertia &<Insert name1> = <Insert object reference (or full object definition)>; You can make any number of AnyInertia objects!
};§
}; // Segs folder
//# 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
@@ -0,0 +1,32 @@
// Todo: Write a small description of your model here

Main = {
// The actual body model goes in this folder
AnyFolder ArmModel = {

// Global Reference Frame
AnyFixedRefFrame GlobalRef = {
// Todo: Add points for grounding of the model here
};


// 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

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

};
Loading