ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

ROS2 For Unity has just released ROS2 For Unity, a solution to connect Unity3D simulations with ROS2 ecosystem. It is now open-source under Apache 2.0 license. You can read about it in our blog post.

While there are some other bridging solutions available, ROS2 For Unity is meant for users who care about performance and high-speed simulation , especially with large data throughputs which are usual in automotive simulations.

It runs on Ubuntu 20.04 and Windows 10 and we tested it with Unity 2021.1.7f1. Both Foxy and Galactic are supported. You can start with one of our prepared releases, which can be easily imported as a Unity Asset.

For Windows 10, you have all the dependencies included so it will work on a machine without ros2 installation (e.g. in a distributed simulation - stack architecture).


This is cool. Can you provide a Dockerfile for Ubuntu users?

1 Like

We do not have a dockerfile yet, but it should be easy enough to cook up following the instructions in readme (already there as a batch of commands):

This is of course for building it yourself. Using a released package on Ubuntu with ros2 installation is straightforward.


Thanks for adding an issue for it.

1 Like

Very nice. I myself use Vortex DDS from Advantech with Unity3D to communicate with ROS. I am in the process of releasing this open source too.

Question: Do you support ROS services and actions too from within Unity3D? I browsed a bit through your code but could not see examples of that, only of pub and sub of topics (mind you, it is 0:50 already, I might have missed it )

1 Like

Not yet, though services are rather straightforward and it is a matter of hitting our first use case that needs them. I didn’t look into actions yet.

1 Like

Thank you! This looks great!
I’m seeing recently a lot of interest in Unity simulations for robotics.

Have you been in contact with Unity people? Will this new ROS 2 client library replace the ROS TCP connector approach they currently provide? GitHub - Unity-Technologies/ROS-TCP-Connector

1 Like

US Air Force and Immersive Wisdom do Unity immersive 360° teleop of ROS 2 Galactic robots via 4G LTE using zenoh-plugin-dds and zenoh-c#. This setup can also be used with Unity simulation, I think it would be appropriate if the ROS 2 and Unity are in different locations. If both are on the same fast wired network then definitely use @adamdbrw ros2-for-unity. Eclipse Zenoh is sister project of Eclipse Cyclone DDS (report here). Zenoh also works with the other OMG DDS implementations. ROS 2 with Zenoh how to is here. ROS 2 with Zenoh for bandwidth constrained wireless in Indy Autonomous Challenge racecars how to is here. Chat with developers and users on zenoh gitter. fyi the US Air Force application is passive inspection, safety & security.

1 Like

ROS 2 with @adamdbrw’s ros2-for-unity gives a very large performance improvement (latency, throughput) to the SVL Simulator used by the Indy Autonomous Challenge university teams compared to its default ROS 2 bridge.


Dockerfile PR is merged (Docker by pijaro · Pull Request #16 · RobotecAI/ros2-for-unity · GitHub)

We had several calls with Unity team but in the end I believe they cared about going with their solution for various reasons. These are not all clear to me, I would not like to misrepresent them here. I believe Unity was also interested in providing some support for our Ros2 For Unity in the future. On our side, we are open to various developments, especially when we could get more users to benefit from R2FU.

Good points! Since R2FU uses ros2 (rcl) under the hood, it has both shortcomings (e.g. current state of wifi communication) and advantages of ros2. As such, it will also improve as ros2 improves.