Skip to content
OpenAI Gym interfaces for multi-robot flocking problems
Branch: master
Clone or download

Latest commit

Latest commit c7204ec Sep 10, 2019


Type Name Latest commit message Commit time
Failed to load latest commit information.
gym_flock plotting Jul 2, 2019
.gitignore gitignore May 10, 2019
LICENSE Create LICENSE Jul 27, 2019 Update Sep 10, 2019 First commit Feb 8, 2019

Gym Flock


To install

  1. Clone this repository
  2. pip3 install -e .

To use

Include the following code in your Python script:

import gym  
import gym_flock 
env = gym.make("FlockingRelative-v0")` 

and then use the env.reset() and env.step() for interfacing with the environment as you would with other OpenAI Gym environments. These implementations also include a env.controller() function that gives the best current set of actions to be used for imitation learning.

Please note that the state of these environments returns a tuple for the states of all agents, along with a matrix of the connectivity of the network of agents.

You can’t perform that action at this time.