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 -
- Press the "clone or download" button in this repository and copy the https link
- 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)
- Download Anaconda Python (search it up)
- You will need to install the following libraries (using 'pip install LIBRARY'):
- gym
- numpy
- Open the anaconda prompt, type cd Reinforcementlearning, then cd model, cd redtiebot, and lastly type ipython setup.py
- Type ipython q_learning_redtie.py in the anaconda prompt and the program should start running
- You will see "(Pbd)" appear in the anaconda prompt, type c to continue
- 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)
- 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 -
- Press the "clone or download" button in this repository and copy the https link
- 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
- Duplicate q_learning_redtie.py and move the file into ReinforcementLearning>model>RedTieBot
- 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
- Now, in order to run the program, make sure to enter cd ReinforcementLearning/model/RedTieBot and type python q_learning_redtie.py.
- You will see "(Pbd)" appear in the anaconda prompt, type c to continue
- 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)
- 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 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |_________________________________________| |
| |
\_________________________________________________/
\___________________________________/
___________________________________________
_-' .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. --- `-_
_-'.-.-. .---.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--. .-.-.`-_
_-'.-.-.-. .---.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-`__`. .-.-.-.`-_
_-'.-.-.-.-. .-----.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-----. .-.-.-.-.`-_
-'.-.-.-.-.-. .---.-. .-------------------------. .-.---. .---.-.-.-.`- |
---|
`---..-------------------------------------------------------------..---' |