Skip to main content

A unified Python client for Roboreactor edge devices and robot simulators.

Project description

roboreactor

Official Python client library for connecting edge devices, emulators, and robot controls directly to the RoboReactor ecosystem.

Installation

pip install roboreactor

## Example motion system code
```bash
from roboreactor import RoboReactor

## Initialize the synchronized connection client
client = RoboReactor(
    email="kornbot380@hotmail.com",
    project_name="Smart_Robots",
    base_url="[https://roboreactor.com](https://roboreactor.com)"  # Defaults to [https://roboreactor.com](https://roboreactor.com) if omitted
)

import time

print("[INFO] Initiating joint loop feedback sequence...")

## Emulating a real-world physical sweeping path (0° to 269°)
for angle in range(0, 270):
    joint_telemetry = {
        'wrist': {'Analog-read': float(angle)},
        'shoulder': {'Analog-read': float(angle)},
        'base': {'Analog-read': float(angle)}
    }
    
    # Broadcast state variables directly to the cloud dashboard
    response = client.update_feedback_sensors(joint_telemetry)
    print(f"[TX] Angle: {angle}° | Status Response: {response}")
    time.sleep(0.01)

## Absolute Target Kinematics & Orientation Control in Navigation simulation digital twin sync on the web 
``` bash 
import math

## Define targeted joint spatial layout arrays (configured in Radians)
joint_targets = {
    "shoulder": math.radians(150),
    "base": math.radians(45),
    "wrist": math.radians(20)
}

## Fire absolute multi-axis coordinate trajectories into the rendering engine
response = client.send_navigation_control(
    x=1.5,
    y=0.0,
    z=1.5,
    roll_deg=0.0,
    pitch_deg=0.0,
    yaw_deg=0.0,
    joint_targets_rad=joint_targets,
    robot_name="Robot_arm_01"
)

print(f"[NAV-TX] Kinematics Status Update: {response}")
 
## Heterogeneous Multi-Sensor Payload Ingestion
### Leverage the standard unified telemetry pipeline (post_sensor_data) to parse complex multidimensional arrays or specialized hardware telemetry structures.
``` bash 
import random
import math

## --- Category 1: Battery Management Systems (BMS Telemetry) ---
bms_payload = {
    "BMS_sensor": {
        "main_pack": 88.5, 
        "aux_cell_1": 86.5, 
  import random
import math

## --- Category 1: Battery Management Systems (BMS Telemetry) ---
bms_payload = {
    "BMS_sensor": {
        "main_pack": 88.5, 
        "aux_cell_1": 86.5, 
        "temp_sensor_5": 35.5
    }
}
client.post_sensor_data(bms_payload)


## --- Category 2: Inertial Measurement Units (IMU Kinematics) ---
imu_payload = {
    "Motion_sensor": {
        "imu_1": {
            "x": random.uniform(-0.1, 0.1),
            "y": random.uniform(-0.1, 0.1),
            "z": 1.015
        },
        "radar_2": 3.45
    }
}
client.post_sensor_data(imu_payload)


## --- Category 3: Spatial Matrices (2D Tactile Arrays / Temperature Heatmaps) ---
## Constructs a standard 10x10 floating matrix grid 
tactile_matrix = [[round(random.uniform(8.5, 9.0), 4) for _ in range(10)] for _ in range(10)]

matrix_payload = {
    "Array_sensor": {
        "Tactile_finger_sensor_1": tactile_matrix
    }
}
client.post_sensor_data(matrix_payload)


## --- Category 4: High-Frequency Audio Signals (Digital Signal Processing Vectors) ---
audio_waveform = [round(math.sin(i * 0.5) * 0.05, 4) for i in range(50)]

audio_payload = {
    "Audio_sensor": {
        "mic_1": audio_waveform
    }
}
client.post_sensor_data(audio_payload)
print("[SUCCESS] Multi-category sensory dataset dispatched.")      "temp_sensor_5": 35.5
    }
}
client.post_sensor_data(bms_payload)


## --- Category 2: Inertial Measurement Units (IMU Kinematics) ---
imu_payload = {
    "Motion_sensor": {
        "imu_1": {
            "x": random.uniform(-0.1, 0.1),
            "y": random.uniform(-0.1, 0.1),
            "z": 1.015
        },
        "radar_2": 3.45
    }
}
client.post_sensor_data(imu_payload)


## --- Category 3: Spatial Matrices (2D Tactile Arrays / Temperature Heatmaps) ---
## Constructs a standard 10x10 floating matrix grid 
tactile_matrix = [[round(random.uniform(8.5, 9.0), 4) for _ in range(10)] for _ in range(10)]

matrix_payload = {
    "Array_sensor": {
        "Tactile_finger_sensor_1": tactile_matrix
    }
}
client.post_sensor_data(matrix_payload)


## --- Category 4: High-Frequency Audio Signals (Digital Signal Processing Vectors) ---
audio_waveform = [round(math.sin(i * 0.5) * 0.05, 4) for i in range(50)]

audio_payload = {
    "Audio_sensor": {
        "mic_1": audio_waveform
    }
}
client.post_sensor_data(audio_payload)
print("[SUCCESS] Multi-category sensory dataset dispatched.")

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

roboreactor-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

roboreactor-0.1.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roboreactor-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for roboreactor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b6da2639ef92fcb231a430bce811783d8e843de5c4c652b1dc0e1ce477358409
MD5 97d658c23a58f6cdd301c6b32fac42e8
BLAKE2b-256 4283d07000ec918eed40b425a124f9f667f6fc1e38a38bf1daee2e4af85b59e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roboreactor-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for roboreactor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0a589294da7f38d41b1fb01dc714d685c3a8082ef417315f06d6f3234f6fa7
MD5 d8767972ad83ca059250fa9b05171d50
BLAKE2b-256 20382b8903dbe7b02d3fe93399691ac816be52032cf465822fde85ee2c90ba61

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