Project

General

Profile

AVBP Mission plugin » History » Version 5

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

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 5 Rafael Bailon-Ruiz
h2. How to use it
7
8
h3. Scenario definition
9
10
<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:
11
12
<pre><code class="yaml">
13
aircrafts:
14
    200:
15
        replay: false
16
        type: 'pprz'
17
        plugins:
18
            # Other plugins ...
19
            - Missions:
20
                backup_file: '/PATH/TO/backup_200.bin'
21
                Goto: *goto_defaults
22
                Segment: *segment_defaults
23
            - AVBPMission
24
</code></pre>
25
26 3 Rafael Bailon-Ruiz
h2. User remote control
27
28 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:
29 3 Rafael Bailon-Ruiz
30
<pre><code class="shell">
31
curl -v "http://127.0.0.1:8000/runtime/call_method/?uav_id=200&plugin=AVBPMission&method=stop"
32
</code></pre>
33
34
calls the _stop_ method of the uav _200_ defined in the _AVBPMission_ plugin