LaurieCheers bd944260 | 4 年前 | |
---|---|---|
.. | ||
PickAndPlaceProject | 4 年前 | |
ROS | 4 年前 | |
Scripts | 4 年前 | |
docker | 4 年前 | |
img | 4 年前 | |
0_ros_setup.md | 4 年前 | |
1_urdf.md | 4 年前 | |
2_ros_tcp.md | 4 年前 | |
3_pick_and_place.md | 4 年前 | |
README.md | 4 年前 | |
moveit_file_descriptions.md | 4 年前 | |
quick_demo.md | 4 年前 |
README.md
Pick-and-Place Tutorial
Unity's tools for robotic simulation enable users to integrate Unity with ROS-based workflows. ROS (Robot Operating System) provides services such as message-passing, package management, low-level device control, and hardware abstraction. Unity's robotics tools are able to support importing URDF files and sending and receiving messages between ROS and Unity. This tutorial will go through the steps necessary to integrate ROS with Unity, from installing the Unity Editor to creating a scene with an imported URDF to completing a pick-and-place task with known poses using MoveIt trajectory planning.
This tutorial is designed such that you do not need prior experience with Unity or C# in order to follow the scene setup steps, and you do not need prior robotics experience to get started with ROS integration. The tutorial is divided into high-level phases, from basic Unity and ROS initial setup through executing a pick-and-place task.
Want to skip the tutorial and run the full demo? Check out our Quick Demo
Note: This project has been tested with Python 2 and ROS Melodic, as well as Python 3 and ROS Noetic.
Pick-and-Place Tutorial
- Requirements
- Part 0: ROS Setup
- Part 1: Create Unity scene with imported URDF
- Part 2: ROS–Unity Integration
- Part 3: Pick-and-Place
Requirements
This repository provides project files for the pick-and-place tutorial, including Unity assets, URDF files, and ROS scripts. Clone this repository to a location on your local machine:
git clone --recurse-submodules https://github.com/Unity-Technologies/Unity-Robotics-Hub.git
Part 0: ROS Setup
This part provides two options for setting up your ROS workspace: using Docker, or manually setting up a catkin workspace.
Part 1: Create Unity scene with imported URDF
This part includes downloading and installing the Unity Editor, setting up a basic Unity scene, and importing a robot--the Niryo One--using the URDF Importer.
Part 2: ROS–Unity Integration
This part covers creating a TCP connection between Unity and ROS, generating C# scripts from a ROS msg and srv files, and publishing to a ROS topic.
Part 3: Pick-and-Place
This part includes the preparation and setup necessary to run a pick-and-place task with known poses using MoveIt. Steps covered include creating and invoking a motion planning service in ROS, moving a Unity Articulation Body based on a calculated trajectory, and controlling a gripping tool to successfully grasp and drop an object.