Soccer Kick Example
The Soccer Kick examples files will be available in an upcoming minor release of OpenSim 4.0. Until then, you can download the files here and place the unzipped folder in your resources directory (ie Documents/OpenSim/4.0/Models/SoccerKick).
This example is for students and educators interested in how elements of a musculoskeletal model come together to generate simulations of human movement.
The soccer kick is meant to be compelling, challenging, and fun, allowing students to experiment with motor control strategies.
Installation (4.0 and later)
- Download the example files (e.g. SoccerKickExamplefor4.0-latest.zip)
- Unzip the archive into the resources folder of your installation (e.g. Documents/OpenSim/4.0/Models/SoccerKick)
- Open the OpenSim application, close all open models.
- Load the model Documents/OpenSim/4.0/Models/SoccerKick/SoccerKickingModel.osim
- From the Scripts menu of the application, run the script Documents/OpenSim/4.0/Models/SoccerKick/SoccerDemoWithReset.py, this will open two new panels to control the model
- Rearrange the panels and view as desired (panels can be dragged and docked using the tab handles, other panels can be closed if desired
- Use sliders to modify muscle forces, and when ready hit the kick... button, the player will hit the ball towards the goal.
- click the button "Get Max Speed" to update the text field next to it with the max speed achieved.
Installation (pre 4.0)
- Download the installer (e.g. OpenSim-SoccerKick-Installer-vX-win32) and run to install OpenSim on a Windows machine. Follow the instructions, accepting the defaults.
(If you have other OpenSim installations on the same machine and you're an API user, select to not add to the PATH).
- Launch the OpenSim Exhibit GUI. It should appear under Programs->OpenSim Exhibit (2.4) or use the desktop shortcut.
- You also need to make a one-time change to the preferences. Select Edit->Preferences. Then:
- Display Contact Geometry=Off, so that the visuals of the simplified geometry used for contact doesn't clutter the screen.
- Persist Models=Off, so that automatic restoration of loaded models doesn't interfere with demo upon OpenSim restart.
- Make sure AntiAliasingFrames is set to zero.
- Select Help -> CustomTools -> Soccer.oscript. You will need to perform this step every time you relaunch OpenSim.
- This will launch three windows: Soccer Kick Controls, Instructions Window, and View.
- If the View window is black, click on the View window and drag the mouse to rotate the view slightly.
- Make sure that the Soccer Kick Controls window is large enough to include all of the sliders and buttons. Drag the separator between the controls window and Instructions Window to fit more text/instructions and eliminate white space. (The bottom button in the Soccer Controls window is "Reset View".)
Troubleshooting (Pre 4.0)
- If you need to restart OpenSim, to restore the example, select Help -> CustomTools -> Soccer.oscript.
- If the View, Controls or Instruction window are accidentally closed, select "Window"->"Add View", "Open Parameters Window", "Open Instructions Window" respectively.
- Use the "Reset View" button, if you want to reset the original view on the soccer player and goal.
- If the layout of the application is incorrect and you cannot restore it by dragging and re-docking or reopening windows:
- Close the application.
- Find the directory .opensim (usually under C:/Documents and Settings/AppData/Roaming/) and remove it.
- Repeat steps 5 through 7 above.
OpenSim is supported by the Mobilize Center , an NIH Biomedical Technology Resource Center (grant P41 EB027060); the Restore Center , an NIH-funded Medical Rehabilitation Research Resource Network Center (grant P2C HD101913); and the Wu Tsai Human Performance Alliance through the Joe and Clara Tsai Foundation. See the People page for a list of the many people who have contributed to the OpenSim project over the years. ©2010-2024 OpenSim. All rights reserved.