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

Create RoboReactor Account

To use the SDK:

  1. Sign up at https://roboreactor.com/
  2. Create a project
  3. Generate your secret_token

You will need:

  • Email
  • Project Name
  • Secret Token

Initialize Client

from roboreactor import RoboReactor

client = RoboReactor(
    email="your_email@example.com",
    project_name="Your_Project",
    secret_token="YOUR_SECRET_TOKEN"
)

Verify Authentication Token

Verify your API connection before starting your robot system.

from roboreactor import RoboReactor

client = RoboReactor(
    email="your_email@example.com",
    project_name="Robot_Project",
    secret_token="YOUR_SECRET_TOKEN"
)

status = client.verify_token()

if status:
    print("Connection verified!")
    print(status)
else:
    print("Authentication failed.")

Send Joint Feedback Sensors

Upload robot joint sensor feedback to RoboReactor cloud.

from roboreactor import RoboReactor 
  client = RoboReactor( 
    email="your_email@example.com", 
    project_name="Robot_Project", 
    secret_token="YOUR_SECRET_TOKEN" ) 
    joint_feedback = { "joint_1": { 
        "angle_deg": 35.5 
        }, 
    "joint_2": { 
        "angle_deg": 12.8 
        }, 
    "joint_3": {
         "angle_deg": -8.2 
         } 
    }  
  response = client.update_feedback_sensors(joint_feedback) 
  print(response)
  

Send Navigation Control

Send target coordinates, robot orientation, and joint targets.

from roboreactor import RoboReactor

client = RoboReactor(
    email="your_email@example.com",
    project_name="Robot_Project",
    secret_token="YOUR_SECRET_TOKEN"
)

joint_targets = {
    "joint_1": 0.52,
    "joint_2": 1.10,
    "joint_3": -0.34
}

response = client.send_navigation_control(
    x=1.2,
    y=0.5,
    z=2.8,
    roll_deg=0,
    pitch_deg=15,
    yaw_deg=90,
    joint_targets_rad=joint_targets,
    robot_name="RobotArm_01"
)

print(response)

Convert Euler Angles to Quaternion

Utility function for converting Euler angles into quaternion format.

from roboreactor import RoboReactor

quaternion = RoboReactor.euler_to_quaternion(
    roll_deg=0,
    pitch_deg=45,
    yaw_deg=90
)

print(quaternion)

Send Generic Sensor Telemetry

Upload custom sensor payloads such as IMU, GPS, battery, and telemetry data.

from roboreactor import RoboReactor

client = RoboReactor(
    email="your_email@example.com",
    project_name="Robot_Project",
    secret_token="YOUR_SECRET_TOKEN"
)

sensor_payload = {
    "Sensors": {
        "imu": {
            "accel_x": 0.12,
            "accel_y": -0.08,
            "accel_z": 9.81
        },
        "gps": {
            "latitude": 13.7563,
            "longitude": 100.5018
        },
        "battery": {
            "voltage": 12.4,
            "current": 1.8
        }
    }
}

response = client.post_sensor_data(sensor_payload)

print(response)

Fetch IoT Remote Commands

Retrieve IoT control commands from RoboReactor cloud.

from roboreactor import RoboReactor

client = RoboReactor(
    email="your_email@example.com",
    project_name="Robot_Project",
    secret_token="YOUR_SECRET_TOKEN"
)

commands = client.fetch_iot_control()

print(commands)

Robot Edge Loop Example

Example continuous runtime telemetry loop for robotics edge devices.

import time
from roboreactor import RoboReactor

client = RoboReactor(
    email="your_email@example.com",
    project_name="Robot_Project",
    secret_token="YOUR_SECRET_TOKEN"
)

while True:

    telemetry_payload = {
        "runtime": {
            "cpu_temp": 48.2,
            "loop_rate_hz": 120
        }
    }

    client.post_sensor_data(telemetry_payload)

    commands = client.fetch_iot_control()

    if commands:
        print("Received Commands:", commands)

    time.sleep(1)

Features

  • Secure cloud authentication
  • Real-time robotics telemetry
  • Navigation target streaming
  • Joint control streaming
  • Quaternion utilities
  • Generic telemetry upload
  • IoT remote command retrieval
  • Edge-device architecture support

Example Architecture

Robot / MCU / SBC
        │
        ▼
RoboReactor Python SDK
        │
        ▼
RoboReactor Cloud API
        │
        ├── Telemetry Dashboard
        ├── Motion Streaming
        ├── IoT Remote Control
        └── Multi-Robot Coordination

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.5.tar.gz (5.2 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.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roboreactor-0.1.5.tar.gz
  • Upload date:
  • Size: 5.2 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.5.tar.gz
Algorithm Hash digest
SHA256 029244f769b9da692f36ed07926a94d116082baf191a225e91580e180ef95f25
MD5 8bbe082093459f8614a791aeda93eae1
BLAKE2b-256 c97446639158ed53d1fd52e7c15e3ae3874a107aab4ac6c19433fed90e438424

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roboreactor-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 572305637f5c3dd8062ce2ab50b41a159de67acac56555b553c77d35f79e8d84
MD5 6234083bcedc5fe1c580ab05e96a2af9
BLAKE2b-256 1f5c092b515bae50b712d96f6b85c1a2b9f02d7171bb5fad30196dd9e2bb3317

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