|
To access Assignment command
|
-
Go to the main program screen. 请参阅Command Nodes。
-
Tap the Assignment icon in the Commands toolbox.
A node with three editable fields is inserted into the program tree:
-
Tap the Variable field to choose your variable:
The Variable field contains the name of the variable. By default, the variable is called var.
|
| |
-
Tap the Value Type field to and select your choice:
-
数组
-
布尔
-
浮点
-
网格
-
整数
-
矩阵
-
位姿
-
字符串
-
计时器
-
路点
The Value Type contains the type of variable you are creating.
| 类型
|
Allowed Values/Examples
|
Examples
|
| 数组 |
A list of values |
|
| 布尔 |
True/False |
真 |
| 浮点 |
A decimal point value |
1.23 |
| 网格 |
A grid defined in the application |
|
| 整数 |
整数 |
5 |
| 矩阵 |
|
|
| 位姿 |
A pose for the robot to move |
p[0,0,0,0,0,0,] |
| 字符串 |
文本 |
“Hello World” |
| 路点 |
A waypoint is defined in the program |
|
|
| |
-
Tap the Expression field, select your variables and expression, and Confirm. The Expression is the value to assign the variable. See 表达式编辑器.
Note: Tap the icon arrow left and arrow right in the right sidebar of the main screen if you want the assignment to be reverted.
|