Project

General

Profile

AVBP Mission plugin » History » Version 7

Rafael Bailon-Ruiz, 2021-03-11 14:48

1 1 Rafael Bailon-Ruiz
h1. AVBP Mission plugin
2 2 Rafael Bailon-Ruiz
3
The _AVBP mission plugin_ is an aircraft plugin, built upon the standard Mission Manager, to supervise adaptive mapping missions.
4
It is defined in the  <code class="python">cams_avbp.plugins.mission</code> module.
5 3 Rafael Bailon-Ruiz
6 6 Rafael Bailon-Ruiz
h2. Scenario definition
7 5 Rafael Bailon-Ruiz
8 7 Rafael Bailon-Ruiz
<code class="python">AVBPMission</code> must de declared in the plugins section. The <code class="python">Missions</code> plugin is required and must be included first in the list. Example:
9 5 Rafael Bailon-Ruiz
10
<pre><code class="yaml">
11
aircrafts:
12
    200:
13
        replay: false
14
        type: 'pprz'
15
        plugins:
16
            # Other plugins ...
17
            - Missions:
18
                backup_file: '/PATH/TO/backup_200.bin'
19
                Goto: *goto_defaults
20
                Segment: *segment_defaults
21
            - AVBPMission
22
</code></pre>
23
24 3 Rafael Bailon-Ruiz
h2. User remote control
25
26 4 Rafael Bailon-Ruiz
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:
27 3 Rafael Bailon-Ruiz
28
<pre><code class="shell">
29
curl -v "http://127.0.0.1:8000/runtime/call_method/?uav_id=200&plugin=AVBPMission&method=stop"
30
</code></pre>
31
32
calls the _stop_ method of the uav _200_ defined in the _AVBPMission_ plugin