-
Notifications
You must be signed in to change notification settings - Fork 371
User_Inst_UnitySimulationExample
Note: This tutorial assumes that you have completed tutorials:
ROS2 Humble - R2D2
- In the Ubuntu VM, install
tkinter
(which is required bymouse_to_joy2.py
) via
sudo apt update && sudo apt install python3-tk
-
Place the folder
unity_simulation_scene2
andfile_server2
inside the/src
folder of your ROS workspace and rebuild your workspace. -
In your Unity Package Manager, select ROS# -> Samples and import the
Unity Simulation Scenes ROS2
. -
You can follow this step in the preparation part of our tutorial video on YouTube.
# Inside the root of your workspace folder (not /src)
colcon build
source install/local_setup.bash
ROS1 Noetic - TurtleBot2
Note: This tutorial assumes that you have complated TurtleBot Setup for ROS Noetic.
- In the Ubuntu VM, install
python-xlib
(which is required bymouse_to_joy.py
) via
sudo apt update && sudo apt install python-xlib
-
Place the folder
unity_simulation_scene
(from here) inside thesrc
folder of your ROS workspace and rebuild your workspace. -
In the directory
unity_simulation_scene/scripts
make the filemouse_to_joy.py
executable by running
chmod +x mouse_to_joy.py
Next tutorial: Gazebo 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