Discover Packages
github.com/RoboLearnr/robolearnr
module
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jan 25, 2018
License: MIT
Opens a new window with license information.
README
README
¶
RoboLearnr
Installation
Download the latest release .
Example
Download a sample map.
wget https://raw.githubusercontent.com/NoUseFreak/robolearnr/master/maps/maze_simple.txt
Start the server and open http://127.0.0.1:9000
./robolearnr[.exe] https://raw.githubusercontent.com/NoUseFreak/robolearnr/master/maps/maze_simple.txt
Write your program.
import robolearnr
import time
rl = robolearnr.Robolearn()
rl.reset()
while not rl.on_goal():
while not rl.before_obstacle():
rl.forward()
time.sleep(0.05)
rl.rotate()
Run your program.
pip install robolearnr-python
python program.py
Credits
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.