Skip to content

tgeijten/sconegym

Repository files navigation

sconegym

Gym environments for predictive biomechanical simulations using reinforcement learning.

Installation

  1. Make sure Python 3.9 is installed on your system
  2. Install the latest version of SCONE
  3. Optional: for faster simulations and access to all gym environments, be sure to activate the Hyfydy simulation engine inside SCONE. Without Hyfydy, you are limited to using OpenSim, which takes much longer to optimize. More information and a free trial can be found on the Hyfydy website.
  4. Clone the sconegym repository
  5. Open a console, navigate to your local sconegym folder and type: pip install -e . (the -e flag will ensure the package automatically gets updated when you update the sconegym repository)
  6. To see if everything works, try out the example_environment.py or test_environments.py from the sconegym folder
  7. To test sconegym in combination with depRL, try running example_deprl.py, after following the instructions on the depRL website

Render and Analyze

Results of an optimization can be rendered and analyzed in SCONE Studio, using the following steps:

  1. Open SCONE Studio
  2. In the Optimization Results pane on the left, navigate to any checkpoint file (extension .pt) and double-click the file
  3. A number of rollouts will be performed, and results will be stored as .sto files inside the SCONE data folder, in a subfolder below the .pt file. The name of the subfolder starts with run_checkpoint and ends with the checkpoint number.
  4. Double-click on any of the .sto files to open and display them
  5. In addition to the 3D renders, results can be analyzed via the Analysis Window, and gaits analysis can be performed via Tools -> Gait Analysis
  6. For more information, see the SCONE Website

Contributors

About

Gym environments for SCONE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages