robotraconteur repository

Repository Summary

Checkout URI https://github.com/robotraconteur/robotraconteur.git
VCS Type git
VCS Version ros2-humble
Last Updated 2024-03-16
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
robotraconteur 1.1.1

README

Robot Raconteur Core Library and Wrappers

CI Build Status license - apache 2.0 Python pypi C++ C\# nuget Java View robotraconteur on File Exchange conda

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

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

http://robotraconteur.com

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.

Contents

Documentation

See https://github.com/robotraconteur/robotraconteur/wiki/Documentation 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

A simple service will initialize Robot Raconteur and register an object as a service. This example service creates a simple service that contains a single function to drive an iRobot Create through a serial port. This is a minimal subset of the full example in the documentation.

minimalcreateservice.py

import RobotRaconteur as RR
RRN=RR.RobotRaconteurNode.s
import threading
import serial
import struct

minimal_create_interface="""
service experimental.minimal_create

object create_obj
    function void Drive(int16 velocity, int16 radius)
end object
"""

class create_impl(object):
    def __init__(self, port):
        self._lock=threading.Lock()
        self._serial=serial.Serial(port=port,baudrate=57600)
        dat=struct.pack(">4B",128,132,150, 0)
        self._serial.write(dat)

    def Drive(self, velocity, radius):
        with self._lock:
            dat=struct.pack(">B2h",137,velocity,radius)
            self._serial.write(dat)

with RR.ServerNodeSetup("experimental.minimal_create", 52222):
    #Register the service type
    RRN.RegisterServiceType(minimal_create_interface)

    create_inst=create_impl("/dev/ttyUSB0")

    #Register the service
    RRN.RegisterService("Create","experimental.minimal_create.create_obj",create_inst)

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

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.

minimalcreateclient.py

from RobotRaconteur.Client import *
import time

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

#The "Create" object reference is now available for use
#Drive for a bit
obj.Drive(100,5000)
time.sleep(1)
obj.Drive(0,5000)

In MATLAB, this client is even simpler.

minimalcreateclient.m

o=RobotRaconteur.Connect('rr+tcp://localhost:52222/?service=Create');
o.Drive(int16(100),int16(5000));
pause(1);
o.Drive(int16(0),int16(0));

Getting Started

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

https://robotraconteur.github.io/robotraconteur/doc/core/latest/python/

https://github.com/robotraconteur/RobotRaconteur_Python_Examples

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

https://github.com/robotraconteur-contrib/robotraconteur_training_sim

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:

https://github.com/robotraconteur/RobotRaconteur_CPP_Examples

https://github.com/robotraconteur/RobotRaconteur_CSharp_Examples

https://github.com/robotraconteur/RobotRaconteur_Java_Examples

https://github.com/robotraconteur/RobotRaconteur_MATLAB_Examples

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

https://github.com/robotraconteur/robotraconteur_standard_robdef

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

https://github.com/robotraconteur/robotraconteur-directory

Also checkout the PyRI Open source teach pendant: https://github.com/pyri-project/pyri-core

Installation

See docs/common/installation.md 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)

Building

See docs/common/building.md 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:

https://github.com/robotraconteur-contrib/robotraconteur_ros2_bridge

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 https://github.com/robotraconteur/robotraconteur_standard_robdef 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 https://github.com/robotraconteur-contrib/robotraconteur_camera_driver/blob/master/robotraconteur_camera_driver.py 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:

https://github.com/robotraconteur/robotraconteur-directory

Package Quality

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

Contributing

Contributors must sign a Contributor License Agreement (CLA). Please see https://www.wasontech.com/contributors to complete and return a signed agreement. Wason Technology, LLC uses the Harmony CLA (https://www.harmonyagreements.org/).

License

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

Acknowledgment

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.

CONTRIBUTING

No CONTRIBUTING.md found.

Repository Summary

Checkout URI https://github.com/robotraconteur/robotraconteur.git
VCS Type git
VCS Version ros2-iron
Last Updated 2024-03-16
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
robotraconteur 1.1.1

README

Robot Raconteur Core Library and Wrappers

CI Build Status license - apache 2.0 Python pypi C++ C\# nuget Java View robotraconteur on File Exchange conda

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

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

http://robotraconteur.com

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.

Contents

Documentation

See https://github.com/robotraconteur/robotraconteur/wiki/Documentation 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

A simple service will initialize Robot Raconteur and register an object as a service. This example service creates a simple service that contains a single function to drive an iRobot Create through a serial port. This is a minimal subset of the full example in the documentation.

minimalcreateservice.py

import RobotRaconteur as RR
RRN=RR.RobotRaconteurNode.s
import threading
import serial
import struct

minimal_create_interface="""
service experimental.minimal_create

object create_obj
    function void Drive(int16 velocity, int16 radius)
end object
"""

class create_impl(object):
    def __init__(self, port):
        self._lock=threading.Lock()
        self._serial=serial.Serial(port=port,baudrate=57600)
        dat=struct.pack(">4B",128,132,150, 0)
        self._serial.write(dat)

    def Drive(self, velocity, radius):
        with self._lock:
            dat=struct.pack(">B2h",137,velocity,radius)
            self._serial.write(dat)

with RR.ServerNodeSetup("experimental.minimal_create", 52222):
    #Register the service type
    RRN.RegisterServiceType(minimal_create_interface)

    create_inst=create_impl("/dev/ttyUSB0")

    #Register the service
    RRN.RegisterService("Create","experimental.minimal_create.create_obj",create_inst)

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

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.

minimalcreateclient.py

from RobotRaconteur.Client import *
import time

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

#The "Create" object reference is now available for use
#Drive for a bit
obj.Drive(100,5000)
time.sleep(1)
obj.Drive(0,5000)

