RobotRaconteurWeb 0.21.0

Suggested Alternatives

RobotRaconteur.Sharp

dotnet add package RobotRaconteurWeb --version 0.21.0
                    
NuGet\Install-Package RobotRaconteurWeb -Version 0.21.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RobotRaconteurWeb" Version="0.21.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RobotRaconteurWeb" Version="0.21.0" />
                    
Directory.Packages.props
<PackageReference Include="RobotRaconteurWeb" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RobotRaconteurWeb --version 0.21.0
                    
#r "nuget: RobotRaconteurWeb, 0.21.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RobotRaconteurWeb@0.21.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RobotRaconteurWeb&version=0.21.0
                    
Install as a Cake Addin
#tool nuget:?package=RobotRaconteurWeb&version=0.21.0
                    
Install as a Cake Tool

alternate text is missing from this package README image

RobotRaconteurWeb

RobotRaconteurWeb is a pure C# implementation of the Robot Raconteur framework for use with .NET Core

http://robotraconteur.com

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.

Github Repository: https://github.com/robotraconteur/RobotRaconteurWeb

Introduction

Robot Raconteur is a communication framework for robotics, automation, and the Internet of Things. RobotRaconteurWeb is an implementation of Robot Raconteur developed in pure C#. This is in contrast to RobotRaconteurNET, which is a wrapper for the native RobotRaconteurCore implementation that is developed in C++. RobotRaconteurWeb can be used with ASP.NET web servers using WebSockets, allowing for Robot Raconteur to be easily integrated into cloud and information systems without requiring any modifications to clients.

RobotRaconteurWeb uses async/await for all blocking operations, making it easy to use with C# projects. Unlike RobotRaconteurNET, there are no blocking functions available.

Installation

For most platforms, the easiest way to install Robot Raconteur is using dotnet:

dotnet add package RobotRaconteurWeb

RobotRaconteurWeb is a pure C# netstandard2.1 library, making it very portable and easy to use with .NET Core.

Code Generation

RobotRaconteurWeb uses service definition files (*.robdef) to define the available services and data types. These files are used to generate C# code for RobotRaconteurWeb using the RobotRaconteurWebGen tool. It can be installed using the following command:

dotnet tool install --global RobotRaconteurWebGen

The RobotRaconteurWeb nuget package provides build integration to automatically generate the code when the project is built. The following 'ItemGroup' can be added to the project file to specify the service definition files:

<ItemGroup>
    <RobotRaconteurGenCSharp Include="path/to/robdef/experimental.my_service.robdef" />
</ItemGroup>

The item types <RobotRaconteurIncludeCSharp> can be used to "include" a robdef without generating the code. This is useful when a service definition file is included in another file. The <RobotRaconteurGenIncludePath> can be used to specify a directory containing robdef files to include. Files in this path will be "auto-imported" if they are included in another robdef file.

Documentation

See the Robot Raconteur Web Documentation

See the Robot Raconteur Web Examples

Example

This example demonstrates a simple client for the Reynard the Robot cartoon robot. See Reynard the Robot for more information and setup instructions.

In a terminal,run the following command to start the Reynard the Robot server:

python -m reynard_the_robot

On Linux, you may need to use python3 instead of python.

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

The following is an example RobotRaconteurWeb C# client for Reynard the Robot:

using System;
using System.Threading;
using System.Threading.Tasks;
using RobotRaconteurWeb;

// Initialize the client node
using (var node_setup = new ClientNodeSetup(args: args))
{
    // Connect to the Reynard service using a URL
    var c = (experimental.reynard_the_robot.Reynard)await RobotRaconteurNode.s.ConnectService(
        "rr+tcp://localhost:29200?service=reynard");

    // Teleport the robot
    await c.teleport(0.1, -0.2);

    // Drive the robot with no timeout
    await c.drive_robot(0.5, -0.2, -1, false);

    // Wait for one second
    await Task.Delay(1000);

    // Stop the robot
    await c.drive_robot(0, 0, -1, false);

    // Set the arm position
    await c.setf_arm_position(100.0 * (Math.PI / 180), -30 * (Math.PI / 180), -70 * (Math.PI / 180));

    //  Set the color to red
    await c.set_color(new double[] { 1.0, 0.0, 0.0 });

    // Say hello
    await c.say("Hello, World From C#!");
}

License

Apache 2.0

Support

Please report bugs and issues on the GitHub issue tracker.

Ask questions on the Github discussions.

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.