RobotecAI/ros2-for-unity
High-performance ROS2 solution for Unity3D
What it solves
ROS2 For Unity provides a high-performance, native way to connect the Unity3D game engine with the ROS2 robotics ecosystem. Unlike bridging solutions that add overhead, this tool uses the underlying ROS2 middleware stack directly, allowing your Unity simulation entities to function as genuine ROS2 nodes.
How it works
It integrates the ROS2 middleware (rcl layer and below) into Unity as an asset. This allows you to create publishers, subscribers, services, and clients directly within Unity scripts. It handles initialization, shutdown, and the spinning loop via a MonoBehaviour or a standard core class. Custom ROS2 messages are automatically generated during the build process, eliminating the need to manually define C# equivalents.
Who it’s for
This tool is designed for developers building robotics simulations in Unity who need high-throughput, low-latency communication with ROS2-based systems. It is particularly suited for users who need their simulation entities to interact seamlessly with standard ROS2 command-line tools and respect native ROS2 Quality of Service (QoS) settings.
Highlights
- Native ROS2 integration using the actual middleware stack rather than a bridge.
- High performance with higher throughput and lower latency than alternative solutions.
- Full compatibility with standard ROS2 command-line tools and native time.
- Automatic generation of custom ROS2 messages.
- Flexible deployment options: standalone (no external ROS2 installation required) or overlay (uses system-installed ROS2).
- Supports Ubuntu 20.04/22.04 and Windows 10/11.
Related
- Project
- Project
- Project
- Project