Skip to content

ROS# is a set of open source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity3D

License

Notifications You must be signed in to change notification settings

siemens/ros-sharp

ROS#

Overview

ROS# is a set of open-source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity. With ROS#, developers can effortlessly create .NET applications that communicate with ROS nodes, subscribe to and publish topics, handle actions and services, and interact with ROS messages. This enables the development of robotics applications, simulations, and automation systems within the .NET ecosystem.

ROS# Architecture

Here are some showcases illustrating what can be done with ROS#. The community provided various other application examples for ROS# here.

ROS# Showcase

Installation

ROS# can be used with Unity Engine and/or with any compatible .NET project, see platform support and external dependencies.

For more installation options, detailed instractions, and getting started see wiki: Installing and Configuring ROS# for Unity.

  • For .NET Projects: NuGet Gallery

    1. Head to the NuGet page.
    2. Install the required packages individually from NuGet.

For more installation options, detailed instractions, and getting started see wiki: Installing and Configuring ROS# for .NET.

Platform Support

  • The ROS# dependencies require .NET 8 and Visual Studio 2022 or higher.
  • The Unity package has been developed with Unity Version 2022.3.17f1 (LTS) and should also be compatible with older versions.

For Unity versions below 2022.3: See wiki.

Repository Structure

Below is an overview of the main directories and their purposes:

  • com.siemens.ros-sharp/: Contains the custom Unity UPM package for integrating ROS# into Unity projects. The package includes the whole ROS# .NET solution, as well as Unity specific scripts, external dependencies, and samples. This folder follows a planned layout as Unity recommends.

    • Runtime/: Core ROS# .NET scripts and components for Unity integration.
    • Editor/: Unity specific editor scripts for mainly UI extensions.
    • Plugins/: External dependencies with specific versions.
    • Samples~/: Example samples that need to be imported through the package manager window. For more info about example scenes and reference code, see wiki.
  • Libraries/: .NET solution containing the core ROS# libraries and tools for communicating with ROS.

    • RosBridgeClient/: Core ROS# .NET library for communicating with ROS via websockets.
    • MessageGeneration/: Tools for generating C# classes from ROS message definitions, including messages, actions, and services with both ROS1/2 support.
    • Urdf/: Library for parsing URDF files and creating Unity GameObjects.
    • PostBuildEvents/: OS specific post build scripts. Please see post build events for more information.
  • ROS Packages/: ROS packages that are used by ROS# for tutorial, testing and demonstration purposes.

Further Info


© Siemens AG, 2017-2024

About

ROS# is a set of open source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity3D

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages