robolearnr

module
v0.0.3 Latest Latest
Warning

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

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

README

RoboLearn

Installation

Download the latest release.

Example

Download a sample map.

wget https://raw.githubusercontent.com/NoUseFreak/robolearn/master/maps/maze_simple.txt

Start the server and open http://127.0.0.1:9000

./robolearn[.exe] https://raw.githubusercontent.com/NoUseFreak/robolearn/master/maps/maze_simple.txt

Write your program.

import robolearn
import time

rl = robolearn.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 robolearn-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