修改/添加站点信息
<h5>简要描述</h5>
<ul>
<li>修改或添加站点信息,当修改的站点不存在时,系统会新增该站点</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://10.1.1.229:9096/api/v1/robot/pose/modify</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求参数示例</h5>
<pre><code>{
"building": 0,
"floor": 1,
"pose_id": 100001,
"name": "充电点",
"type": "充电点",
"x": 2.1004230976104736,
"y": 2.4210610389709473,
"yaw": 2.1064268290930617
}
</code></pre>
<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>