获取循迹任务列表
<p>简要描述:
获取机器人循迹任务所有任务点
方式:
服务器发送指令到机器人
发布话题:/get_alltask_list
发送指令:</p>
<pre><code class="language-json">{
&quot;msg&quot;:{
&quot;action&quot;:1
}
}</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>action</td>
<td>否</td>
<td>int</td>
<td>1:获取数据</td>
</tr>
</tbody>
</table>
<p>返回示例
发布话题:/get_alltask_list_response
发送指令:</p>
<pre><code class="language-json">{
&quot;data&quot;: [
{
&quot;createtime&quot;: 1701237768.818256,
&quot;cam_key&quot;:&quot;&quot;,
&quot;preset&quot;: &quot;&quot;,
&quot;presetID&quot;:&quot;&quot;,
&quot;remark&quot;: &quot;&quot;,
&quot;task_id&quot;: &quot;task_1701237768.8182561&quot;,
&quot;theta&quot;: -1.63,
&quot;time&quot;: 0,
&quot;track_name&quot;: &quot;和工_two&quot;,
&quot;track_point_name&quot;: &quot;寻迹中_关键帧0&quot;,
&quot;type&quot;: &quot;tmp_stop&quot;,
&quot;type_text&quot;: &quot;会车停车点&quot;,
&quot;x&quot;: 0.02,
&quot;y&quot;: -9.73
},
{
&quot;createtime&quot;: 1701237768.8182619,
&quot;cam_key&quot;:&quot;&quot;,
&quot;preset&quot;: &quot;&quot;,
&quot;presetID&quot;:&quot;&quot;,
&quot;remark&quot;: &quot;&quot;,
&quot;task_id&quot;: &quot;task_1701237768.818262&quot;,
&quot;theta&quot;: -1.62,
&quot;time&quot;: 1,
&quot;track_name&quot;: &quot;和工_two&quot;,
&quot;track_point_name&quot;: &quot;寻迹中_关键帧0&quot;,
&quot;type&quot;: &quot;tmp_stop&quot;,
&quot;type_text&quot;: &quot;会车停车点&quot;,
&quot;x&quot;: -0.17,
&quot;y&quot;: -16.57
}
]
}</code></pre>
<p>返回参数说明</p>
<p>data参数说明</p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>是否必存</th>
<th>类型</th>
<th>内容</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>createtime</td>
<td>是</td>
<td>string</td>
<td>任务点添加时间</td>
</tr>
<tr>
<td>cam_key</td>
<td>是</td>
<td>string</td>
<td>云台key(用于云台控制)</td>
</tr>
<tr>
<td>preset</td>
<td>是</td>
<td>string</td>
<td>云台预置点名称</td>
</tr>
<tr>
<td>presetID</td>
<td>是</td>
<td>string</td>
<td>云台预置点id</td>
</tr>
<tr>
<td>remark</td>
<td>是</td>
<td>string</td>
<td>备注</td>
</tr>
<tr>
<td>task_id</td>
<td>是</td>
<td>string</td>
<td>任务id</td>
</tr>
<tr>
<td>time</td>
<td>是</td>
<td>string</td>
<td>任务点序号(在该任务组下的循迹关键点文件中对应的序号</td>
</tr>
<tr>
<td>track_name</td>
<td>是</td>
<td>string</td>
<td>循迹路线名称(不重复)</td>
</tr>
<tr>
<td>track_point_name</td>
<td>是</td>
<td>string</td>
<td>任务组名称(该路线下不重复 默认名称为 寻迹中_关键点0</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>string</td>
<td>任务类型中文</td>
</tr>
<tr>
<td>type_text</td>
<td>是</td>
<td>string</td>
<td>任务类型英文</td>
</tr>
<tr>
<td>x</td>
<td>是</td>
<td>string</td>
<td>任务点坐标 x</td>
</tr>
<tr>
<td>y</td>
<td>是</td>
<td>string</td>
<td>任务点坐标 y</td>
</tr>
<tr>
<td>theta</td>
<td>是</td>
<td>string</td>
<td>任务点坐标 theta</td>
</tr>
</tbody>
</table>