安装
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()