Robot Digital Twin Guide

Download pdf version here

1. OVERVIEW OF THE ENVIRONMENT

After accessing the Robotics Digital Twin with the remote desktop, you will see a layout similar to the following figure (Figure 1).

Figure 1. Overview of the environment.

Here you can see the 3 main parts of the Digital Twin.
⦁ The first one is the code editor, here you will write and execute the code.
⦁ The second one is a live feed of a webcam. Here you can see the real robot in the lab.
⦁ The third one is the Digital Twin program. This is the bridge between the code and the real robot.

2. THE CODE EDITOR

In the exercises and classes, you will learn how to use commands to control the robot. These commands can also be found in the documentation.

To write some custom code, do it in the main function that is on the index.js file. We recommend that for the purposes of the exercises, you write all the code on this file, separating some behaviour in functions if needed, as shown in figure 2.

To run the program that you wrote, use the following command on the console inside visual studio code:

The program may not work if the Digital Twin is not in the correct state. The program should show a warning if so. To understand how to set up the digital twin to be used with custom code, refer to the «Remote Tab» character in this documentation.

3. THE DIGITAL TWIN

Now we will detail the functionality of the Digital Twin program. This section will divide the functionality using the user interface tabs.