跳到主要内容

VTSDeviceFinder()

构造函数 | VTSDeviceFinder 类

📖 方法说明

实例化 VTSDeviceFinder 类,用于查找和管理纬钛视触觉传感器设备。此类提供了设备发现、枚举和访问的核心功能。


📝 语法

from pyvitaisdk import VTSDeviceFinder

finder = VTSDeviceFinder()

🔧 参数

无参数


📤 返回类型

VTSDeviceFinder - 设备查找器实例对象


💡 示例代码

from pyvitaisdk import VTSDeviceFinder

# 创建 VTSDeviceFinder 实例
finder = VTSDeviceFinder()

# 获取所有连接的设备
devices = finder.get_devices()
print(f"找到 {len(devices)} 个设备")

# 获取设备数量
count = finder.count()
print(f"设备数量: {count}")

⚠️ 注意事项

使用建议
  • 在程序开始时创建一个 VTSDeviceFinder 实例
  • 使用该实例的方法来查找和访问设备
前置条件
  • 确保已正确安装 pyvitaisdk
  • 确保传感器设备已正确连接到计算机

🔗 相关方法