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
NeoPixels
The server code is run by the command ros2 run air_hockey neopixel. This code listens to 2 topics called /NeoPixel/array and /NeoPixel/fill. They show the given rgb array or all LEDs display a RGB color, respectively. Array elements are 8-bit unsigned integers and mimic OpenCV Numpy Array structure. Fill topic communicates with std_msgs/msg/ColorRGBA and expects float values that range from 0.0 to 1.0.
Commander
The commander code is run by the command ros2 run air_hockey commander. This code listens to /agent_0/cmd and /agent_1/cmd topics. These topics expect 3 integer values: left motor power, right motor power, and fan motor power, respectively. These values are in ranges {[-255,255],[-255,255],[0,255]}. This code then communicates with the commander ESP that controls the micro robots.
Localization
The localization code is run by the command ros2 run air_hockey localization. This code uses the camera to detect the April Tags of the micro robots and calculate their poses. Once detected, the pose data are published to /agent_x/pose topic, where x changes with the detected tag id.
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.1.tar.gz.
File metadata
- Download URL: air_hockey-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0a2fc2b0b5bc685839b9f3e61b5a3c7cbaf7044a5c9b21e6c6b885912cfd5b7
|
|
| MD5 |
ece231b292b5f6ca1668cd8c037906bc
|
|
| BLAKE2b-256 |
1de27fc9bbb137d3687ea8049d427acaa36423a4de2af67129cddea092ceabcb
|
File details
Details for the file air_hockey-0.1.1-py3-none-any.whl.
File metadata
- Download URL: air_hockey-0.1.1-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 |
2fcf7078a66901190944b904dc94d84f651dd2af7ba00b5112f3937c71281d38
|
|
| MD5 |
43285e968d164271b12af5718182afa5
|
|
| BLAKE2b-256 |
b38475ae0510f8aa23671d338c6cec65818ecd0d6a5614495ffac0e17d9f4ad7
|