🤖Robot to Robot (r2r)🤖 Communication Protocol (r2r-protocol)

" 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 "
Whether you're a developer, researcher, or tech enthusiast, we invite you to explore, use, and contribute to the project.
🔗 Check it out here (Github Repository): [ 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 ]
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.
Short video : https://www.youtube.com/watch?v=r0ziEC6G-Kg
Explaining video of r2r-protocol repository tutorial in detail : https://www.youtube.com/watch?v=6ygCtpi-iSY
🧩 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
client = RobotClient(robot_id="bot_01", host="192.168.1.10")
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 "
#robot2robot_protocol #r2r_protocol