Skip to content

This repository contains code for simulating coupled motion of rigid ball and fluid in 2D and this is used as an environment in Gym to train a controller to balance the ball in air.

sahilgupta2105/Deep-Reinforcement-Learning

Repository files navigation

Fluid directed rigid ball balancing using Deep Reinforcement Learning

This repository contains code for an agent that was trained using deep reinforcement learning (PPO) to balance a ball in air using fluid that is sprayed by a water hose (agent). The problem is based on this paper.

Physics Simulator

This folder contains the code the 2D simulator which is used as the backend physics engine for the motion of rigid body and fluid.

Autoencoder

This folder contains autoencoders which were designed during this project. This approach is used in the original paper, but was abandoned here because it was difficult to integrate with stable baselines in the available time.

Gym Sim

This folder contains a gym environment which is based on the 2D physics simulator.

Reinforcement Learning

This folder contains the script for training an agent from the gym-sim environment using stable-baselines.

Hybrid Simulator

This folder contains the final version of the hybrid simulator which is able to balance the ball in air.

For more info: refer here.

About

This repository contains code for simulating coupled motion of rigid ball and fluid in 2D and this is used as an environment in Gym to train a controller to balance the ball in air.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages