GetWorkState
Description
t10机器获取当前工作状态Request body
{
"cmd": "GetWorkState",
"data": {}
}
- Request paramters
Parameters | Parameter description | Parameter type |
---|---|---|
cmd | fixed value GetWorkState | string |
data | Can not carry | json |
- Response example
{
"ret": "",
"errno": 1,
"cleanSt": "s",
"chargeSt": "",
"waterboxSt": 0,
"sleepSt": 1,
"stationSt": ""
}
- Response parameters
Parameters | Parameter type | Parameter description |
---|---|---|
ret | string | ok-request succeeded, fail-request failed |
errno | number | error code, only exists when the request fails. see 机器人产品控制接口常见错误码 |
cleanSt | string | Cleaning status, exists when the request is successful. s-cleaning, p-paused, h-idle, goposition-我正在前往指定点, gopositionpause-前往指定点暂停中, findpet-我正在寻找宠物, findpetpause-寻找宠物暂停中, cruise-我正在巡航, cruisepause-巡航暂停中, buildmap-我正在建图, buildmappause-建图暂停中 |
chargeSt | string | Charging status, exists when the request is successful. g-going, gp-返回基站暂停中, i-idle, sc-slotcharging, wc-wirecharging |
waterboxSt | number | 0-未装水箱,1-安装水箱 |
sleepSt | number | 0-未休眠,1-浅休眠中 |
stationSt | string | wash-我正在清洗拖布, dry-我正在烘干 |
develop note
cleanSt
待机中 h
我正在清洁 s
清洁暂停中 p
我正在前往指定点 goposition || state!=idle && cleanState.content.type=mapPoint && cleanState.motionState=working
前往指定点暂停中 gopositionpause || state!=idle && cleanState.content.type=mapPoint && cleanState.motionState=pause
我正在寻找宠物 findpet || state!=idle && cleanState.content.type=findPet && cleanState.motionState=working
寻找宠物暂停中 findpetpause || state!=idle && cleanState.content.type=findPet && cleanState.motionState=pause
我正在巡航 cruise || state!=idle && cleanState.content.type=patrol && cleanState.motionState=working
巡航暂停中 cruisepause || state!=idle && cleanState.content.type=patrol && cleanState.motionState=pause
我正在建图 buildmap || state!=idle && cleanState.content.type=quickBuilding && cleanState.motionState=working
建图暂停中 buildmappause || state!=idle && cleanState.content.type=quickBuilding && cleanState.motionState=pause
我正在返回基站 g || state=goCharging && cleanState.motionState=working
返回基站暂停中 gp || state=goCharging && cleanState.motionState=pause
我正在清洗拖布 wash || state!=idle && cleanState.content.type=washing && cleanState.motionState=working
清洗拖布暂停中 washpause || state!=idle && cleanState.content.type=washing && cleanState.motionState=pause
chargeSt
待机中 i
我正在低电充电中 sc
stationSt
待机中 i || state=0
我正在烘干 dry || state=1 && type=2 && motionState=1
暂停烘干 drypause
正在集尘 dust
集尘暂停 dustpause
正在自清洁 clean
暂停自清洁 cleanpause