Sensed Workspaces
A Sensed Workspace is a parametric recipe, not a fixed location. Instead of three taught Positions, you define an Anchor Pose and a few Sensing Positions around the structure. At runtime a Workspace Calibration Node moves the Robot to each Sensing Position, senses the feature with the Detection Sensor and solves the Workspace transform. Reference Groups that use the Workspace follow it.
Sensed Workspaces are a Beta feature, available only on the Beta update channel. RobFlow marks them Beta. Off Beta, existing Sensed Workspaces stay in the Robot Configuration but are hidden from the Workspaces list and from the Workspace pickers, Add Workspace creates a Manual Workspace without asking, and the Workspace Calibration Node is not available.
Manual or Sensed
On the Beta update channel, Add Workspace asks which kind to create:
| Kind | How it is defined | Best for |
|---|---|---|
| Manual | Three taught Positions define a fixed location. Re-teach them to recalibrate. See Workspaces. | A single structure that stays put |
| Sensed | A sensing recipe with no fixed coordinates. | Many instances of the same structure: one definition calibrates every instance at runtime |
The Workspaces list shows the two kinds in separate groups, Manual and Sensed (Beta).
A new Sensed Workspace opens on its Overview. After that, it reopens where you left it: on the Overview or on the section you last had open.
Setting up a Sensed Workspace
Before you start, mount the Detection Sensor and add it as a Tool, as described under Detection Sensor.
The Overview
About Sensed Workspaces, at the top, opens this page. Below it are these cards:
- Identity: the Name of the Workspace and its UUID.
- The setup status. While sections are still to do, it reads, for example,
2 of 4 Sections Done · Next: Sensing Positions. Once every section is done, it reads Ready, with the time of the last calibration. After the Workspace Calibration Node has run, a second line names the last run and how many scans it used, for exampleLast Run 14:02:11 · 7 of 8 Scans, followed by the scans it missed. If the last run failed, the card reads Last Run Failed with the time and the reason until a run succeeds. Its button depends on the progress:- Start Setup, while no section is done, opens the first section.
- Continue Setup, while sections are still to do, opens the next one.
- Edit Setup, once every section is done or a calibration is saved, opens the section you last had open.
- How Sensed Calibration Works: an animation of the whole recipe.
- Overview: one row per section, with its status mark, a one-line summary, and Edit, which opens the setup at that section.
The setup sections
The setup shows one section at a time: Sensor, Anchor, Plane Normal, Sensing Positions, and Save. The header of the section holds:
- the back arrow, Back to Overview;
- the section's name. Click it to open a menu of all sections with their status marks, and select a section to open it;
- a line under the name that says what to do in this section.
Previous and Next at the bottom open the neighboring sections.
The section menu and the Overview use the same status marks:
| Mark | Meaning |
|---|---|
| Check | The section is done. |
| Dot | The section is still to do. |
| Lock | The section cannot be opened yet. Only Save locks, until every group has enough complete Sensing Positions. The menu says why under its name. |
| Minus | Plane Normal is switched off. The menu shows Off next to it instead of Optional. |
Every other section opens at any time. Previous and Next stop on Plane Normal even while it is off, because that is where you switch it on, but an off Plane Normal does not count toward the sections done.
A section is done when:
- Sensor: the Detection Sensor is verified and a Sensor Tool is selected.
- Anchor: the Anchor Pose is valid and set. A new Workspace has no anchor yet, so Anchor stays to do until you set the pose or link a pose Variable, or until a sweep or a saved calibration has used it.
- Plane Normal: it has at least three samples, and every sample has captured a result.
- Sensing Positions: every group has its minimum number of positions, and their fields are complete.
- Save: a calibration is saved.
You can open and edit every section before the sensor is verified, but sweeps and the other actions that need the sensor wait for a verified sensor. While such a button is disabled, its tooltip says why.
While the Robot moves for a sweep, a Robot is moving banner shows on every section and on the Overview. Use the STOP button to stop the motion. Back to Overview does not stop a running sweep.
While the Robot Configuration is read-only, for example when you are logged out or a Flow is running, you can still move between the Overview and the sections and read every value. The fields and actions are disabled.
Samples and positions. Plane Normal and Sensing Positions show their items as tiles, each with its status. Select a tile to open its editor in its place. The bar above the editor leads back to All Samples or All Positions, and its arrows open the previous or the next item. A group below its minimum shows one Needed tile per missing item; select it to add the item. Once the minimum is reached, Add adds another, up to 8.
Detection Sensor
The Detection Sensor is a laser sensor. RobCo provides it together with an Arduino Opta controller, the External Controller. The sensor is mounted at the end of the Robot, on the flange or on the Tool fitted there, and moves with it. It does not report a distance to RobFlow. Instead, it has a switching output, which switches when its beam moves onto or off a surface within its range, for example when a sweep carries the beam across an edge. The External Controller reads that output and reports where the Robot was at that moment.
How a sweep uses the sensor
When the Workspace Calibration Node runs, or when you click Sweep in the setup, RobFlow first selects the Sensor Tool and starts streaming the Robot's TCP pose to the External Controller. Then, for every sweep:
- The External Controller switches the sensor on, and RobFlow waits for the Sensor Stabilization Time. Sensor events during this time are ignored.
- The Robot moves through the sweep. When the sensor's output switches, the External Controller returns the TCP pose the Robot had at that moment, and whether the output switched on or off.
- The External Controller switches the sensor off.
Afterward, RobFlow stops streaming the pose and selects the previous Tool again.
Why the sensor is a Tool
The pose the External Controller returns is the Robot's TCP pose. The TCP of the Sensor Tool is what turns that pose into a measurement, so set it on the beam:
- Its origin lies on the beam, for example where the beam leaves the sensor.
- Its +Z axis points along the beam, away from the sensor.
This TCP is the transform from the flange to the beam, and every scan calculation uses it. A wrong TCP position shifts every detected point. An error in the beam direction displaces detected points more, the farther the surface is from the sensor. So add the sensor as a Tool in the Tools tab of the Robot Configuration before you set up a Sensed Workspace. See Tools and TCP.
RobFlow selects the Sensor Tool for every sweep, so its Mass and Center of Mass are what the Robot assumes it carries during the sweeps. Enter them for everything fitted at the flange, not for the sensor alone.
Set up the sensor
- Mount the sensor and connect the External Controller to the Robot's network, as RobCo supplies them.
- In the Tools tab of the Robot Configuration, click Add Tool. Name the Tool, for example
Laser Sensor, and enter its TCP, Mass and Center of Mass as described above. - Open the Sensor section of the Sensed Workspace.
- Enter the IP Address and Port of the External Controller. Unless RobCo set up your
controller differently, they are
192.168.1.50and555, the values the fields show as placeholders. - Enter
222as the Pose Feedback Port, the port on which the External Controller receives the Robot's pose. With any other port, including the28001the empty field shows, a warning says that scans will fail. - Keep the default Sensor Stabilization Time of 500 ms, or enter another value from 0 to 5000 ms.
- Select the Tool from step 2 as the Sensor Tool. Manage Tools opens the Tools section.
- Click Verify, and run the sensor check as described below.
| Field | What it is for |
|---|---|
| IP Address and Port | The address of the External Controller. The IP Address is an IPv4 address. |
| Pose Feedback Port | The UDP port the External Controller receives the Robot's pose on. The RobCo controller listens on 222. |
| Sensor Stabilization Time | How long to wait after the sensor is switched on before the scan motion begins. Sensor events during this time are ignored. Default: 500 ms; allowed: 0 to 5000 ms. |
| Sensor Tool | The Tool that describes the sensor; see Why the sensor is a Tool. Its TCP is the sensor frame used by every scan and by the sensor-pose buttons of the setup. |
Verify checks the whole chain, in two steps, without moving the Robot:
- It checks that the External Controller answers on its IP Address and Port. If it does not, the button shows Failed with the reason.
- If it answers, the Check the Sensor dialog opens. Hold a stick in the sensor's beam, within 130 mm of the sensor, and click Start Check. Within 10 seconds, the sensor has to switch and the External Controller has to hold a current pose of the Robot. The check needs control of the Robot; without it, the dialog offers Take Control.
If the check passes, the dialog reads Everything works. You can continue. and says whether the pose the External Controller received matches the Robot's own pose. Click Done. The button then reads Verified, with the time of the last check next to it. If the sensor does not switch within 10 seconds, check its power, wiring and range. If it switches but no Robot pose reaches the External Controller, check the Pose Feedback Port. The button then reads Check Failed; click it to try again.
Changing the IP Address or Port clears the result. Opening the Sensor section checks again that the External Controller answers.
Surfaces and angles
Whether the sensor switches depends on the surface and on the angle at which the beam meets it:
- Edge and Plane Normal scans point the beam at the Workspace plane, at about 90° to it.
- Height Surface scans point the beam at a side face. On a shiny side face, the sensor only switches when the beam meets the face head-on, at 90° to it; at 45°, it does not switch. Turn the sensor so that the beam points straight at the face before you apply its pose.
If a sweep crosses the feature but the sensor never switches, check the angle between the beam and the surface first. Then check that the surface lies within the sensor's range along the whole sweep.
Anchor Pose
The Anchor Pose is the reference frame everything is measured from, in the Robot base frame. Every Scan Start and Scan End is a pose relative to the Anchor Pose, so the whole recipe moves with it.
A new Workspace has no anchor yet. To set it:
- Move the Sensor Tool TCP to the anchor and click Apply Sensor Pose.
- Click Enter Manually and type the pose.
- Select a Cartesian Pose Variable. The anchor takes the Variable's value while you set up; the Variable does not move the Robot at runtime. To teach a fixed pose again, clear the Variable.
The numbers under the fields show how far the sensor is from each value right now. Move Sensor to Target moves the Sensor Tool TCP to the Anchor Pose.
Once set, the Anchor Pose is locked against accidental changes. Click Unlock to change it; it locks again when you leave the section. If the Workspace already has samples or Sensing Positions, choose what they do when the anchor changes:
- Follow Anchor: they keep their place relative to the anchor. Use this when the platform moved and you teach the anchor again to follow it.
- Stay in Place: they keep their place in the Robot base frame. Use this to redefine the anchor, for example with a new pointer Tool, when the platform has not moved.
With a linked Variable, the samples and positions always follow the anchor.
At run time, the Workspace Calibration Node starts the scans from wherever the Sensor Tool TCP is when the Node starts. The saved Anchor Pose only defines where the scans sit relative to the anchor.
Plane Normal (optional)
Plane Normal detection measures the tilt of the plate before the Edge and Height scans. The Detect Plate Tilt switch in the section header turns it on. While it is off, the Workspace plane normal is the base frame's +Z.
With Plane Normal detection on, the section shows two cards:
- Samples: one tile per sample, with the count and the minimum, for example
2 · Min 3. Sample 1 is marked Sets the orientation. - Shared by All Samples: what every sample uses.
- Orientation: the sensor orientation every sample sweeps with. Applying Sample 1's pose sets it, so it reads From Sample 1; you cannot type it.
- Travel Distance: how far each sample moves from its Scan Start along the sensor beam, looking for the plate. All samples share one distance. It is 200 mm by default and must be above 0 mm.
A sample has only a Scan Start, a position relative to the Anchor Pose. There is no Scan End: the sweep runs from the Scan Start along the beam, up to the Travel Distance, until the sensor finds the plate. To teach a sample:
- Add a sample. It starts at the sensor's live position; without a connection to the Robot, its Scan Start stays empty.
- Move the sensor above the plate, pointing straight down at its surface, and click Apply Sensor Pose. On Sample 1, this also sets the orientation every sample uses. Later samples keep that orientation; if you turned the sensor away from it, the editor says by how many degrees.
- Place the Scan Start more than 130 mm from the surface: the sensor switches within 130 mm. The editor says so until a sample has found the surface.
- Click Sweep, in the editor's header. The result shows at the top of the editor: Surface Found, with the detected pose, or No Surface Found. If the sweep found nothing, start lower or increase the Travel Distance.
Move to Start moves the sensor to the sample's Scan Start. A sample can also have a Transfer to Scan Start and an Approach Trajectory, as a Sensing Position does. At the bottom of the editor, Next: Sample 2 (for example) opens the next sample that is still to do, and Capture Next Sample adds one while samples are missing.
Collect at least three well-spread samples; four to eight distributed samples are recommended. With exactly three there is no redundancy left to check the fit against. Spread the samples toward the plate's corners, and keep each sample at least 40 mm from the edges: once an edge is tested, the editor warns about a sample closer than that. When the samples are bunched, the Samples card says so with their sensitivity, which says how much measuring noise tilts the plane; 1 is ideal, and above 3 the samples are bunched.
Plane Normal scans determine the orientation only; the Height Surface scans determine the final position. The sign of the detected normal prefers positive Z, then X, then Y.
Changing the Plane Normal configuration invalidates the calibration. Plane Normal and Test results you already captured are kept, but every affected scan has to be reviewed and tested again before you calculate.
Sensing Positions
A Sensing Position tells the Robot where to sense one feature of the structure.
The section shows the Sensing Positions in three groups, by the role they play in the solve. Each
group shows a picture of its scan, how many positions it has, its minimum and its maximum of 8, for
example 2 · Min 2 · Max 8, and its tiles: P1, P2, … for Primary Edge, S1 for Secondary Edge,
H1 for Height Surface. How to Collect Sensing Positions, above the groups, opens this section.
| Group | Needs | What it fixes |
|---|---|---|
| Primary Edge | at least 2 Sensing Positions | The Workspace orientation and one in-plane axis. The order of the group sets Workspace +Y: it points from the first Primary Edge position to the last, as the group's caption First → Last Sets +Y says. To flip it, drag the tiles into the other order. |
| Secondary Edge | at least 1 Sensing Position | The second in-plane axis |
| Height Surface | at least 1 Sensing Position | The Workspace height |
Primary Edge. Two sweeps from outside the long edge onto it fix the edge, and their order sets +Y.
Secondary Edge. One sweep onto the short edge fixes the second in-plane axis, and with it the origin.
Height Surface. A level beam just outside the edge moves down until it lands on the side face. A sweep that ends exactly at the top edge never lands.
The solver combines all of them into the Workspace frame. Each tile shows what the position's last sweep found, such as Edge Found, Surface Found, No Edge, or Not Tested, or Invalid while a field needs fixing.
The editor of a Sensing Position starts with the animation of its group. Its header holds the position's status, a delete button and Sweep. Below them are these parts:
| Part | Meaning |
|---|---|
| Detection | Secondary Edge only: Edge or Hole Center. See below. |
| Scan Start | A pose relative to the Anchor Pose, where the sweep begins. Apply Sensor Pose takes the live Sensor Tool TCP pose: its position, and the scan orientation read from how the sensor is turned. Move to Start moves the sensor there. |
| Configured Scan End | A position relative to the Anchor Pose. The Robot sweeps from the start to the end, with the Scan Start orientation, and the sensor finds the edge in between. Apply Sensor Position takes the live sensor position; Move to End moves the sensor there. Under it, the editor shows the end the sweep runs to: projected from the configured motion, or, with Plane Normal detection on, generated for the detected plane. |
| Transfer to Scan Start | Speed and acceleration of the move to the Scan Start only. The speed of the sweep itself is fixed by the calibration. With an Approach Trajectory, this is Transfer to Approach Start. |
| Approach Trajectory | Optional relative movements, executed in order before the sensor is armed. The last one lands exactly at the Scan Start. No automatic retract is run afterward. |
Put the Scan Start and the Scan End on opposite sides of the edge, so the sweep crosses it.
Edge or Hole Center. A Sensing Position normally finds one edge. A Secondary Edge position can use Hole Center instead: one continuous sweep captures two sensor transitions and uses their midpoint as the hole-center pose. It needs at least two distinct Primary Edge captures first, because its scan direction is estimated from them.
Scan orientation. Every Sensing Position needs a scan orientation before it can sweep. You do not
type it: Apply Sensor Pose on the Scan Start reads it from how the sensor is turned, and the
editor shows it, for example Beam down, sensor above · twist 0°. Turn the sensor as the scan
needs it, then apply the pose:
- Edge scans: point the beam straight down at the plate, or straight up from below. Every edge is scanned from the same side; the first taught edge sets it, and an edge taught from the other side is refused.
- Height Surface scans: point the beam level, head-on at the side face. The beam heading reads 0° along base +X and 90° along base +Y; once the edges are tested, the editor names the face it hits.
A beam more than 10° off the direction the scan needs is refused, and the editor says by how many degrees it is off. The twist of the sensor about its beam is free, so you can turn the sensor for obstacle clearance. The orientation follows the plate at run time. To change it, turn the sensor and apply its pose again.
Testing a Sensing Position
Sweep, in the editor's header, moves the Robot through this one sweep and confirms that the sensor finds an edge. It needs Teach mode with no Flow running or paused, released brakes, a verified Detection Sensor, a Sensor Tool, the Anchor Pose and an applied Scan Start. With Plane Normal detection on, every sample has to be swept first. While Sweep is disabled, its tooltip says why. The result shows at the top of the editor, and the captured pose is what Calculate and Save Calibration later uses.
- If the sweep completes but the sensor never triggers, move the Scan Start and Scan End so the sweep crosses the edge, and check the beam angle; see Surfaces and angles.
- For a Height Surface position, the Scan Start must be above the plate top and the Scan End below it; once a Plane Normal sample is captured, the editor warns when either is not.
- If the Robot faults during a sweep or a move (a joint limit or singularity, for example), the setup shows the Robot's own message next to the scan or at the top of the section. A sweep that faulted waits until you press STOP.
- If two runs of an unchanged Sensing Position land more than 1 mm apart, check the sensor mounting, the External Controller and the approach speed for repeatability.
- The Global Speed scales the test motion. Test at the same Global Speed the calibration will run at, because a different factor can shift the detected edge.
Calculate and Save
This section is Save in the section menu. It opens once every group has enough complete Sensing Positions. Its top row sums up the setup: Sensor, Anchor (Taught Pose or From Variable), Positions, and Scanned. Once the frame is solved, it adds the Preview Origin in Base or Saved Origin in Base and the Last Calibrated time.
Calculate and Save Calibration solves the Workspace frame from the poses the sweeps captured, and saves it. It needs every Sensing Position swept, and with Plane Normal detection on, every sample too. While the button is disabled, the line under it says what is missing. It does not move the Robot. Until you save, the solved frame is only a preview in the 3D view; saving is what makes the Workspace ready for the Workspace Calibration Node. The result shows next to the button as Calibration Saved or Calibration Failed.
If the solved result exceeds the review threshold for sensitivity, a review appears under the button. Save Anyway saves this exact result; Cancel Without Saving keeps the previous calibration, so you can sweep the captured positions again. While the review waits, the Overview and the other sections show a notice with Go to Save, and sweeps and edits wait until you save or cancel.
The diagnostics of the last calculation are folded into the Diagnostics panel at the bottom of the section. A pending review opens the panel, because the review refers to its values. How to read these diagnostics, on the panel's title row, opens the section below.
Reading the Diagnostics
The diagnostics describe how consistent the captured scan poses are with each other. Computing them does not move the Robot.
| Value | Meaning |
|---|---|
| Sensitivity (primary direction, Plane Normal) | Unitless: 1 is ideal and larger values are worse. It describes the stability of the geometry only, not physical accuracy. |
| Signed residual | The signed distance from this observation to the fitted feature. A value noticeably different from its peers suggests repeating or checking that Sensing Position. |
| Leave-one-out translation, rotation and normal shift | How much the solved frame changes when this observation is removed. Comparatively large values mean the solution depends heavily on it; repeat the observation or strengthen the geometry with well-spaced observations. |
| Unavailable | The value could not be calculated. A residual needs enough observations in its group; a leave-one-out result also needs the remaining observations to form a solvable, non-degenerate frame. It does not mean the scan failed. |
For the Primary Edge group, a leave-one-out rotation of 180° means the first-to-last direction without that observation points the other way than in the full solve. That is not automatically an error; check that the full Workspace orientation is the one you intended.
Small values mean the captured scan positions agree with each other. They do not prove that the Robot reaches the calculated physical position accurately. If an independent measurement still shows an error, check the Robot and TCP calibration, the fixture or rack, and the measurement method.
At Runtime: the Workspace Calibration Node
The Workspace Calibration Node runs the recipe: it moves to every Sensing Position, senses the features and solves the transform, and Reference Groups that use this Workspace follow the result. It is available on the Beta update channel, in Flows only, and cannot be placed inside a Reference Group.
In the Node, select the Workspace under Sensed Workspace. The list offers the Sensed Workspaces that have a saved calibration. The pencil next to it opens the Workspace in the Robot Configuration. The Node is valid once a Workspace is selected. If the selected Workspace is deleted, the field shows Workspace does not exist.
- The scans start from wherever the Sensor Tool TCP is when the Node starts, with the Sensor Tool active. Position it so the scans land on the platform.
- The Robot moves during the Node. Keep the Workspace area clear and start from a configuration with generous clearance from all joint limits.
- Run it at the same Global Speed factor that the Sensing Positions were tested at.
- Preparation branches: the outputs Before Primary Scans, Before Secondary Scans and Before Height Scans each run their connected branch once before the first scan of that phase. The branch returns when its last Node has no outgoing edge. Do not connect an edge back to the Node. A branch must restore the Sensor Tool it found. Output continues the Flow once the calibration is done.
- If a calibration fails, the Robot pauses. Resume retries the whole calibration, including the preparation branches; Stop aborts it.
- If the Workspace was deleted, or has no saved calibration when the Node runs, the Node posts the message Invalid Workspace ID and the Flow stops, as a Reference Group with a deleted Workspace does. It does not pause.
- A failed or paused run shows on the Workspace's Overview with its reason until the next run succeeds.
Each Node has its own run checks, below the Workspace. A Node that has never changed them uses the Workspace's own, and both are on by default. While the Flow runs, the Node shows its run instead.
Tolerate Missed Scans
With Tolerate Missed Scans on, a sweep that finds no edge does not fail the calibration: the Node leaves that Sensing Position out and solves from the others, as long as every group keeps its minimum: 2 Primary Edge, 1 Secondary Edge and 1 Height Surface position, and with Plane Normal detection on, 3 samples. The result must still stay within Max Plane-Normal Sensitivity (default 3) and, in every group with more than its minimum, within Max Residual (default 0.5 mm). Otherwise the calibration fails and names the missed scans.
Frame Jump Check
With Frame Jump Check on, the Node compares the solved Workspace frame with the stored one. If it moved more than Max Translation (default 20 mm) or turned more than Max Rotation (default 5°), the Robot pauses so you can check the structure. Resume stores the new frame without scanning again; Stop stores nothing.
Using a Sensed Workspace in a Reference Group
Select the Sensed Workspace in the Workspace picker of a Reference Group, as you would a Manual one. The picker lists every Workspace, with Sensed or Manual under its name. The group moves the Cartesian Poses inside it by how far the Workspace frame stored by the last Workspace Calibration Node run lies from the frame you saved in the setup.
If the Workspace was deleted, or has no saved calibration when the group runs, the group posts the message Invalid Workspace ID and the Flow stops. So run a Workspace Calibration Node, or save a calibration in the setup, before the Flow reaches the group.