-
Notifications
You must be signed in to change notification settings - Fork 374
User_Inst_InstallationROS_sharp
ROS# can be used with Unity by installing the package or with any compatible .NET project by integrating the libraries (RosBridgeClient, MessageGeneration, Urdf) (please see platform support and external dependencies). For both Unity and .NET integration, ROS# can be installed with three options.
You don't need to install ROS# for both Unity and Visual Studio. This page is for Unity installation/configuration. Please head to Installing and Configuring ROS# for .NET if you want to work with Visual Studio.
-
Open Unity Package Manager.
-
Click the "Add package from git URL" option at the top left corner.
-
Paste the following URL: https://github.com/siemens/ros-sharp.git?path=/com.siemens.ros-sharp
> This method allows you to access the latest updates more quickly.
- Add the package to your assets from the Unity Asset Store.
- Open Unity Package Manager, find ROS#, and download.
- Download the desired release from the releases section.
- Open Unity Package Manager.
- Click the "Add package from disk" option at the top left corner.
- Select
com.siemens.ros-sharp/package.json
from the downloaded release (only for ROS# versions > 2.0.0).
-
Now RosBridgeClient, UrdfImporter, and Message Generator are included in your Unity project. Once the plugins have been loaded, the following new menu items will show up:
-
ROSBridgeClient
>Generate Messages
\Transfer URDF to ROS
\Transfer URDF from ROS
-
GameObject
>3D Object
>URDF Model (import)
\URDF Model (new)
-
-
In addition, you can now access sample tutorials directly from the
Package Manager
. With the new Unity package system, samples do not come pre-installed, but you can choose which one to download and import with a single button. Once clicked, it will be automatically imported into yourassets
folder.
Next tutorial: Unity Simulation Scene Setup
© Siemens AG, 2017-2024
-
- 1.3.1 R2D2 Setup
- 1.3.2 Gazebo Setup on VM
- 1.3.3 TurtleBot Setup (Optional for ROS2)
-
- 2.1 Quick Start
- 2.2 Transfer a URDF from ROS to Unity
- 2.3 Transfer a URDF from Unity to ROS
- 2.4 Unity Simulation Scene Example
- 2.5 Gazebo Simulation Scene Example
- 2.6 Fibonacci Action Client
- 2.7 Fibonacci Action Server
- 3.1 Import a URDF on Windows
- 3.2 Create, Modify and Export a URDF Model
- 3.3 Animate a Robot Model in Unity
- Message Handling: Readers & Writers
- Thread Safety for Message Reception
- File Server Package
- ROS-Unity Coordinate System Conversions
- Post Build Events
- Preprocessor Directives in ROS#
- Adding New Message Types
- RosBridgeClient Protocols
- RosBridgeClient Serializers
- Action Server State Machine Model
© Siemens AG, 2017-2024