Skip to main content
Version: v9

Grid

General​

The Grid Node helps processing items ordered in form of a Grid with a single Node.
With the repeated execution of this Node, it will move the Robot to every Pose on the defined Grid.
The Grid Node is suitable for equally-spaced items of the same size.

Add it from the Patterns category of the Add Item menu. It works in Flows and Subflows. See Adding Nodes.

The Node on the canvas​

The Node header shows the Node type, Grid, and your name for the Node. While the setup is incomplete, the header reads Not configured. To wire the Node into a Flow, see Connecting.

The ports, in the order they appear on the canvas:

PortKindWhat it does
InputInputStarts the Node.
Before Item ApproachOutputRuns at the approach pose, before the move to the item.
At ItemOutputRuns at the item. Use only Relative Movements here.
Process ItemOutputRuns after the Robot has left the item.
Every N IterationsOutputExists only while Branch every is ticked.
After CompletionOutputRuns once the last item in the ITEMS range is done.

Grid Configuration​

Select the Node, then select Configure Grid. The Grid Configuration panel opens beside the Node, with five numbered cards next to a 3D preview. Select a card's header to open or close it.

The Grid Configuration panel with the Grid Variables card open and a 3D preview of 24 itemsThe Grid Configuration panel with the Grid Variables card open and a 3D preview of 24 items

1. Grid Position​

  • Pose A (Origin): an absolute Pose. It is filled in with the Robot's current Pose. Type it, or pick a saved Pose under Select Cartesian Pose.
  • Pose B (Relative to A): enter the Position Offset A → B (relative). Tick Orientation at Pose B (absolute) to give Pose B its own orientation. When it is not ticked, the orientation of Pose A is used.
  • Pose C (Optional - for accuracy): a switch in the card header, off by default. While it is off, the card says "Enable this optional Pose to increase grid accuracy. Pose C helps correct for any skew in the grid layout." While it is on, the card says "Teach this optional Pose to increase accuracy" and shows the Position Offset A → C (relative).
  • Pose D (Relative to A): enter the Position Offset A → D (relative).
  • Under each Pose, Apply current Pose takes the Robot's current Pose, press and hold Move to Target drives the Robot there, and Save as Variable saves the Pose as a Variable.
  • The offsets of Pose B and Pose D, and of Pose C while it is on, must not be 0, 0, 0.

The columns run from Pose A toward Pose B, and the rows run from Pose A toward Pose D.

grid instructions

2. Shape​

Rows and Columns are whole numbers of 2 or more. The default is 2 × 2, which makes 4 items. A value below 2 shows "Cannot be lower than 2", a value that is not a whole number shows "Enter a valid integer", and an empty field shows "Field is required". Changing either number resets the ITEMS range on the Node to all items.

3. Grid Approach Pose​

The Approach Pose defines an optional Joint Movement to a secure position above the Grid. The switch Use an approach pose is off by default. Switching it on fills in the Robot's current joint angles. The card says "The Grid Approach Pose will be accessed with a PTP movement". It has its own velocity and acceleration, the joint angles, and the three Pose buttons. The Robot goes to the approach pose before each item and returns to it after the item.

4. Item Approach Trajectory​

The card lists relative movements. Add Movement opens the Relative Movement editor inside the panel. Each movement has a Name, Velocity, Acceleration, Blending Radius and an X, Y, Z offset.

If the approach pose is defined, the movement starts from the approach pose, otherwise from the current Robot Pose. The Robot moves along the Item Approach Trajectory (if defined) to the Grid position. All the different scenarios can be seen in the figure below.

item approach trajectory

The Item Approach Trajectory is defined by relative movements toward the Item Pose. The switch below the movement list sets the coordinate system they are given in: the Robot's Base coordinate system (the default) or its Tool coordinate system. In the example above (left), in Base, there are two movements defined:

  • Movement 1: x,y,z = 0,100,0
  • Movement 2: x,y,z = 100,0,0

The relative movements are used to calculate the Cartesian waypoints (cyan 1, 2). The blending radii defined by the movements act on the computed waypoint accordingly. For example, the Blending Radius of the first movement acts on the first computed waypoint, i.e. the movement from the Approach Pose to 1 and the movement from 1 to 2 is blended with that Blending Radius.

5. Grid Variables​

The information button on the card opens Grid Variables.

3D preview​

The preview shows every item as a dot, the corner you are editing drawn larger, the Visit path through the items in the ITEMS range, and the Item Approach Trajectory into the first item visited. The layer with the items is named Grid positions. Items outside the range are faded. Displays shows or hides each layer.

If the setup is incomplete​

The Node header reads Not configured. The message is Incomplete or invalid, against Grid position, Item trajectory or Approach pose. The Approach pose message appears only while Use an approach pose is on.

