-
Notifications
You must be signed in to change notification settings - Fork 376
User_App_ROS_TransferURDFToROS
Suzannah Smith edited this page Sep 28, 2018
·
8 revisions
2.2 Transfer a URDF from Unity to ROS
Note: This tutorial assumes that you have completed tutorial: 1 - Installation and Configuration.
- Using the following command, launch the
ros_sharp_communication.launch
file which was previously downloaded in the 1.3 ROS on Ubuntu tutorial. This will launchrosbridge_websocket
andfile_server
, so that ROS is ready to receive any information sent from Unity.
$ roslaunch file_server ros_sharp_communication.launch
- In Unity go to
RosBridgeClient
>Transfer URDF to ROS...
- In the dialog box, change the address to the IP address of
enp0s8
mentioned earlier in tutorial 1.2 - Change the port to
9090
as displayed in theroslaunch
terminal.ws://xxx.xxx.xxx.xxx:9090
- Select a URDF file to export. In order to transfer meshes and texture files properly, the URDF file must be in the same root folder as the assets.
- Enter a ROS package name. The URDF file and any resources it needs will be transfered to this package. If the package doesn't already exist in your catkin workspace, a new one with this name will be created.
- Initiate the transfer by clicking the button
Read Robot Description
.
- In your catkin workspace, all URDF files will be in the package that you specified previously. As well, you can now access the rosparams
/robot_description
and/robot_name
. - To visualize the transfered robot, run the following command. This will launch
robot_state_publisher
,joint_state_publisher
, and RVIZ.
$ roslaunch file_server visualize_robot.launch
Next tutorial: 2.3 Gazebo Simulation Example
© Siemens AG, 2018 Author: Suzannah Smith ([email protected])
-
- 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-2025