Unity Ros



ROSCon 2019 Lighting talk

  • University at Buffalo.
  • In the field of robotics, it's used to evaluate the performance of robots. Learn how to achieve the necessary precision and accuracy for your simulations using a combination of ROS (Robotics Operating System), a popular robotics middleware, and Unity. Learn more about Robotics and Simulation.
  • Stereolabs is the leading provider of depth and motion sensing technology based on stereo vision.

Introduction

Unity Ros 2 by DynoRobotics - 2. Unity 2019.3.0f6 Unknown License Updated 284 days ago Created on January 15th, 2019. ROSCon 2019 Lighting talk. This is a collection of projects (bindings, code generator, examples and more) for writing ROS2 applications for C# specificly targeted.

This is a collection of projects (bindings, code generator, examples and more) for writing ROS2applications for C# specificly targeted at Unity.

Unity Rose

Platform support

This project curretly supports Ubuntu 18.04. Windows 10 was supported in an earlier versions of this project, but is not yet available in the standalone version. It should be possible to get it working on other systems as well.

Unity ros2

How can I try this out?

Clone this repo and open the Unity Project using the Unity Hub.We plan to make this be available as a .unitypackage and in the Unity Asset Store as soon as possible.

Installing Unity

Install Unity through Unity Hubhttps://forum.unity.com/threads/unity-hub-v-1-6-0-is-now-available.640792(the download link changes sometimes, so look at the newest posts)

After downloading Unity Hub install Unity Editor. Follow this instruction https://docs.unity3d.com/Manual/GettingStartedInstallingHub.html When choosing a version, choose the latest stable one. During installation, wait until the blue line is complete.

Building custom interfaces/messages

Clone https://github.com/samiamlabs/ros2_dotnet (cyclone branch) and run the script create_unity_plugin.bash to build/generate a “Plugins” folder for Unity from source.This script requires that you have docker installed on your system permissions setup to run it without sudo. See https://dyno-system-config.readthedocs.io/en/latest/docker.html

If you want some custom messages included in the prebuilt binaries, you are welcome to submit a pull request with a ROS2 package containing the interfaces/messages to https://github.com/DynoRobotics/rcldotnet_custom_interfaces

Unity rose fire tattoo designs

To build custom messages yourself, you will need to add the packages containing them to https://github.com/samiamlabs/ros2_dotnet/blob/cyclone/ros2_dotnet_dashing.repos and https://github.com/samiamlabs/ros2_dotnet/blob/cyclone/rcldotnet_utils/rcldotnet_utils/create_unity_plugin.py before running the build script. Note that all the .so files need to be set to preload at startup in Unity. (Can be selected in a checkbox in the “inspector” window)

Features

Unity

The current set of features include:

  • Generation of all builtin ROS types, dynamic arrays and nested types.
  • Support for publishers and subscriptions
  • Quality of service profiles
  • Time (limited support)
  • Laser scan
  • Tf publisher
  • Pose publisher
  • Odometry (ground truth, no noise yet)
  • Base controller
  • Basic Navigation2 support
  • Sending nav goals
  • Path visualizer
  • Keyboard teleop
  • Tests
  • and more…

What’s missing?

Unity Rose Wine

Unity Ros

Unity Ros

  • More examples
  • Better cross-platform support (Windows IoT Core, UWP, Mac) [should work with minimal modifications, but not tested]
  • Automatic test runner for CI (C#)
  • Costmap visualizer
  • Camera sensor
  • Camera viewer
  • 3d sensor
  • Pointcloud visualizer
  • Video visualiszer
  • ros2_control support
  • Hololens support

Robot Simulator Script

Example Applications