Skip to content

Commit 3248e11

Browse files
mikeViamTWnpentrel
authored andcommitted
changes to Control the mock robot arm
1 parent 541a361 commit 3248e11

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: docs/tutorials/viam-on-a-virtual-machine.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,19 @@ Do not share your robot secret or robot address publicly. Sharing this informati
170170

171171
### Control the mock robot arm
172172

173-
While connected to the robot, you can verify the operation of the fake arm from the **CONTROL** tab or through code, which allows you to control and observe to positioning of the arm component in the terminal and in the GUI.
173+
While connected to the robot, you can verify the operation of the fake arm from the **CONTROL** tab or through code, which would allow you to control and observe to positioning of the arm component in the terminal and in the GUI.
174174

175-
In the GUI, you can click **Modify All** to change the X, Y, and Z positions for joints in the arm. Alternatively, you could download and run <file>arm_move.py</file> to programmatically perform random changes and observe the returned positional value changes in the terminal, as well as on the **CONTROL** tab.
175+
#### Using the GUI
176176

177-
### Creating the arm control file
177+
In the GUI, you can click **Modify All** to change the X, Y, and Z positions for joints in the arm.
178+
179+
### Using the SDK
180+
181+
Alternatively, you can programmatically perform random changes and observe the returned positional value changes in the terminal, as well as on the **CONTROL** tab using either the Python SDK or the GO SDK.
182+
183+
The next section describes the process for Python.
184+
185+
#### Creating the arm control code
178186

179187
Paste the boilerplate code from the CODE SAMPLE tab of the Viam app into a file named <file>arm-move.py</file> or into your code editor.
180188
<file>arm_move.py</file> imports the arm component from the Viam Python SDK and imports the random and async.io libraries.

0 commit comments

Comments
 (0)