Skip to main content
Version: v9

Camera calibration

The scanner sees parts in its own coordinate system. To send the Robot to them, Bin Picking Studio needs to know exactly where the scanner sits relative to the Robot. That relationship is the camera calibration.

To find it, the Robot shows a calibration object to the scanner from many different Poses. At each Pose, Bin Picking Studio scans the object and records where the Robot was: a calibration point. From enough points it computes the calibration.

In RobFlow, a calibration Flow drives the Robot through those Poses and adds a calibration point at each one. The whole run starts and ends in Robot Configuration, on the Photoneo device's page.

Before you start​

In Bin Picking Studio:

  • The vision system is set up in the solution: the scanner is selected, and the calibration space and sensor position say whether the scanner is fixed in the cell or mounted on the Robot.
  • The calibration object is in place and cannot move during the run:
    • Scanner fixed in the cell: the calibration ball is mounted on the flange or the gripper.
    • Scanner mounted on the Robot: the marker pattern lies flat in the cell, within the Robot's reach and the scanner's view.

In RobFlow:

note

You don't need to change the active Tool for the calibration. RobFlow always reports the flange position to Bin Picking Studio, which is what it calibrates against.

Create the calibration Flow​

The Camera Calibration section is at the bottom of the device's page.

  1. Open the list under Calibration Flow and choose New Camera Calibration Flow, or use Import Flow to load an exported one. Calibration Flows are kept apart from your regular Flows and only appear here. Each Flow in the list can be renamed, duplicated, exported or deleted.
  2. Choose Open Editor. The Camera Calibration Editor opens on top of Robot Configuration.
  3. Build a tour of the Poses: a movement Node to each Pose, followed by an Add Calibration Point Node.

A calibration Flow: a Joint Movement to each Pose, each followed by an Add Calibration Point Node

The editor only offers the Nodes a calibration needs: the movement Nodes, Tool, Delay, Loop, Message Log, Comment and Add Calibration Point.

Choosing good Poses​

The calibration is only as good as the points it is computed from:

  • Use at least 9 Poses. Bin Picking Studio needs 9 points before it computes a result, and a few more make it more robust against a rejected point.
  • Vary the joints as much as you can. Rotate the wrist and tilt the flange between Poses rather than only shifting position. Points from Poses that are too similar are rejected.
  • Cover the working volume. For a fixed scanner, bring the ball to the corners and the center of the bin, at different heights. For a scanner on the Robot, look at the pattern from different angles and distances.
  • Keep the object fully in view at every Pose.
  • Let the Robot settle. If the Robot still vibrates when the point is captured, add a short Delay before the Add Calibration Point Node.

Run the calibration​

A calibration runs in one of two ways: from the editor, or automatically from Robot Configuration. A new cell only needs the first. Running the automatic one once afterward is still a good way to check that it works.

The first calibration​

Run the very first calibration from inside the Camera Calibration Editor. Bin Picking Studio stores the Poses of this run and compares every later automatic calibration against them, so do the same again whenever you change a Pose in the calibration Flow.

  1. In Bin Picking Studio, open the solution's Calibration page and choose Start calibration for the vision system.

    The Calibration page of a solution in Bin Picking Studio, with the Start calibration button

  2. In RobFlow, open the calibration Flow with Open Editor and run it with the editor's Run button. At each Add Calibration Point Node, Bin Picking Studio scans the object and adds a point at the Robot's current Pose.

    The Camera Calibration Editor with a calibration Flow and its Run button

  3. When the Flow has ended, check the points and the accuracy on Bin Picking Studio's Calibration page, and save the result there.

  4. To calibrate automatically later, enable automatic calibration in Bin Picking Studio: open the solution's Vision system page, edit the vision system and switch to its Calibration tab. It only becomes available after a calibration like this one, with at least 9 points. The Calibration chapter of Photoneo's documentation lists the requirements.

    The Calibration tab of a vision system in Bin Picking Studio, with the Automatic calibration switch

Automatic calibration​

With automatic calibration enabled, RobFlow runs the whole calibration. On the device's page, select the Flow under Calibration Flow and choose Start Calibration Flow.

Camera Calibration while the calibration Flow is running

RobFlow then:

  1. Stops the solution running in Bin Picking Studio and opens a calibration for the configured vision system.
  2. Runs the Flow. At each Add Calibration Point Node, Bin Picking Studio scans the object and adds a point at the Robot's current Pose.
  3. Leaves the calibration open when the Flow ends, whether it ran to the end or you stopped it.

While the Flow runs, you can Pause or Stop Flow from the same section, and Open Editor shows the running Flow. The device's address fields are locked until the Flow ends.

A point that Bin Picking Studio rejects does not stop the Flow. RobFlow logs it, shows it in the section and carries on with the next Pose. Bin Picking Studio's own Calibration page shows each point that was added, with its accuracy.

Apply the calibration​

When the Flow has ended, check the result on Bin Picking Studio's Calibration page, then choose Apply calibration. This closes the calibration and saves the result into the vision system in Bin Picking Studio.

Camera Calibration after the calibration was applied

The chip under the buttons shows where the calibration stands:

StatusMeaning
Running / PausedThe calibration Flow is running or paused.
ReadyThe Flow has ended. Apply the calibration, or start the Flow again.
SavedThe calibration was applied. The message below says when.
FailedThe last request to Bin Picking Studio failed. The message below says why.
warning

Bin Picking Studio does not save a result whose accuracy is worse than the minimal allowed accuracy set for automatic calibration. Check the accuracy on its Calibration page before you apply, and run the calibration again with better Poses if needed.

Things to know​

  • One device at a time. Only one Photoneo device can be calibrated at once. If another device is being calibrated, the section says so, and starting a Flow here moves the calibration to this device.
  • Re-calibrate whenever the scanner or the Robot moves, for example after the scanner mount was touched or the Robot was moved on its base.
  • Calibration Flows are shared between the devices. Export a Flow to copy it to another Robot.