boatd api的python包装器,用于编写行为脚本。
boatd_client的Python项目详细描述
用于编写boatd行为的python模块 剧本。
安装
$ pip install boatd_client
类船
由船控制的船
属性
heading: 返回船的当前航向(度)
position: 以(latitude, longitude)
格式返回元组version: 返回boatt的版本
wind: 以度为单位返回风向
方法
def __init__(self, host='localhost', port=2222)
创建一个boat实例,连接到端口host的boatd port
def __rudder__(self, angle)
将方向舵的角度设置为angle度
def __sail__(self, angle)
将帆的角度设置为angle度