Skip to content

AAAI-DISIM-UnivAQ/ev3-prothonics

 
 

Repository files navigation

ev3-prothonics

Lego Ev3 Mindstorms robot project that uses SWI-Prolog to perform reasoning with support of Prothonics.

Features

  • Determines the color of front, right and left tiles with color sensors
  • Perform reasoning by SWI-Prolog with color sensor values as input
  • Always looks for food (aka. green tile), stay away from obstacles (aka. red tile)
  • Performs movement according to decisions given by SWI-Prolog

Dependencies

  1. Numpy
  2. SWI-Prolog
  3. Pyswip
  4. Prothonics

To install dependencies on ev3dev-stretch, sudo apt install python3-* recommended. If pip needs to be used, than it's recommended to use it with sudo python3 -m pip install pyswip instead of pip install.

Usage

This code only designed to work with Lego Mindstorms EV3 robots. In order to run it, clone the repository to robot, then run:

$ python3 main.py

Contact

Licence

Distributed under the Apache License 2.0. See LICENSE for more information.

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.9%
  • Prolog 17.1%