Skip to content


Repository files navigation

Robot Raconteur Core Library and Wrappers

CI license - apache 2.0 Python pypi C++ C# nuget Java View robotraconteur on File Exchange conda ros-humble ros-humble ros-humble

Windows Ubuntu Debian Linux Android IOS Mac OS Raspberry Pi FreeBSD ROS Arduino

A communication framework for robotics, automation, and the Internet of Things

J. Wason and J. T. Wen, "Robot Raconteur® Updates on an Open Source Interoperable Middleware for Robotics", in Proc. IEEE Conference on Automation Science and Engineering, 2023, pp. 1-8.

H. He, B. Aksoy, G. Saunders, J. Wason, and J. T. Wen, "Plug-and-play software architecture for coordinating multiple industrial robots and sensors from multiple vendors", in Proc. IEEE Conference on Automation Science and Engineering, 2023, pp. 1-8.

J. Wason, "Robot Raconteur® version 0.8: An Updated Communication System for Robotics, Automation, Building Control, and the Internet of Things", in Proc. IEEE Conference on Automation Science and Engineering, 2016, pp. 595-602.

J. Wason and J. T. Wen, "Robot Raconteur: A Communication Architecture and Library for Robotic and Automation Systems", in Proc. IEEE Conference on Automation Science and Engineering, 2011, pp. 761-766.



See for documentation.

Getting Help

  1. I found a bug! Please leave an issue on the GitHub Issues page
  2. I have a specific question about how to use Robot Raconteur: Please leave a question on GitHub Discussions Q&A
  3. I have a general question or comment: Please leave a message on GitHub Discussions.

Quick Start

The Quick Start example demonstrates the basic functionality of Robot Raconteur be creating a service, and then calling the service using a client. This example uses the "Reynard the Robot" Python package, which provides a simple cartoon robot.

Before running the example, make sure to install the required packages:

python -m pip install robotraconteur reynard-the-robot

On Linux, use python3 instead of python to run the Python 3 interpreter. Use python3 in the rest of the examples as well.

import RobotRaconteur as RR
RRN = RR.RobotRaconteurNode.s

import threading
import reynard_the_robot

# Define the service definition for the quickstart service
reynard_quickstart_interface = """
service experimental.reynard_quickstart

object ReynardQuickstart
    function void say(string text)
    function void teleport(double x, double y)

# Implement the quickstart service

class ReynardQuickstartImpl(object):
    def __init__(self):
        self.reynard = reynard_the_robot.Reynard()
        self._lock = threading.Lock()

    def say(self, text):
        with self._lock:

    def teleport(self, x, y):
        with self._lock:
            self.reynard.teleport(x, y)

with RR.ServerNodeSetup("experimental.minimal_create2", 53222):
    # Register the service type

    reynard_inst = ReynardQuickstartImpl()

    # Register the service
    RRN.RegisterService("reynard", "experimental.reynard_quickstart.ReynardQuickstart", reynard_inst)

    # Wait for program exit to quit
    input("Press enter to quit")

To run the service, execute the following command:


And open a browser to http://localhost:29201 to view the Reynard user interface.

This service can now be called by a connecting client. Because of the magic of Robot Raconteur, it is only necessary to connect to the service to utilize its members. In Python and MATLAB there is no boilerplate code, and in the other languages the boilerplate code is generated automatically.

from RobotRaconteur.Client import *

# RRN is imported from RobotRaconteur.Client
# Connect to the service.
obj = RRN.ConnectService('rr+tcp://localhost:53222/?service=reynard')

# Call the say function
obj.say("Hello from Reynard!")

# Call the teleport function
obj.teleport(100, 200)

To run the client, execute the following command:


The MATLAB Add-On for Robot Raconteur can be installed using the Add-On Explorer in MATLAB and searching for "Robot Raconteur".

In MATLAB, the example client is even simpler.


% Connect to the service
o = RobotRaconteur.ConnectService('rr+tcp://localhost:53222/?service=reynard');

% Call the say function
o.say("Hello from MATLAB!");

% Call the teleport function

The quickstart file can be found in the examples/quickstart directory.

Getting Started

Robot Raconteur has a large ecosystem with a number of related projects. Start with the Robot Raconteur tutorial, and the Python examples:

The Python examples support using a Gazebo simulated iRobot Create robot. See the training simulator for installation instructions:

The training simulator also contains a simulation for two Universal Robots UR5e robots, with grippers and cameras. Example scripts to control the robots are included. See the training simulator readme for instructions.

Next, take a look out the examples for other languages:

Robot Raconteur provides a large number of standardized types to use with robots and other devices. See the standard robdef repository:

There are numerous other projects, drivers, and resources in the ecosystem. See the directory for a full list of available resources:

Also checkout the PyRI Open source teach pendant:


See docs/common/ for installation instructions.

The following platforms are supported:

  • Windows (x86, amd64, arm64): C++, Python, C#, Java, MATLAB, LabView
  • Linux (x86, x64, armhf, arm64): C++, Python, C#, Java, MATLAB, LabView
  • MacOS (x64, arm64): C++, Python, C#, Java, MATLAB
  • Android (x86, x64, armhf, arm64): C++, Java
  • iOS (arm-v7, arm64): C++
  • Browser (Chrome, Firefox, Edge, Safari): C++, Python, JavaScript
  • FreeBSD (x64)


See docs/common/ for build instructions.

ROS Support

Robot Raconteur is available in ROS Noetic and ROS Humble using the robotraconteur package. These packages are built using the ros-noetic and ros2-humble branches. The ros2-humble branch should work with other versions of ROS 2, but swig version 4.0.2 or greater must be installed first.

A Robot Raconteur to ROS 2 bridge is available, allowing access to ROS 2 topics and services from Robot Raconteur:

Standard Service Types

The Robot Raconteur project has defined a number of standard service definitions that contain numerous structure, pod, namedarray, and object types. These types cover a range of common data types, and provide standardized interfaces to devices. These types should be used whenever possible so that services will be interoperable. The standard service types are available in the GitHub repository.

Companion Libraries

The Robot Raconteur Companion libraries are provided to assist in using the standard service types, along with other generic utility functions. Currently, the companion libraries contain the standard service types, info file loaders, and general utility functions. The following libraries are available:

The Python companion library can also be installed using pip install RobotRaconteurCompanion

See for an example utilizing standard types and the companion library.

Robot Raconteur Directory

The Robot Raconteur project maintains a list of available drivers. The directory can be found here:

Package Quality

Robot Raconteur Core is a ROS Quality Level 2 package. See the Quality Declaration for more details.


Contributors must sign a Contributor License Agreement (CLA). Please see to complete and return a signed agreement. Wason Technology, LLC uses the Harmony CLA (


The Robot Raconteur core library is Apache 2.0 licensed.

"Robot Raconteur" and the Robot Raconteur logo are registered trademarks of Wason Technology, LLC. All rights reserved.

Robot Raconteur is covered United States Patent No. 10536560

Robot Raconteur is developed by John Wason, PhD, Wason Technology, LLC


This work was supported in part by Subaward No. ARM-TEC-18-01-F-19 and ARM-TEC-19-01-F-24 from the Advanced Robotics for Manufacturing ("ARM") Institute under Agreement Number W911NF-17-3-0004 sponsored by the Office of the Secretary of Defense. ARM Project Management was provided by Christopher Adams. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of either ARM or the Office of the Secretary of Defense of the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes, notwithstanding any copyright notation herein.

This work was supported in part by the New York State Empire State Development Division of Science, Technology and Innovation (NYSTAR) under contract C160142.