πŸ€–Robot To Robot (R2r)πŸ€– Communication Protocol (R2r-Protocol)

Rajkumar Rawal

18 Jul 2025

" An world first open standardized protocol enabling communication for autonomous robots to exchange data, coordinate tasks, and collaborate in real-time environments in the age of AI ". r2r-protocol (Robot2Robot Protocol) is now officially open source! πŸ”“

"pip install r2r-protocol"

r2r-protocol

Whether you're a developer, researcher, or tech enthusiast, we invite you to explore, use, and contribute to the project.

πŸ”— Check it out here: [ https://github.com/Tech-Parivartan/r2r-protocol?tab=readme-ov-file ]

Let’s build the future together! πŸ’‘ AI Parivartan Research Lab Tech Parivartan Pvt. Ltd.

Documentation of the r2r-protocal : [ https://techparivartanai.notion.site/Robot-to-Robot-r2r-Protocol-1f008f0fb18780439d70e8b9bbbdb869 ]

Article on Huggingface about r2r-protocol : https://huggingface.co/blog/rawalraj/rawalraj#%F0%9F%A4%96robot-to-robot-r2r%F0%9F%A4%96-communication-protocol-r2r-protocol

 

The R2R Protocol enables seamless robot-to-robot interaction across industrial automation, swarm robotics, logistics, and multi-agent systems. It defines structured message formats, negotiation logic, discovery mechanisms, and extensible APIs.

 

r2r-protocol (Robot2Robot-Protocol)World first open standardized protocol for robot in the age of AI : https://www.youtube.com/watch?v=r0ziEC6G-Kg

r2r-protocol (Explaining video in english by discussion) short Podcast : https://www.youtube.com/watch?v=JnqJQLAps80&t=6s

r2r-protocol (Explaining video in nepali by discussion) Podcast : https://www.youtube.com/watch?v=f-CrQTvAAFs&t=2s

 

🧩 Features

βœ… Structured JSON/Protobuf messaging

βœ… Supports TCP/IP, UDP, MQTT, WebSocket

βœ… Task negotiation (auction, consensus)

βœ… Status & telemetry updates

βœ… Optional authentication

βœ… Extensible via plugins/modules

βœ… Docker-ready

βœ… GitHub Actions CI/CD integration

βœ… Python SDK published on PyPI

 

πŸ“¦ SDKs

🐍 Python βœ… Stable sdk/python

 

r2r-protocol System Architecture :

 

Abstract architecture of the R2R protocol, showcasing the components and their interactions

 

 

 

Detailed architecture of the R2R protocol, showcasing the components and their interactions.

 

 

 

πŸš€ Quick Start (Python SDK)

πŸ”§ Install from PyPI

pip install r2r-protocol
from r2r_protocol import RobotClient

# Connect to R2R server
client = RobotClient(robot_id="bot_01", host="192.168.1.10")

# Send status update
client.send_status({
    "battery": 85,
    "position": {"x": 10.2, "y": 5.1},
    "task_progress": 0.75
})

 

🐳 Run with Docker

You can run the R2R SDK in a Docker container:

docker build -t r2r-sdk .
docker run -it r2r-sdk

 

βš™οΈ Development Setup

To contribute or extend the protocol:

1) Clone the repo

git clone https://github.com/Tech-Parivartan/r2r-protocol.git 
cd r2r-protocol

2) Set up Python environment

cd sdk/python
pip install -e .

3) Install test dependencies

pip install pytest

 

πŸ§ͺ Running Tests

Run unit tests using:

cd tests
python -m pytest test_messages.py

 

#r2r_protocol #robot2robot_protocol #r2r #robot2robot #communication #protocol #opensource