On the Node​

Select the Node and its settings open in place.

The selected Grid Node with its ITEMS, BEHAVIOR and SPEED settingsThe selected Grid Node with its ITEMS, BEHAVIOR and SPEED settings

  • ITEMS: a range slider over all items. It reads, for example, "1 – 24 of 24". Only items in the range run. Items outside the range are faded in the 3D preview.

  • BEHAVIOR: three checkboxes, each linking to its section below.

    • Wait for external trigger, with an information button.
    • Branch every, with an information button and a number field.
    • Reverse approach trajectory, with an information button.

    Each information button opens that setting's page in the Documentation drawer.

  • SPEED: Velocity and Accel., from 1 to 100 %, 100 % by default. They set the move toward each item: to the first point of the Item Approach Trajectory, or straight to the item when there is no trajectory. The approach pose and each movement of the trajectory have their own speed.

  • A summary line, for example "4 rows × 6 columns, row by row", and a second line, for example "24 items".

  • Configure Grid opens the Grid Configuration.

How the Node runs​

  • If a Grid Approach Pose is set, the Robot first moves there and the Before Item Approach output runs. When nothing is connected to Before Item Approach, the approach pose is blended into the move to the item instead.
  • After that the Robot moves in Cartesian space to the Item (the Item Approach Trajectory, if defined).
  • At the Grid position, the At Item output is triggered, which can be used, for example, to pick the item.
    Note: only Relative Movements should be done at this output.
  • Afterward the Robot leaves the item, backwards along the Item Approach Trajectory if Reverse approach trajectory is ticked, returns to the approach pose if one is set, and runs Process Item.
    This output might be useful to place the previously picked item somewhere else.

These steps repeat for every item in the ITEMS range. The Node works row by row. Item 1 is at Pose A. The first row runs toward Pose B, and each following row steps toward Pose D. Items, rows and columns are numbered from 1.
Additionally the Every N Iterations output is triggered every N iterations if specified.
If all Grid positions are processed, the After Completion output is triggered to continue the Flow.

grid execution

Wait for external trigger​

When Wait for external trigger is ticked, the Node processes one item each time a branch reaches its Input. It then hands control back to that branch instead of moving on to the next item by itself. The next trigger processes the next item. After the last item in the ITEMS range, the Node runs After Completion.

This is useful for pairing two pattern Nodes. For example, a Stack / Row Node picks items, and a second Stack / Row, Grid or Palletizing Node on its Process Item output, with Wait for external trigger ticked, places them one by one on another stack, grid or pallet.

trigger externally

Branch every​

When Branch every is ticked, the Node gets an extra output, Every N Iterations, between Process Item and After Completion. Enter N in the field next to the checkbox. It starts at 2 and can't be more than the number of items in the ITEMS range. After every Nth item, once Process Item is done, the Node runs what is connected to Every N Iterations.

For example, a soldering application needs fresh solder after every 10th item. Tick Branch every, enter 10, and connect the Nodes that fetch solder to Every N Iterations.

Untick Branch every to remove the output again. Its connections are removed with it, and Undo brings them back.

Reverse approach trajectory​

With Reverse approach trajectory turned on (Reverse Approach Trajectory on the RobVision Picking Node), the Robot leaves each item the way it came: along the Item Approach Trajectory, backwards. It does this after the At Item output and before the Process Item output. Without an Item Approach Trajectory there is nothing to reverse.

While the Flow runs​

A chip above the Node shows the row, for example "Row 1". The panel shows "Item 5", "of 24 · row 1, col 5", a progress bar over the ITEMS range, and "19 remaining". While Wait for external trigger is ticked, it shows "Waiting for external trigger" instead. See What a running Node shows.

Grid Variables​

The Grid Variables card is step 5 of the Grid Configuration; its information button opens this section. Every Variable on it is optional and takes an Integer Variable: select one from the drop-down, or create it first in the Variables menu. Items, rows and columns are numbered from 1.

VariableWritten byWhat it holds
Next ItemyouThe item the Node processes next.
Current Columnthe Node (marked Read-only in the card)The column being worked on.
Current Rowthe Node (marked Read-only in the card)The row being worked on.

Next Item​

This Variable tracks the next item to be processed in the grid operation. When it is bound, the Node always processes the item whose number matches the Variable's current value. You have to change the Variable yourself in every iteration, for example with a Variable Node.

To finish the Node, set the Variable to a number outside the ITEMS range. The Node then runs its After Completion branch.

Current Column​

This Variable indicates the column being worked on. The Grid Node writes the current column into the Variable, so you can use it throughout the Flow.

Current Row​

This Variable specifies the row being worked on. The Grid Node writes the current row into the Variable, so you can use it throughout the Flow.