Skip to content

Developing reinforcement learning algorithms for robot navigation

Notifications You must be signed in to change notification settings

maahir30/ReinforcementLearning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Reinforcement Learning

Developing reinforcement learning algorithms for robot navigation Includes the field and learning setup

Using: OpenAigym: Main Language: Python: Section 2 of the main programming team :)

Directions to run it: Windows -

  1. Press the "clone or download" button in this repository and copy the https link
  2. Open up Git Bash (if you don't have it search up Git bash and download it) and type 'git clone LINK' (paste the link by right clicking and pressing paste)
  3. Download Anaconda Python (search it up)
  4. You will need to install the following libraries (using 'pip install LIBRARY'):
  • gym
  • numpy
  1. Open the anaconda prompt, type cd Reinforcementlearning, then cd model, cd redtiebot, and lastly type ipython setup.py
  2. Type ipython q_learning_redtie.py in the anaconda prompt and the program should start running
  3. You will see "(Pbd)" appear in the anaconda prompt, type c to continue
  4. You will recieve a series of questions, answer them according to how you want the simulation to run (fastmode reduces the amount of print statements, and show graphics shows you every move of the robot in the turtle graphics window)
  5. Now the program should run, feel free to edit the code in the q_learning_redtie.py and bot_model.py (ask us before you push)

Macintosh -

  1. Press the "clone or download" button in this repository and copy the https link
  2. Go to finder and enter both botmodel.py and q_learning_redtie and make sure all packages listed at the top are already installed. If not, enter terminal and type in pip install package
  3. Duplicate q_learning_redtie.py and move the file into ReinforcementLearning>model>RedTieBot
  4. Next, open terminal and type cd ReinforcementLearning/model/RedTieBot and then type python setup.py *If you cloned or downloaded the ReinforcementLearning repository and placed it in another folder of yours, make sure to type that folder by typing cd your_folder/ReinforcementLearning/model/RedTieBot. Then, type python setup.py
  5. Now, in order to run the program, make sure to enter cd ReinforcementLearning/model/RedTieBot and type python q_learning_redtie.py.
  6. You will see "(Pbd)" appear in the anaconda prompt, type c to continue
  7. You will recieve a series of questions, answer them according to how you want the simulation to run (fastmode reduces the amount of print statements, and show graphics shows you every move of the robot in the turtle graphics window)
  8. Now the program should run, feel free to edit the code in the q_learning_redtie.py and bot_model.py (ask us before you push)

If you have any questions, ask on our Slack!

         ________________________________________________
        /                                                \
       |    _________________________________________     |
       |   |                                         |    |
       |   |  C:\> python q_learning_redtie.py       |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |                                         |    |
       |   |_________________________________________|    |
       |                                                  |
        \_________________________________________________/
               \___________________________________/
            ___________________________________________
         _-'    .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.  --- `-_
      _-'.-.-. .---.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--.  .-.-.`-_
   _-'.-.-.-. .---.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-`__`. .-.-.-.`-_
_-'.-.-.-.-. .-----.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-----. .-.-.-.-.`-_
-'.-.-.-.-.-. .---.-. .-------------------------. .-.---. .---.-.-.-.`-
`---..-------------------------------------------------------------..---'

About

Developing reinforcement learning algorithms for robot navigation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%