OnBright Robot

机器人底盘接口文档


更新功能区信息

<h5>简要描述</h5> <ul> <li>更新功能区信息</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://10.1.1.229:9096/api/v1/robot/functional/update</code> </li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>请求参数示例</h5> <pre><code>{ "prohibit": [ [ [ 3.561, 2.393 ], [ 7.93, 5.2 ], [ 12.704, 8.441 ] ], [ [ 10.187, 0.802 ], [ 16.35, 5.113 ] ], [ [ 10.187, 0.773 ], [ 6.281, -1.889 ] ], [ [ 12.725, 8.478 ], [ 20.85, 14.686 ] ], [ [ 16.308, 5.144 ], [ 24.975, 11.394 ] ], [ [ 3.475, 2.436 ], [ 3.35, 0.811 ] ], [ [ 6.392, -1.856 ], [ 5.642, -1.897 ] ], [ [ 10.563, 5.258 ], [ 11.373, 5.837 ], [ 12.386, 4.274 ], [ 11.691, 3.811 ], [ 10.679, 5.258 ] ], [ [ -3.388, 0.671 ], [ -1.761, 0.772 ] ] ] } </code></pre> <h5>json字段说明</h5> <table> <thead> <tr> <th style="text-align: left;">字段名</th> <th style="text-align: left;">必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">prohibit</td> <td style="text-align: left;">是</td> <td>array</td> <td>无</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ "code": 0, "data": { "poses": [ { "building": 0, "floor": 1, "id": 3001, "name": "", "type": "path", "x": 4.130000114440918, "y": 1.7000000476837158, "yaw": 0.04000066431535775 }, { "building": 0, "floor": 1, "id": 1001, "name": "", "type": "path", "x": 1.5399999618530273, "y": -0.7200000286102295, "yaw": -3.0400009504583103 }, { "building": 0, "floor": 1, "id": 1002, "name": "", "type": "path", "x": 0.9700000286102295, "y": -0.10000000149011612, "yaw": 3.03000078558221 }, { "building": 0, "floor": 1, "id": 2001, "name": "", "type": "path", "x": 2.2799999713897705, "y": 1.0399999618530273, "yaw": -3.090000917323332 }, { "building": 0, "floor": 1, "id": 4001, "name": "", "type": "path", "x": 6.039999961853027, "y": 0.9300000071525574, "yaw": -3.0199997066400295 }, { "building": 0, "floor": 1, "id": 5001, "name": "", "type": "path", "x": 6.519999980926514, "y": -0.7400000095367432, "yaw": -3.1200002397454094 }, { "building": 0, "floor": 1, "id": 6001, "name": "", "type": "path", "x": 5.829999923706055, "y": -2.5399999618530273, "yaw": -3.069999335623184 }, { "building": 0, "floor": 1, "id": 7001, "name": "", "type": "path", "x": 4.110000133514404, "y": -3.2300000190734863, "yaw": -3.099999663753435 }, { "building": 0, "floor": 1, "id": 8001, "name": "", "type": "path", "x": 2.319999933242798, "y": -2.5899999141693115, "yaw": -3.060000025739568 }, { "building": 0, "floor": 1, "id": 100000, "name": "开机重定位点", "type": "开机重定位点", "x": 1.450788974761963, "y": 2.4442999362945557, "yaw": -0.03363357172198159 }, { "building": 0, "floor": 1, "id": 100002, "name": "原点\/待机点", "type": "path", "x": 2.1004230976104736, "y": 2.4210610389709473, "yaw": 3.1064268290930617 }, { "building": 0, "floor": 1, "id": 0, "name": "充电点", "type": "充电点", "x": 0, "y": 0, "yaw": 0 }, { "building": 0, "floor": 1, "id": 100001, "name": "充电点", "type": "充电点", "x": 2.1004230976104736, "y": 2.4210610389709473, "yaw": 2.1064273809917653 } ] }, "message": "" } </code></pre> <h5>成功返回示例的参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">string</td> <td>无</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">object</td> <td>无</td> </tr> <tr> <td style="text-align: left;">poses</td> <td style="text-align: left;">array</td> <td>无</td> </tr> <tr> <td style="text-align: left;">poses.building</td> <td style="text-align: left;">int</td> <td>楼栋</td> </tr> <tr> <td style="text-align: left;">poses.floor</td> <td style="text-align: left;">int</td> <td>楼层</td> </tr> <tr> <td style="text-align: left;">poses.id</td> <td style="text-align: left;">int</td> <td>站点id</td> </tr> <tr> <td style="text-align: left;">poses.name</td> <td style="text-align: left;">string</td> <td>站点名称</td> </tr> <tr> <td style="text-align: left;">poses.type</td> <td style="text-align: left;">string</td> <td>站点类型</td> </tr> <tr> <td style="text-align: left;">poses.x</td> <td style="text-align: left;">double</td> <td>x轴坐标</td> </tr> <tr> <td style="text-align: left;">poses.y</td> <td style="text-align: left;">double</td> <td>y轴坐标</td> </tr> <tr> <td style="text-align: left;">poses.yaw</td> <td style="text-align: left;">double</td> <td>航向角</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">string</td> <td>无</td> </tr> </tbody> </table>

页面列表

ITEM_HTML