Skip to content

matteoppet/avoiding_obstacles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Obstacle avoidance agent

This project is developed in a custom Gym environment and with Pygame to help to visualize the agent and the environment. The goal of this agent is to avoid some n obstacles with helping himself with sensors all around the agent, the obstacles positions are random generated also as the agent position.

How the obstacles are random generated

The obstacles random positions has some criteria to respect:

  1. Does not have to spawn on a position already taken
  2. Each obstacles needs to be at least 200 pixels from eachother
    • calculated from the center of each obstacles
  3. Does not have to collide with any other obstacles

Prerequisites

To install the requirements for the project run

pip install -r requirements.txt

Training

In train.py file, set the HYPER PARAMETERS as your choice then train the agent by running

python train.py

File of the model is saved in this location trained_agent/models/PPO_MODELS

Contributing

Feel free to contribute on get the code works better or some new features to implement. Any contributions you make are greatly appreaciated.

About

Obstacle avoidance agent in a custom Gym environment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages