Skip to main content

A computer vision and hardware streaming interface for education

Project description

Ilo robot

PyPI Downloads PyPI Downloads / Month

ilo_arena is a powerful Python package to control ilo the new educational robot directly from your computer based on a video feed using AI to track the robot.
It allows you to move the robot, read sensors, interact with LEDs, and create autonomous behaviors — all in just a few lines of Python.

Features

  • Automatic connection to robots in the camera view field
  • Automatic detections of elements in the camera view field
  • Move the robot in multiple directions with Python commands
  • Create complex movement loops
  • Draw and animate using the robot's LED matrix
  • Play with the robot in real time using your keyboard
  • Control and read sensors over Bluetooth

Installation

pip install ilo_arena

To update:

pip install ilo_arena --upgrade

Quick Example

Here is a simple example to get started:

from ilo_arena import *

def my_logic(arena: Arena):
	while True:
		try:  
		    elements: list[Element] = arena.get_all_elements()  
		  
		    for element in elements:  
		        robot: Robot | None = element.get_robot(element._id)  
		  
		        if robot is not None:  
		            robot.move("front", 45, 100)  
		            arena.sleep(2.0)  
		            robot.rotation(90, finish_state=True)  
		            robot.move("back", 70, 100)  
		            arena.sleep(2.0)  
		            robot.stop()  
		            arena.sleep(1.0)  
		  
		except Exception as e:  
		    print(f"Error encountered: {e}")  

if __name__ == "__main__":
	start_arena(my_logic)

Documentation

The control of the robot depends on the ilo library.


Contributing

Bug reports, patches, and suggestions are welcome!

Questions? Contact us via our website.


Powered by Intuition RT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ilo_arena-1.0.2.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ilo_arena-1.0.2-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file ilo_arena-1.0.2.tar.gz.

File metadata

  • Download URL: ilo_arena-1.0.2.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ilo_arena-1.0.2.tar.gz
Algorithm Hash digest
SHA256 54152509e21636efebb45b06a0937a5d19f4883bae66c86be9d0b1210a137e57
MD5 470e6900d355365f97d325a52eda9ffd
BLAKE2b-256 d2217fa935cb88f4c3ca2bf7904f6d4e0ed85adf57abd5653eee4ecf3f1790fb

See more details on using hashes here.

File details

Details for the file ilo_arena-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: ilo_arena-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ilo_arena-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a0af7e678c4e3c47ae907d3b3fd1d7351133a9ca53df0bdfc7292b468c3e22
MD5 f6a11461969df7fcb27c861eef51f457
BLAKE2b-256 0a6f13f95784ad9fe2ee62ff847e77402423b1993145d40ce4bc2960c2314807

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page