运行时配置

The planner will create the runtime configuration file ~/.config/Zivid/Motion/RuntimeConfiguration.yml the first time it is started. This file can be modified to change certain runtime behaviors of the planner. If the planner is not behaving as expected after a configuration change, see Troubleshooting.

Fields

ApiLog

  • 可以将 ContinuouslySaveSetObstaclesDetails 设置为 yes 以便单独保存每次 SetObstacles 调用的详细信息。但这会占用更多内存,并且磁盘上 API 日志文件的累计大小可能会很大。此功能通常仅应用于调试目的。

  • Folder 用于覆盖规划器导出 API 日志文件时存储的位置。如果未指定,API 日志文件将保存在默认文件夹中,即 <USER_HOME>/.cache/Zivid/Motion/State 。

Performance

  • FreeCpuThreads 用于覆盖规划器调整其线程池大小时为您保留的空闲 CPU 线程数。在 8 线程的 CPU 上,将此值设置为 2 会使规划器获得 6 个线程。规划器始终至少获得一个线程。如果未指定,则默认保留两个空闲线程。

示例文件

以下是 RuntimeConfiguration.yml 文件的一个示例。

__version__: 1
RuntimeConfiguration:
  ApiLog:
    ContinuouslySaveSetObstaclesDetails: no
    Folder: __not_set__
  Performance:
    FreeCpuThreads: __not_set__