Skip to main content

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


Download files

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

Source Distribution

air_hockey-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

air_hockey-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file air_hockey-0.1.2.tar.gz.

File metadata

  • Download URL: air_hockey-0.1.2.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

Hashes for air_hockey-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c764326637bea41a1ac661d7d374ddbae5ad78c7f34b0ee57a2cc4268d8b1148
MD5 33c03732ebba156486d0d5898128609a
BLAKE2b-256 ca96652afdf662c5af8d44cdcdf911cd9cba5a3e451674206f16d199fe512bb8

See more details on using hashes here.

File details

Details for the file air_hockey-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: air_hockey-0.1.2-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

Hashes for air_hockey-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8810b9f7b3ef8b6c750b47292268120ec488666613b921e79cec4759b8a4db3c
MD5 425f6dff9247fe562ea799b49f354277
BLAKE2b-256 9e99f077853a97c7084f6833c3fcf4538277832f97d82ed97e655ea22121d1c6

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