...
Below are some useful (and necessary) resources that you should read before you begin and keep handy while you build your model;
Read the Introduction to the OpenSim API section
- Setup your Matlab environment using instructions from the Scripting with Matlab page.
- Bookmark the Common Scripting Commands page for helpful tips and code snippets
- Read the Guide to Using Doxygen pages and bookmark the OpenSim Doxygen documentation
- Bookmark the API Guide on Doxygen.
- Setup a working folder where you will save and test your model.
...
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
|
...
- Right Thigh: Name: RightThigh, CoM Location: (0,0,0) m, Mass: 1 kg, BodyInertia: (2,2,0.02,0,0,0) kg-m2
- Right Thigh Geometry: Ellipsoid where X & Z radii = thighLength/10, Y radii = thighLength/2
- Right Hip Joint: JointName: RightThighToPelvis, CoordinateName: RHip_rz, DefaultValue: 30 deg, Range: -100 deg to 100 deg
- Left Thigh: Name: LeftThigh, CoM Location: (0,0,0) m, Mass: 1 kg, BodyInertia: (2,2,0.02,0,0,0) kg-m2
- Left Thigh Geometry: Ellipsoid where X & Z radii = thighLength/10, Y radii = thighLength/2
- Left Hip Joint: JointName: LeftThighToPelvis, CoordinateName: LHip_rz, DefaultValue: -10 deg, Range: -100 deg to 100 deg
- Right Shank: Name: RightShank, CoM Location: (0,0,0) m, Mass: 0.1 kg, BodyInertia: (12,12,10.002,0,0,0) kg-m2
- Right Shank Geometry: Ellipsoid where X & Z radii = thighLengthshankLength/10, Y radii = thighLengthshankLength/2
- Right Knee Joint: JointName: RightShankToThigh, CoordinateName: RKnee_rz, DefaultValue: -30 deg, Range: -100 deg to 0 deg
- Left Shank: Name: LeftShank, CoM Location: (0,0,0) m, Mass: 0.1 kg, BodyInertia: (12,12,10.002,0,0,0) kg-m2
- Left Shank Geometry: Ellipsoid where X & Z radii = thighLengthshankLength/10, Y radii = thighLengthshankLength/2
- Left Knee Joint: JointName: LeftShankToThigh, CoordinateName: LKnee_rz, DefaultValue: -30 deg, Range: -100 deg to 0 deg
...
The model will simulate forward, but will likely fall immediately. Passive Dynamic walkers are sensitive to initial conditions; you can change the initial pose in the GUI and re-run the forward simulation. In the next example, we will augment the model to improve its stability.
...