Skip to main content

an open-source bundle of AI environments for radio communications

Project description

Radio Gyms

Radio Gyms

Radio Gyms is an open-source bundle of AI environments for radio communications. The simulations are composed of Open AI Gym and various theoretical radio propagation models, specifically for AI research in telecommunications.

Installation

PyPi Package via pip

pip install radio_gyms

Build from source

git clone https://github.com/intelek-ai/radio-gyms
cd radio-gyms
python -m pip install .
cd ..
rm -rf radio_gyms

Dependencies

  • python 3.8+
  • numpy
  • pyglet
  • pywavefront

Features

1. Calling Primitive Ray Tracer for Outdoor Propagation

Radio gyms provides the toolkit for building wireless communication simulations. The ray tracer can be called for computing the radio propagation paths in the following example.

from radio_gyms.engines import Tracer

SCENE_FILE_PATH = "./city.obj"
tracer = Tracer(SCENE_FILE_PATH)
# position (x, y, z)
tx_pos = [0, 15, 0]
rx_pos = [-30, 1.5, 45]
# get traced result
result = tracer.trace_outdoor(tx_pos, rx_pos)
# result
# {'direct': False, 
# 'reflections': {'single': [   array([-28.94988531,   4.22886929,  62.39469675]),
#                               array([-70.80339945,   7.04682531,  15.22840999])],
#                  'double': []},
# 'roof_edges': [array([-19.24403786,   8.5621709 ,  28.8660568 ]
# 'tx_pos': array([ 0, 15,  0]),
# 'rx_pos': array([-30. ,   1.5,  45. ]),
# )]}

2. Calculate the traced result with the theoretical outdoor model

from radio_gyms.models import TheoreticalOutdoorModel
result = {
    'direct': False, 
    'reflections': {'single': [ [-28.94988531, 4.22886929, 62.39469675],
                                [-70.80339945, 7.04682531, 15.22840999]],
                    'double': []},
    'roof_edges': [[-19.24403786, 8.5621709 , 28.8660568 ]],
    'tx_pos': [ 0, 15, 0],
    'rx_pos': [-30., 1.5, 45. ],
}
model = TheoreticalOutdoorModel(result, tx_power_dbm=20)
maximum_received_power = model.calculate_max_received_power(frequency=5.4e9) 
# -72.51 dBm
impulses = model.calculate_signal_impulses(freq=5.4e9)
# [{'strength': -85.94590320344925, 'delay': 1.8653420787826134e-07},
# {'strength': -74.3214622218488, 'delay': 2.910702009034143e-07}, 
# {'strength': -77.80902883055407, 'delay': 4.125241781539828e-07}]

Documentation

Radio Gyms provides radio propagation engines and tools for customizations. The official documentation can be found at radio-gyms.intelek.ai

Contributors

Community

Feel free to suggest an idea or contribute with us.

Road Map

  • v0.1.x - Radio Ray Tracer
  • v0.2.x - Theoretical Outdoor Propagation Model
  • v0.3.x - Transmitter and Receiver Controller
  • v0.4.x - Visualization for desktop
  • v0.5.x - Visualization for notebook
  • v0.6.x - Outdoor Simulation
  • v0.9.x - Official Documentations
  • v1.0.0 - Radio Gym 01: Beam Steering
  • v1.5.0 - Radio Gym 02: Beam-forming Control by Antenna Array
  • v2.x.x - FDTD Model
  • v3.1.0 - Radio Gym 03: Indoor Environment
  • v3.2.0 - Radio Gym 04: Complex Transmission Control

License

The digital contents in /assets are available under Creative Commons (CC) license.

Source code is licensed under © Intelek AI MIT.

MIT License

Copyright (c) 2022 Intelek AI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

radio_gyms-0.4.0.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

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

radio_gyms-0.4.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file radio_gyms-0.4.0.tar.gz.

File metadata

  • Download URL: radio_gyms-0.4.0.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for radio_gyms-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6648d3295c4008d1a1c7c1a059f37fab12f0f830ebff6e85f57729f8d403d2bc
MD5 ce8404d16eece2f552310d2d0f0125c8
BLAKE2b-256 01921d3dc4b30fa055eb63923a4b45f1e84ac08aefeadf948ef25f0e95263a8d

See more details on using hashes here.

File details

Details for the file radio_gyms-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: radio_gyms-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for radio_gyms-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c93358d0a9ad5cb8f7a0cd09d12f64453ad1d2faff114dcb1b46a5cf74f04497
MD5 522b0407d26784f05e1cd4aeb1c01756
BLAKE2b-256 bd686718f24e5cece46588e70bb2a07515a5802778b73bf6ad9be7503dee7c96

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