Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

ros2_dotnet

> 编程语言
Open source

.NET bindings for ROS2

182 stars0 likes2 views
WebsiteGitHub

About

.NET bindings for ROS2

ROS2 for .NET

Target Status
Linux
Windows Desktop

Windows UWP CI Builds are currently disabled, see this issue for more information.

Introduction

This is a collection of projects (bindings, code generator, examples and more) for writing ROS2 applications for .NET Core and .NET Standard.

Features

The current set of features include:

  • Generation of all builtin ROS types
  • Support for publishers and subscriptions
  • Support for clients and services
  • Support action clients and servers
  • Cross-platform support (Linux, Windows, Windows IoT Core, UWP)

What's missing?

Lots of things!

  • Unicode types
  • String constants (specifically BoundedString)
  • Component nodes
  • Tests
  • Documentation
  • More examples (e.g. IoT, VB, UWP, HoloLens, etc.)

Sounds great, how can I try this out?

First of all install the standard ROS2 dependencies for your operating system of choice (NOTE: only do this if building Windows Desktop or Linux. For UWP, see the relevant section below): https://github.com/ros2/ros2/wiki/Installation#building-from-source

Next make sure you've either installed .Net Core (preferred) https://www.microsoft.com/net/learn/get-started or Mono https://www.mono-project.com/. (NOTE: For building unit tests, .NET 6 is required).

For running on Linux or Windows Desktop, one can build ros2_dotnet (along with all desired packages containing interface definitions) as an overlay on top of an existing ROS2 installation. The ros2_dotnet_foxy.repos contains all necessary repositories to build the core ros2_dotnet project along with all standard ROS2 interface packages. If you are using other packages which provide interface definitions, those must also be included in the ros2_dotnet workspace in order for .NET bindings to be generated. (NOTE: if you wish to build the core of ROS2 from source, everything through the rcl layer is required.)

For running within UWP (Universal Windows Platform) applications, the entire core of ROS2 must be compiled for UWP compatibility.

Windows (Desktop)

Assuming you've installed ROS2 (pre-built binary packages) to the directory c:\dev\ros2_foxy per the official installation instructions, run the following from an Administrator Visual Studio 2019 Developer Command Prompt:

(NOTE: Building as an overlay on top of binary distributions of ROS2 has presented some challenges. As of this writing, you may also need to include the rosidl package due to some unicode/locale compatibility problems. This is done for you below in the line preceding colcon build. This step can/should be omitted if building on top of a built-from-source ROS2 workspace)

…

File - Build Settings - Build


### Unity generated Visual Studio solution
Open the VS solution generated after building your Unity project.
In Solution Explorer panel:

right click on Universal Windows project - Add - Existing item...

and include every DLL file from `{your_ros2_uwp_ws}\install\bin`. Now select all of these files in Solution Explorer and check/set the properties:

Build action: Content Copy to output directory: Copy always

This allows you to retrieve the files in the same directory as the assembly.

Next step, in Solution Explorer panel:

right click on References - Add reference...

and include `{your_ros2_uwp_ws}\install\lib\rcldotnet\dotnet\rcldotnet_assemblies.dll`, `{your_ros2_uwp_ws}\install\lib\rcldotnet\dotnet\rcldotnet_common.dll` and `{your_ros2_uwp_ws}\install\lib\std_msgs\dotnet\std_msgs_assemblies.dll`.

Finally compile your project for UWP (32 bits) and run it on HoloLens Emulator or HoloLens physical device.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言