招聘参考
本文档列出了端点所使用的所有设置 /settings/ 将被退回,连同其 Schlüssel, 她的 Typ (摘自 type_hint) 以及她们的 限制 (摘自 metadata.constraint.range + locked(如适用)。
Eine locked-设置是 运行时只读. 可以通过配置文件或设置页面进行设置 Haply Hub 可以进行修改,但是 必须完全重启该服务,以便更改生效。这些更改在以下表格中以 启动 标记为。
配置
用于在服务启动时覆盖设置的配置文件位于此处:
| 平台 | 存储位置 |
|---|---|
| Windows | C:\ProgramData\Haply\Inverse\haply-inverse-service-config.json |
| macOS | /Library/Application Support/Haply/Inverse/haply-inverse-service-config.json |
| Linux | /etc/haply-inverse-service/haply-inverse-service-config.json |
该配置文件是一个 扁平化的 JSON 对象,该映射将配置键映射到覆盖值。这些键必须是有效的配置键,且由 HTTP 路由 /settings/ 将被退回(参见 API 参考). 对于未指定的每个键,将使用该服务的默认值。
网络配置覆盖的一个示例:
{
"communication/http/port": 8400,
"communication/websocket/port": 8500,
"communication/events/port": 9000,
"communication/bind_all_interfaces": true
}
可见性与筛选
"(《世界人权宣言》) /settings 列出端点(GET /settings, GET /settings/) 仅返回 基础 默认设置。通过 ?advanced=true 包括标记为“高级”的设置, ?deprecated=true 包括已弃用的别名。隐藏设置仅供内部使用;它们仅在 misc/hidden_settings 通过 POST /settings/misc/hidden_settings (无查询参数对应项)。将过滤标志进行“AND”运算——即同时标记这两个标志的键 advanced 和 hidden 需要两个门都打开。针对已知密钥的 POST 和 DELETE 操作无需门控。
单键读取 (GET /settings/<key>) 当使用确切的标准密钥时,可绕过高级/弃用密钥的访问限制——这对已知密钥的客户端非常有用。隐藏密钥仍受访问限制。
三个运行时开关用于初始化这些门;其值将在服务生命周期剩余时间内保持不变:
| 关键 | 类型 | 制约因素 | 说明 |
|---|---|---|---|
misc/advanced_settings | bool | — | 包含 advanced-标记的设置在 GET /settings 列表(默认) false). 相当于通过 ?advanced=true 在每次请求中。 |
misc/deprecated_settings | bool | — | 包含 deprecated-标记的设置在 GET /settings 列表(默认) false). 相当于通过 ?deprecated=true 在每次请求中。 |
类型映射
API 返回的类型提示与以下 JSON 结构相对应:
STRING→stringBOOL→boolINT→intFLOAT→floatARR_STRING→string[]VEC3→vec3(带有{x, y, z})GENERIC→json(任意结构化值)
communication/…
HTTP、WebSocket 和事件流服务器的网络端口及绑定地址。大多数条目仅在系统启动时生效。
| 关键 | 类型 | 制约因素 | 说明 |
|---|---|---|---|
communication/serial/enabled | bool | — | 启用或禁用串行设备通信。 |
communication/bind_address | string | 启动 | HTTP 和 WebSocket 服务器所绑定的 IP 地址。 |
communication/bind_all_interfaces | bool | 启动 | 将服务器绑定到 0.0.0.0 而不是 localhost。 |
communication/http/port | int | 启动 | HTTP REST API 端口(默认 10000). |
communication/websocket/port | int | 启动 | Main v3.1 WebSocket 端口(默认 10001). |
communication/websocket/legacy_port | int | 启动 | Legacy v3.0 WebSocket 端口(默认 10000). |
communication/events/port | int | 启动 | 事件流 WebSocket 端口(默认 10020). |
devices/…
devices/detection/…
串口扫描策略。所有条目均为高级设置。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
devices/detection/scan_period_ms | int | 范围 100–10000;启动时 | 串行端口扫描间隔(毫秒)。 |
devices/detection/handshake_timeout_s | int | 第1–15区 | 每个端口的握手超时时间(秒)。 |
devices/detection/max_retries | int | 范围 1–10 | 每个端口允许的最大握手重试次数。 |
devices/detection/failure_log_delay_s | int | 范围 1–60 | 在再次记录识别错误之前所需的延迟时间(s)。 |
devices/detection/block_looping_ports | bool | — | 当检测到循环端口时,阻止设备就绪。 |
devices/detection/excluded_ports | json | — | 在检测过程中被跳过的串行连接端口的路径。 |
devices/detection/additional_ports | string[] | — | 始终会被扫描的串行端口附加路径。 |
devices/detection/allowed_vendor_id_filter | string[] | — | 在端口枚举中允许使用的 USB 供应商 ID。 |
devices/detection/port_name_substring_filter | string[] | — | 用于进行比对的、针对特定平台的端口名称子字符串。 |
devices/detection/wireless_verse_grip_description_filter | string[] | — | 用于识别无线VerseGrip的端口描述子字符串。 |
devices/detection/inverse3x_description_filter | string[] | — | 用于识别 Inverse3x 的端口描述子字符串。 |
devices/detection/extra_ports (过时) | string[] | — | 相反 devices/detection/additional_ports 使用。读写操作将透明地转发至规范键。 |
devices/*inverse/…
适用于Inverse3 系列所有设备的全局默认值。会话级别的覆盖设置具有优先级。
在 3.5.0 版本中,Glob 的说明如下: devices/inverse*/…; 领先的 * 现在面临 inverse. 包含旧字面值的配置文件无法在 3.5.1 版本中链接——请更新。除此之外,键本身保持不变。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
devices/*inverse/filters/force_scale/gain | float | 范围 0.0–2.0 | 适用于所有设备的全局功率输出乘数。 |
devices/*inverse/filters/force_gate/gain | float | 范围 0.0–1.0 | 为新会话增强Kraft-Gate的标准功能。 |
devices/*inverse/control_timeout_ms | int | 范围 50–10000 | 在解除设备控制锁定之前的时间超时(毫秒)。 |
devices/*inverse/query_orientation_on_idle | bool | — | 当设备处于空闲状态时,从固件中查询设备姿态。 |
devices/*inverse/body_orientation_poll_interval_ms | int | 范围 0–5000 | 在会话处于活动状态期间,身体姿态实时读取操作之间的间隔(毫秒);默认值为 50(即最小值), 0 已禁用。仅限固件 7.9 及以上版本。 |
devices/*inverse/safeties/expose_in_snapshot | bool | — | 设备特定的安全标志在 GET /devices/{id}-包含快照。 |
devices/presets
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
devices/presets | json | — | 按设备类型划分的标准设备配置预设(安装转换、基础设置等,用于 inverse_arm_front_*, inverse_led_front_*, minverse_*, verse_grip_default, wireless_verse_grip_default, custom_verse_grip_default). |
devices/wireless_verse_grip/…
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
devices/wireless_verse_grip/battery/low_threshold | int | — | 电池电量百分比,低于该值时将触发低电量警告。 |
devices/wireless_verse_grip/battery/critical_threshold | int | — | 电池电量百分比,当电量低于该值时,系统将触发电量临界警报。 |
devices/wireless_verse_grip/battery/reset_margin | int | — | 在电池警告被重置之前,需达到的滞后量。 |
devices/wireless_verse_grip/filters/orientation_filter | json | 启动 | 适用于无线VerseGrip定位的1欧元滤波器配置。 |
features/…
features/calibration/…
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/calibration/hall_threshold | int | 范围 1–32 | 霍尔传感器电平,达到该电平时,在校准过程中该插针即被视为已插入。 |
features/grip_hook/…
自动抓取钩行为——在保持抓取状态时锁定光标。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/grip_hook/enabled | bool | — | 当手柄保持竖直时,自动激活握钩锁定功能。 |
features/grip_hook/use_hall | bool | — | 使用霍尔传感器阈值代替方向信息来识别手柄。 |
features/grip_hook/hall | int | 范围 1–32 | 霍尔传感器阈值,该阈值会触发手柄锁定。 |
features/grip_hook/hold_duration | int | 范围 10–1000 | 锁定状态在触发后保持的时间(毫秒)。 |
features/navigation/bubble/…
气泡导航模块的默认值——在首次激活时 bubble-将行为传递给会话。各个字段的运行时含义请参见页面 导航模块.
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/navigation/bubble/center | vec3 | — | 膀胱中心的标准位置。 |
features/navigation/bubble/center_enabled | bool | — | 已配置 center 在首次启用气泡行为时应用。 |
features/navigation/bubble/rotation_enabled | bool | — | 将工作空间旋转应用于导航方向。 |
features/navigation/bubble/scale_enabled | bool | — | 将工作空间缩放应用于导航速度。 |
features/navigation/bubble/center_drift_speed | float | ≥ 0 | 中心模式下的漂移速度(m/s) auto_follow. |
features/navigation/bubble/max_velocity | float | — | 该限速区域内的最高行驶速度(米/秒)。 |
features/navigation/bubble/velocity_zone_width | float | — | 气泡表面外侧速度区的宽度(米)。 |
features/navigation/bubble/reset_velocity_on_entry | bool | — | 当光标进入气泡时,将速度重置为零。 |
features/navigation/bubble/spring_inner | float | — | 气泡中心的费德尔系数(N/m)。 |
features/navigation/bubble/spring_surface | float | — | 气泡表面的费德尔系数(N/m)。 |
features/navigation/bubble/spring_outer | float | — | 外边界处的费德尔系数(N/m)。 |
features/navigation/bubble/damping_inner | float | — | 气泡中心的阻尼系数(Ns/m)。 |
features/navigation/bubble/damping_surface | float | — | 气泡表面的阻尼系数(Ns/m)。 |
features/navigation/bubble/damping_outer | float | — | 外边界处的阻尼系数(Ns/m)。 |
features/navigation/bubble/wall_stiffness | float | — | 外边界处硬壁的刚度(N/m)。 |
features/navigation/bubble/bump_width | float | — | 膀胱表面触觉凸起的宽度(米)。 |
features/navigation/bubble/bump_stiffness | float | — | 气泡表面触觉凸起的刚度(N/m)。 |
features/navigation/bubble/stop_at_collision | bool | — | 在碰撞激活时,防止气泡的中心沿碰撞方向漂移。 |
features/navigation/bubble/collision_threshold | float | > 0 | 从该值(N)开始,系统将检测到碰撞。 |
features/navigation/bubble/collision_inflate_scale | float | ≥ 1 | 乘数用于 velocity_zone_width,该方法在发生主动碰撞时会被调用。 |
features/navigation/bubble/collision_exit_ratio | float | 区间 (0,1] | 滞后比——当满足以下条件时退出碰撞 |ext_force| unter collision_threshold × this fällt。 1.0 禁用迟滞。 |
features/navigation/bubble/avatar_boundary_enabled | bool | — | 化身在已配置 SDF 模型中的世界坐标位置 avatar_boundary begrenzen。 |
features/safe_trajectory/…
末端执行器运动的速度限制器。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/safe_trajectory/enabled | bool | — | 启用限速功能,以确保行驶轨迹安全。 |
features/safe_trajectory/max_vel | float | 范围 0.01–2.0 | 末端执行器的最大允许速度(m/s)。 |
features/screensaver/…
当没有会话控制时,在Inverse3 设备上播放的空闲动画。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/screensaver/enabled | bool | — | 在Inverse3 设备上启用空闲状态的屏幕保护程序动画。 |
features/screensaver/speed | float | 范围 0.001–0.2 | 屏保动画的速度。 |
features/screensaver/distracted_speed | float | 范围 0.001–0.2 | 当用户位于附近但未进行主动交互时,动画的速度。 |
features/sdf/…
基于有符号距离场(SDF HFX)的触觉效果模块。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/sdf/enabled | bool | — | 启用或禁用 SDF 触觉效果模块。 |
features/sdf/state_output | bool | — | 默认情况下,将 SDF 状态纳入设备的输出有效载荷中。 |
features/sdf/max_count | int | 范围 0–128 | SDF 效果的最大数量(0 = 无限制)。 |
features/sdf/events/created | bool | — | 在创建新的 SDF 效果时触发一个事件。 |
features/sdf/events/deleted | bool | — | 当删除一个 SDF 效果时,会触发一个事件。 |
features/sdf/events/updated | bool | — | 当 SDF 效果被更新时,会触发一个事件。 |
features/sdf/probe_on_zero_force/enabled | bool | — | 当施加的力接近零时,会自动对SDF场进行采样。 |
features/sdf/probe_on_zero_force/delay | float | 范围 0.001–60.0 | 在力降至零后,自动探测开始前的延迟(s)。 |
features/verse_grip_pairing/…
跟踪Inverse3 与(有线或无线)Verse Grip之间的连接/断开过程。提供Haply Hub的耦合界面。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
features/verse_grip_pairing/enabled | bool | — | 启用安装和拆卸的配对/跟踪功能。 |
features/verse_grip_pairing/hall_threshold_vg | int | 范围 1–32 | 霍尔-佩格尔,当该数值达到或超过时,即视为已正确安装有线VerseGrip。 |
features/verse_grip_pairing/hall_threshold_wvg | int | 范围 1–32 | 霍尔-佩格尔,当该数值达到或超过时,即认为应安装无线VerseGrip。 |
features/verse_grip_pairing/detach_debounce_ms | int | 范围 0–1000 | 在确认释放操作之前,请先关闭此窗口(毫秒)。 |
features/verse_grip_pairing/heartbeat_ms | int | 范围 100–10000 | 强制重新通知之间的间隔(毫秒)。 |
features/verse_grip_pairing/force_attached | bool | — | 将状态“已安装”永久设为 true 并绕过霍尔传感器(硬件故障时的解决方法)。 |
session/serialization/…
转换输出的格式化——涉及 WebSocket 和 HTTP JSON 有效载荷。这些键在 3.5.1 版本中由 serialization/* nach session/serialization/* 已进行重定位,以反映其与会话相关的作用域。旧路径将继续通过过时的别名进行解析。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
session/serialization/explicit_fields | bool | — | 将符合其标识符默认值的转换字段纳入序列化输出中(例如: position: {0,0,0}, rotation: {w:1,…}). 当您的客户端要求每个字段都必须明确存在时,此选项非常有用。默认值: false. |
session/serialization/force_complete_transforms | bool | — | position, rotation und scale 在每次转换输出中都应输出,即使对于仅能检测方向的设备(Verse Grip、Wireless Verse Grip)也是如此,此外仅 rotation 支出。包括 session/serialization/explicit_fields. 默认值: false. |
serialization/explicit_fields (过时) | bool | — | 相反 session/serialization/explicit_fields 使用。读写操作将透明地转发至规范键。 |
serialization/force_complete_transforms (过时) | bool | — | 相反 session/serialization/force_complete_transforms 使用。读写操作将透明地转发至规范键。 |
session/…
会话调度器。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
session/min_simulation_rate_hz | int | 范围 20–500 | 设备在发出警告之前所需的最低可接受模拟频率(Hz)。 |
rate/…
服务节拍。引入于 3.5.1 版——这四个 rate/websocket/*-下面的钥匙之前放在 session/commands/*; 旧路径将继续通过过时的别名进行解析。
| Schlüssel | Typ | 限制 | 描述 |
|---|---|---|---|
rate/websocket/zoh_window_ms | int | — | 零阶保持窗口——抑制在此窗口内接收到的查询(毫秒)。 |
rate/websocket/drop_warning_threshold | int | — | 在触发警告之前,该时间窗口内被丢弃的命令数量。 |
rate/websocket/drop_warning_window_ms | int | — | 用于统计被丢弃指令的滑动窗口大小(毫秒)。 |
rate/websocket/tick_on_empty_batch | bool | 扩展 | Einen main_loop-即使整个 WebSocket 批次被丢弃,也应将此情况纳入计划。 |
session/commands/zoh_window_ms (过时) | int | — | 相反 rate/websocket/zoh_window_ms 使用。读写访问将被透明地转发。 |
session/commands/drop_warning_threshold (过时) | int | — | 相反 rate/websocket/drop_warning_threshold 使用。读写访问将被透明地转发。 |
session/commands/drop_warning_window_ms (过时) | int | — | 相反 rate/websocket/drop_warning_window_ms 使用。读写访问将被透明地转发。 |
session/commands/tick_on_empty_batch (过时) | bool | — | 相反 rate/websocket/tick_on_empty_batch 使用。读写访问将被透明地转发。 |
仅供内部使用的设置
在 3.5.1 版本中,有多个设置组被定义为 hidden 已交付,并专供内部使用: rate/dispatch/* (AIMD——调度率的上限和背压阈值), session/freeform/* (行为指纹识别)以及 session/serialization/preview/* (发布前的序列化实验,例如欧拉四元数的输出以及Wireless VerseGrip路由)。可通过 misc/hidden_settings 可用于调试。但预计这些设置会在后续的小版本更新中被采用、重命名或移除。因此,客户端的行为不应依赖于这些设置。