Getting Started
Get started with the EvoGym codebase.
Page Outline
Download
Clone the repo and submodules:
git clone --recurse-submodules https://github.com/EvolutionGym/evogym.git
Requirements
- Python 3.7/3.8
- Linux, macOS, or Windows with Visual Studios 2017
- OpenGL
- CMake
- PyTorch
On Linux only:
sudo apt-get install xorg-dev libglu1-mesa-dev
Either install Python dependencies with conda:
conda env create -f environment.yml
or with pip:
pip install -r requirements.txt
Build and Install Package
To build the C++ simulation, build all the submodules, and install evogym
run the following command:
python setup.py install
Test Installation
cd to the examples
folder and run the following script:
python gym_test.py
This script creates a random 5x5
robot in the Walking-v0
environment. The robot is taking random actions. A window should open with a visualization of the environment – kill the process from the terminal to close it.