In MATLAB, this client is even simpler.

minimalcreateclient.m

o=RobotRaconteur.Connect('rr+tcp://localhost:52222/?service=Create');
o.Drive(int16(100),int16(5000));
pause(1);
o.Drive(int16(0),int16(0));

Getting Started

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

https://robotraconteur.github.io/robotraconteur/doc/core/latest/python/

https://github.com/robotraconteur/RobotRaconteur_Python_Examples

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

https://github.com/robotraconteur-contrib/robotraconteur_training_sim

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:

https://github.com/robotraconteur/RobotRaconteur_CPP_Examples

https://github.com/robotraconteur/RobotRaconteur_CSharp_Examples

https://github.com/robotraconteur/RobotRaconteur_Java_Examples

https://github.com/robotraconteur/RobotRaconteur_MATLAB_Examples

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

https://github.com/robotraconteur/robotraconteur_standard_robdef

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

https://github.com/robotraconteur/robotraconteur-directory

Also checkout the PyRI Open source teach pendant: https://github.com/pyri-project/pyri-core

Installation

See docs/common/installation.md 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)

Building

See docs/common/building.md 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:

https://github.com/robotraconteur-contrib/robotraconteur_ros2_bridge

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 https://github.com/robotraconteur/robotraconteur_standard_robdef 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 https://github.com/robotraconteur-contrib/robotraconteur_camera_driver/blob/master/robotraconteur_camera_driver.py 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:

https://github.com/robotraconteur/robotraconteur-directory

Package Quality

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

Contributing

Contributors must sign a Contributor License Agreement (CLA). Please see https://www.wasontech.com/contributors to complete and return a signed agreement. Wason Technology, LLC uses the Harmony CLA (https://www.harmonyagreements.org/).

License

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

Acknowledgment

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.

CONTRIBUTING

No CONTRIBUTING.md found.

Repository Summary

Checkout URI https://github.com/robotraconteur/robotraconteur.git
VCS Type git
VCS Version ros-noetic
Last Updated 2024-03-16
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
robotraconteur 1.1.1

README

Robot Raconteur Core Library and Wrappers

CI Build Status license - apache 2.0 Python pypi C++ C\# nuget Java View robotraconteur on File Exchange conda

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

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

http://robotraconteur.com

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.

Contents

Documentation

See https://github.com/robotraconteur/robotraconteur/wiki/Documentation 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

A simple service will initialize Robot Raconteur and register an object as a service. This example service creates a simple service that contains a single function to drive an iRobot Create through a serial port. This is a minimal subset of the full example in the documentation.

minimalcreateservice.py

import RobotRaconteur as RR
RRN=RR.RobotRaconteurNode.s
import threading
import serial
import struct

minimal_create_interface="""
service experimental.minimal_create

object create_obj
    function void Drive(int16 velocity, int16 radius)
end object
"""

class create_impl(object):
    def __init__(self, port):
        self._lock=threading.Lock()
        self._serial=serial.Serial(port=port,baudrate=57600)
        dat=struct.pack(">4B",128,132,150, 0)
        self._serial.write(dat)

    def Drive(self, velocity, radius):
        with self._lock:
            dat=struct.pack(">B2h",137,velocity,radius)
            self._serial.write(dat)

with RR.ServerNodeSetup("experimental.minimal_create", 52222):
    #Register the service type
    RRN.RegisterServiceType(minimal_create_interface)

    create_inst=create_impl("/dev/ttyUSB0")

    #Register the service
    RRN.RegisterService("Create","experimental.minimal_create.create_obj",create_inst)

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

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.

minimalcreateclient.py

from RobotRaconteur.Client import *
import time

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

#The "Create" object reference is now available for use
#Drive for a bit
obj.Drive(100,5000)
time.sleep(1)
obj.Drive(0,5000)

In MATLAB, this client is even simpler.

minimalcreateclient.m

o=RobotRaconteur.Connect('rr+tcp://localhost:52222/?service=Create');
o.Drive(int16(100),int16(5000));
pause(1);
o.Drive(int16(0),int16(0));

Getting Started

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

https://robotraconteur.github.io/robotraconteur/doc/core/latest/python/

https://github.com/robotraconteur/RobotRaconteur_Python_Examples

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

https://github.com/robotraconteur-contrib/robotraconteur_training_sim

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:

https://github.com/robotraconteur/RobotRaconteur_CPP_Examples

https://github.com/robotraconteur/RobotRaconteur_CSharp_Examples

https://github.com/robotraconteur/RobotRaconteur_Java_Examples

https://github.com/robotraconteur/RobotRaconteur_MATLAB_Examples

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

https://github.com/robotraconteur/robotraconteur_standard_robdef

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

https://github.com/robotraconteur/robotraconteur-directory

Also checkout the PyRI Open source teach pendant: https://github.com/pyri-project/pyri-core

Installation

See docs/common/installation.md 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)

Building

See docs/common/building.md 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:

https://github.com/robotraconteur-contrib/robotraconteur_ros2_bridge

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 https://github.com/robotraconteur/robotraconteur_standard_robdef 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 https://github.com/robotraconteur-contrib/robotraconteur_camera_driver/blob/master/robotraconteur_camera_driver.py 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:

https://github.com/robotraconteur/robotraconteur-directory

Package Quality

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

Contributing

Contributors must sign a Contributor License Agreement (CLA). Please see https://www.wasontech.com/contributors to complete and return a signed agreement. Wason Technology, LLC uses the Harmony CLA (https://www.harmonyagreements.org/).

License

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

Acknowledgment

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.

CONTRIBUTING

No CONTRIBUTING.md found.