Sessions(会话)

Zivid Studio 会话是手眼标定、Warmup 和现场标定工具共享的磁盘工作区,会话管理器负责创建和打开这些会话。

每个工具都会读写当前会话,因此同一相机和机器人配置下的捕获、标定结果和验证数据会保持在一起。Studio 会自动保存会话,因此没有 Save 或 Save As 操作。

前提条件

会话包含的内容

A session is a folder on disk, not a single file. Studio creates each session in the session root folder and names it with a timestamp, for example 20261110_143005. By default, the root folder is %LOCALAPPDATA%\Zivid\CalibrationSessions on Windows and ~/.local/share/Zivid/CalibrationSessions on Linux. To use another folder, click Browse... next to Root folder in the session manager. Studio remembers the root folder you last used. A session.yml file inside the folder marks it as a session and holds its settings: the mounting (eye-in-hand or eye-to-hand), whether low-DOF is used, the calibration object, the marker configuration, and the default robot-pose rotation format. Studio can also open a session saved by the Hand-Eye GUI with RoboDK, which has a session_info.json file instead, and takes the mounting, the calibration object, and the markers from it.

捕获的数据存储在会话的子文件夹中:

  • Warmup:预热捕获数据。

  • Infield:现场标定数据。

  • Calibration:手眼位姿对及由此得到的变换。

  • Calibration/Verification-Projection、Calibration/Verification-Stitching 和 Calibration/Verification-Touch:验证数据集。

磁盘占用

会话会占用磁盘空间,因为 Studio 会在其中保存捕获的点云,且不会事先询问。启用实验性功能后,Studio 会为每个手眼位姿对、每次现场标定捕获以及每次拼接验证捕获保存一个完整点云(ZDF 文件)。Warmup 仅保存一个包含温度和正确度读数的小型 CSV 文件。

Studio 不会删除包含数据的会话(启动时只会移除空会话)。要释放磁盘空间,请从会话管理器显示的根文件夹中删除不再需要的会话文件夹。

打开会话管理器

Go to Tools → Session → Sessions…, or click Sessions… in the Configuration panel of the Hand-Eye Calibration window. The Session submenu also shows the current session name, or No session open.

../../../../../_images/zivid-studio-sessions-dialog.png

该对话框会列出根文件夹中找到的会话,按最新顺序排列。每一行会显示会话名称、其中已有数据的工具,以及最后修改时间。

创建和打开会话

  • 单击 New Session 可在当前根文件夹中启动一个空会话。

  • 选择一个会话并单击 Open,或双击该会话,即可切换到该会话。

  • 单击 Root folder 旁边的 Browse...,可选择 Studio 扫描会话的文件夹。

Studio 启动时会重新打开上次使用的会话。如果该会话为空,Studio 会改为启动一个新会话。

查看已保存的会话

打开一个已包含手眼位姿对的会话时,会加载这些数据以供查看:此时无法捕获新的位姿对,也无法删除已有的位姿对。您仍然可以更改配置、重新标定并运行验证捕获。Studio 会将这些更改保存在会话中,并在您首次进行任何更改时备份原始文件。要恢复到采集时的会话状态,请在 Configuration 面板中单击 Restore original (as collected)。要捕获新的位姿对,请单击 Start new session。

Using several tools in one session

Hand-Eye Calibration cannot be open at the same time as Infield Correction or Warmup, because they use the same camera and robot. If you open one while the other is open, Studio asks you to close the other first.

Infield Correction changes the camera's correction, so a hand-eye calibration made before it no longer matches the camera. If the session already holds hand-eye pose pairs, opening Infield Correction offers to start a new session, so each hand-eye calibration stays with the correction it was made with. To use one session for all three tools, run Warmup and Infield Correction before you capture hand-eye pose pairs.

后续步骤

Continue reading about Zivid Studio in Depth Profile.