UnderAutomation
Any question?

[email protected]

Contact us
UnderAutomation
⌘Q

Develop without a robot (URSim)

Install URSim, the simulator of Universal Robots, in VirtualBox for PolyScope 5 or in Docker for PolyScope X, and connect the SDK to it.

  • Which simulator
  • URSim PolyScope, in a virtual machine
  • Install
  • Start a robot
  • Differences with a robot
  • URSim PolyScope X, in Docker
  • Install
  • Connect
  • Try it in the demo application
  • What to read next

This page shows how to develop and test an application without a robot, with URSim, the simulator of Universal Robots. URSim runs the software of the controller: the SDK connects to it like to a real robot.

Which simulator

SimulatorRobotsRuns inInterfaces for the SDK
URSim PolyScopeCB-Series and e-SeriesA Linux virtual machine (VirtualBox)All: Primary Interface, Dashboard, RTDE, Interpreter Mode, SSH and SFTP
URSim PolyScope XRobots with PolyScope XA Docker containerREST API, Primary Interface, RTDE

Download URSim from the download center of Universal Robots, in the Software section of your robot. A free account is needed.

URSim PolyScope, in a virtual machine

Install

  1. Download and install VirtualBox. In the installer, keep the network features, including the host-only network.
  2. Import the URSim virtual machine in VirtualBox.
  3. Before you start it, open the settings of the virtual machine, Network. Attach the adapter to Host-only Adapter, with the default VirtualBox host-only adapter.

VirtualBox network settings

Start a robot

  1. Start the virtual machine. The Linux desktop shows one shortcut per robot model (UR3, UR5, UR10...).
  2. Start the model you want. PolyScope opens.
  3. Click the menu at the top right of PolyScope to see the address of the simulated robot. Use this address in Connect.

Differences with a robot

  • The Linux user is ur, password easybot. On a robot, it is root.
  • The programs are in /home/ur/ursim-current/programs, instead of /programs on a robot.
  • The services and the remote control are set in PolyScope, as on a robot: see Prepare the robot.

URSim PolyScope X, in Docker

Install

  1. Download and install Docker Desktop, then start it.
  2. In a terminal, run the image of URSim PolyScope X:
Bash
docker run --rm -it -p 80:80 -p 30001:30001 -p 30004:30004 --add-host "host.docker.internal:host-gateway" --env HOST_ARCH=amd64 --network bridge --privileged universalrobots/ursim_polyscopex:latest
OptionRole
-p 80:80The web interface and the REST API. If port 80 is used, write -p 8080:80
-p 30001:30001The Primary Interface
-p 30004:30004RTDE
--privilegedThe rights that the simulation needs

Connect

Open http://localhost in a browser (or http://localhost:8080) to see PolyScope X. Connect the SDK to 127.0.0.1. With -p 8080:80, set Rest.Port to 8080 in ConnectParameters.

To accept commands, switch PolyScope X to remote control. The default password is operator.

Remote control on PolyScope X

Try it in the demo application

The demo application connects to URSim like to a robot.

Everything on this page can be tried without writing code, in the Connection page of the demo application.

Connection page of the Universal Robots SDK demo application

The demo application is open source. The C# source of this page is ConnectControl.cs.

What to read next

  • Connect to the robot: the interfaces and their settings.
  • REST API: the commands of PolyScope X.
  • Demo application: try every interface without code.

Easily integrate Universal Robots, Fanuc, Yaskawa, ABB or Staubli robots into your .NET, Python, LabVIEW or Matlab applications

UnderAutomation
Contact usLegal

© All rights reserved.