获取场景信息
请求
- 功能:获取
RDSCore
的场景信息 - 方法:
GET
- 接口说明:
/scene
json
GET "http://host:8088/scene"
1
请求数据
无
请求示例
无
响应
响应数据
Name | Type | Description |
---|---|---|
scene | object | 调度系统场景文件 json,即 rds.scene 文件中的内容 |
scene_md5 | string | 调度系统场景文件 MD5 |
code | int | API 错误码,详情见API错误码 |
msg | string | API 错误码信息 |
create_on | int | API 上传时间戳 |
json
{
"scene": { // 场景文件json(rds.scene的内容)
"areas": [],
"blockGroup": [],
"desc": "",
"doors": [],
"labels": [],
"lifts": [],
"robotGroup": [{
"name": "test",
"robot": [{
"id": "2000-1",
"property": [{
"key": "current_map",
"stringValue": "default",
"tag": "",
"type": "string",
"value": ""
},
{
"key": "ip",
"stringValue": "192.168.5.174",
"tag": "",
"type": "string",
"value": ""
},
{
"key": "color",
"stringValue": "#d66b29",
"tag": "",
"type": "string",
"value": ""
},
{
"int32Value": -1,
"key": "chargeNeed",
"tag": "",
"type": "int32",
"value": ""
},
{
"int32Value": -1,
"key": "chargeOnly",
"tag": "",
"type": "int32",
"value": ""
},
{
"int32Value": 90,
"key": "chargedFull",
"tag": "",
"type": "int32",
"value": ""
},
{
"int32Value": 50,
"key": "chargedOk",
"tag": "",
"type": "int32",
"value": ""
}
]
}]
}]
},
"scene_md5": "37ee8d74ffc7f21aea339e71bea6b82f" // 场景文件的md5
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
最近更新 2022/11/28
有用
没用