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
Digital Twin Motion Control
To stream joint motion feedback and synchronize with the motion twin simulation, use the following example:
from roboreactor import RoboReactor
import time
# Initialize the synchronized connection client
client = RoboReactor(
email="kornbot380@hotmail.com",
project_name="Smart_Robots",
base_url="https://roboreactor.com" # Defaults to https://roboreactor.com if omitted
)
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
To sync high-level coordinates, orientations, and specific target angles to the navigation simulator rendering engine:
import math
from roboreactor import RoboReactor
# Initialize the client
client = RoboReactor(
email="kornbot380@hotmail.com",
project_name="Smart_Robots",
base_url="https://roboreactor.com"
)
# 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 ingest complex multidimensional arrays, spatial matrices, audio streams, or specialized hardware telemetry.
import random
import math
from roboreactor import RoboReactor
# Initialize the client
client = RoboReactor(
email="kornbot380@hotmail.com",
project_name="Smart_Robots",
base_url="https://roboreactor.com"
)
# --- 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.")
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
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 roboreactor-0.1.4.tar.gz.
File metadata
- Download URL: roboreactor-0.1.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d241ba8d77a37b4f1894bb2ca2b52073269bb0c033457dbd3f01a1008464c369
|
|
| MD5 |
2fc8642b0fa2b1268593cc872a6229d2
|
|
| BLAKE2b-256 |
fc6b68e5e60acb9dfa70a899c592d99b5c00d6b58f9755a87737db001537bab6
|
File details
Details for the file roboreactor-0.1.4-py3-none-any.whl.
File metadata
- Download URL: roboreactor-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da4111950d9f308b15a512d14be139ebd47de5a7c5d4d8d8ffdc6469e2631b3b
|
|
| MD5 |
20fc441b692d460775c90c95a303af34
|
|
| BLAKE2b-256 |
6ec263108acccf719560701c3555f7bda677680b6f4b2c4a8fd1f07e966b5a2d
|