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

pip install radio_gyms

Examples

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 - Radio Transmitter and Receiver Controller
  • v0.4.x - Visualization for desktop
  • v0.5.x - Visualization for notebook
  • v0.6.x - Outdoor Simulation
  • 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

© 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.2.0.tar.gz (33.4 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.2.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: radio_gyms-0.2.0.tar.gz
  • Upload date:
  • Size: 33.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 8c9259736561387f13173b7b16fbbc0606811050e9af2db2a0ee3ac476c5b68f
MD5 9e17b634cda0d845a870ac983cd6e237
BLAKE2b-256 7830bb0c4e8cacc2995b152b619822f9b77737a1028f59b95e6cb8ff1d35a02d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: radio_gyms-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5988c61fef3194f33d8f68c96e8bbb288671a14eeb60b3f47e01dae05f8ab0c
MD5 598ad55484b6bd7bde3e546611a8b1f8
BLAKE2b-256 00eefab7eb5f055921b2016b7696b9b5acba13503d6e59ed26b323ca3ad5de0e

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