Clumsy-API
Clumsy
等待所有任务结束后重启Clumsy
Path:{ip}:8008/stop
Method: GET
接口描述:无
请求(案例):http://127.0.0.1:8008/stop
返回(案例):
{"success":true,"id":0}
立即重启Clumsy
Path:{ip}:8008/reset
Method: GET
接口描述:无
token:int,查询任务的标识
请求(案例):http://127.0.0.1:8008/reset
返回(案例):
{"success":true,"id":0}
获取Simple 访问的上下位信号的值
Path:{ip}:8008/getStat
Method: GET
接口描述:无
请求(案例):http://127.0.0.1:8008/getStat
返回(案例):
{ "LeftWheelVelocity": "0", "RightWheelVelocity": "0", "thresSpeed": "2500", "soc": "0", "fault": "False", "manul": "0", "diagnosis": "/", "driveStatus": "DriveStop@0001/1/1 0:00:00", "runningScript": "/"
}
获取动作执行结果
Path:{ip}:8008/exec_result
Method: GET
接口描述:无
请求(案例):http://127.0.0.1:8008/exec_result?token=231231
返回(案例):
若 token 有效,则返回{token(int):[任务标识],status(string):“pending”/“finished”/“error”,detail(string):[报错信息],time(DateTime):[时间] }
若 token 无效,则返回{error: “invalid token”}