A computer vision and hardware streaming interface for education
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ilo_arena-1.0.1.tar.gz.
File metadata
- Download URL: ilo_arena-1.0.1.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f974c6055fd43afb95add75ba36deab481b4c74d7d4b0dd28bc172669bf6bbf2
|
|
| MD5 |
44a5d14c9b83e5db3c4b60e1fb0b64b1
|
|
| BLAKE2b-256 |
8a1d3d50e26022c2df828f1d7accc9f91c0fe1d44c664b9e1a67772f6ffa7f0a
|
File details
Details for the file ilo_arena-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ilo_arena-1.0.1-py3-none-any.whl
- Upload date:
- Size: 43.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cedf7d3b40f8ca2293410fe19646181bd1ef23e84f77be8f129436b463863466
|
|
| MD5 |
d6b580ecf85bcb6c6db2fec178193fcc
|
|
| BLAKE2b-256 |
13848118040887e7218b0653e36e70c853e30fdb70e68a7f0dc4dfdf726252db
|