Python package for ROS integrated air-hockey table designed at METU ROMER
Project description
Air Hockey
The codes that run on the Raspberry Pi of the air hockey table. The Raspberry Pi has Ubuntu 24.04 Server running.
Python API
NeoPixel Controller
Python library to control NeoPixels of the air hockey table. Example usage:
from air_hockey.neopixel_controller import NeoPixel_Controller
controller = NeoPixel_Controller()
controller.fill((100, 0, 255)) # Set every pixel the specified rgb color.
controller.setFromFlatArray([(100, 0, 255),(80, 20, 255),(60, 40, 255),(40, 60, 255),(20, 80, 255),(0, 100, 255)]) # Sets pixels from array in order.
Commander
Python library to control micro robots wirelessly. Desk fan example:
from air_hockey.microrobot_commander import Commander
import time,math
commander = Commander()
theta = 0
while True:
mag = 80*math.sin(theta)
commander.send(1, int(mag), int(-mag), 200)
theta = theta + 0.15
time.sleep(0.1)
Localization
Python library to obtain pose data of micro robots. Example usage:
from air_hockey.localize_microrobot import Locator
import time
locator = Locator()
while True:
print(locator.getPoses())
time.sleep(0.5)
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 air_hockey-0.1.3.tar.gz.
File metadata
- Download URL: air_hockey-0.1.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67166b318e409e1d7c65b74df627b531395eeccac8ec10f936c6b2153b821433
|
|
| MD5 |
cf222ff4d4c534472dd784efdb4436e7
|
|
| BLAKE2b-256 |
1536677e2c7c76689686306e6a653c6ac5ea1eedd96118d1af82a292cb80a5d6
|
File details
Details for the file air_hockey-0.1.3-py3-none-any.whl.
File metadata
- Download URL: air_hockey-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1869dff9d184ae197bbdb0319422e34fc2bce14961c3648815890b65cc5aa0df
|
|
| MD5 |
d795f1eda150e49d6e537110b8bf5807
|
|
| BLAKE2b-256 |
efd14d84062d97f07837b3fff686b13dfb028afc816c48e8231723649ed09e25
|