Link Search Menu Expand Document

Getting Started

Get started with the EvoGym codebase.


Page Outline

  1. Download
  2. Requirements
  3. Build and Install Package
  4. Test Installation

Download

Clone the repo and submodules:

git clone --recurse-submodules https://github.com/EvolutionGym/evogym.git

Requirements

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.