robolearnr

module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2018 License: MIT

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL