AVBP Mission plugin » History » Revision 5
Revision 4 (Rafael Bailon-Ruiz, 2021-03-02 16:58) → Revision 5/13 (Rafael Bailon-Ruiz, 2021-03-11 14:45)
h1. AVBP Mission plugin
The _AVBP mission plugin_ is an aircraft plugin, built upon the standard Mission Manager, to supervise adaptive mapping missions.
It is defined in the <code class="python">cams_avbp.plugins.mission</code> module.
h2. How to use it
h3. Scenario definition
<code class="python">AVBPMission</code> must de declared in the plugins section. The <code class="python">Missions</code> is required and must be included first in the list. Example:
<pre><code class="yaml">
aircrafts:
200:
replay: false
type: 'pprz'
plugins:
# Other plugins ...
- Missions:
backup_file: '/PATH/TO/backup_200.bin'
Goto: *goto_defaults
Segment: *segment_defaults
- AVBPMission
</code></pre>
h2. User remote control
You can make remote procedure calls using the http API, that you can issue with a web browser or from the command line with <code class="shell">curl</code>. For instance:
<pre><code class="shell">
curl -v "http://127.0.0.1:8000/runtime/call_method/?uav_id=200&plugin=AVBPMission&method=stop"
</code></pre>
calls the _stop_ method of the uav _200_ defined in the _AVBPMission_ plugin