API 文档V1.2

Python SDK 快速参考

OCEANXER Python SDK 的 API 参考文档,包含连接管理、数据采集、控制指令示例代码。

安装

pip install oceanxer-sdk

快速入门

from oceanxer import ROVClient

client = ROVClient("192.168.1.100", port=14550)
client.connect()

# 获取状态数据
status = client.get_status()
print(f"深度: {status.depth} m")
print(f"航向: {status.heading}°")

# 控制 ROV
client.set_throttle(0.3) # 30% 推力
client.set_depth(5.0) # 设定深度 5 米
client.disconnect()

Python SDK 快速参考 - 文档中心 | OCEANXER