Skip to content

A digital-twin of a Universal Robot created in unity3D

License

Notifications You must be signed in to change notification settings

Grand-Garage/unity3d_universal_robot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UR - Unity3D Digital Twin

Control the Universal Robots with Unity3D by using URScript and a TCP/IP communication.

You can find a documentation of more commands URScript commands in the official Manual.

Showcase with PolyScope



Requirements

Software / Package Description / Link
OS Linux or Windows
Unity3D 2020.3.xx https://unity3d.com/get-unity/download/archive
Docker https://docs.docker.com/get-docker/
UR Simulator https://github.com/vushu/DockURSim



Features

Virtual UR Twin

Use the game engine Unity3D to directly move your UR robot.

Game Controller Support

Full support for common game controllers, e.g. for Playstation and Xbox.

Waypoints

Create a simple movement set in an intuitive virtual environment without needing any skills in robotic.

User friendly

You will be guided throw a tutorial to lean the controls and more. All logs from the Robot will be print out in alert boxes. You have full control of brakes and Hand-e Grippers from Robotiq.



Quick Start

I) UR Simulator

  1. Docker: Install and run Docker Engine
  2. URSim
    # Create volume
    docker volume create dockursim
    
    # Run container
    docker run -d \
    --name="dockursim" \
    -e ROBOT_MODEL=UR3 \
    -p 8080:8080 \
    -p 29999:29999 \
    -p 30001-30004:30001-30004 \
    -v /path/to/your/local/ursim/programs:/ursim/programs \
    -v dockursim:/ursim \
    --privileged \
    --cpus=1 \
    arranhs/dockursim:latest
    
  3. Open http://localhost:8080

II) Unity3D

Connect to UR Sim

  1. Make sure URSim is running
  2. Connect in Unity to 127.0.0.1

Connect to real robot

  1. Connect you PC by the ethernet with your robot
  2. Configurate your network, e.g.:
    # Polyscope
      IP: 192.168.0.102
      Subnet: 255.255.255.0
      Gateway: 192.168.0.1
    
    # PC
      IP: 192.168.0.101
      Subnet: 255.255.255.0
      Gateway: 192.168.0.1
    
    # Unity
      IP: 192.168.0.102
       ```
    
    

Sources

License

MIT

About

A digital-twin of a Universal Robot created in unity3D

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.6%
  • Other 0.4%