Project

General

Profile

Replay » History » Version 1

Rafael Bailon-Ruiz, 2020-10-15 10:51

1 1 Rafael Bailon-Ruiz
h1. Replay
2
3
This page shows how to do a replay (a rerun of a recorded flight or simulation). This can only be done with Paparazzi at the moment, but a standalone version is on work.
4
 
5
6
h2. Replay with "Paparazzi":https://wiki.paparazziuav.org/wiki/Main_Page (BETA)
7
8
To launch a replay with Paparazzi, you'll need :
9
- An install of Paparazzi (following the install tutorial "here":https://redmine.laas.fr/projects/nephelae-devel/wiki/Installation gives you one)
10
- An install of CAMS (the graphical interface, dedicated for mapping, again you can find the installation "here":https://redmine.laas.fr/projects/nephelae-devel/wiki/Installation)
11
- A paparazzi log file
12
- A YAML config correctly set up (set **replay**: true and **type**: pprz for each UAV)
13
 
14
15
Once these requirements are met, follow these steps :
16
1. First launch the logalizer of paparazzi. It can be found at : $PAPARAZZI_HOME/sw/logalizer ($PAPARAZZI_HOME is where you installed your paparazzi). Once found, start ./play 'logfile' where logfile is the logfile you want to rerun.
17
2. Launch ./paparazzi
18
3. On the GCS, set the Session to Replay, and then hit Execute
19
4. Now that the replay is running on the GCS, start CAMS
20
 
21
22
If you followed correctly these steps, you should now be able to see the replay on CAMS.
23
 
24
25
It is possible to control the speed by using Gaia, the environment controller of Paparazzi. If you want to use it, go to the Paparazzi center, open the tools menu and hit **Environment Simulator**.
26
You can increase or decrease the speed by changing the Time scale option of Gaia.
27
 
28
29
If you want to pause the replay, you can send a SIGSTOP to the logalizer process (by doing a **CTRL-Z**). You can resume it by doing the **fg** command.
30
 
31
32
h2. Standalone Replay
33
34
To launch a replay with only CAMS and the base package, you'll need :
35
- An install of CAMS (the graphical interface, dedicated for mapping, again you can find the installation "here":https://redmine.laas.fr/projects/nephelae-devel/wiki/Installation)
36
- A YAML config correctly set up (set **replay**: true **type**: base for each UAV)
37
- A nephelae database registered in ASCII (you can achieve this by instantiating your neph file as a NephelaeDataServer and then use its save_ascii function)
38
- The nephelae_utils repositiory
39
 
40
41
Once these requirements are met, follow these steps :
42
1. At this stage of the development, you'll have to set manually the target file in replay_neph.py (a patch is yet to come)
43
2. Launch the replay_neph file (located in nephelae_utils) in interpreted mode (use _ipython3 -i replay_neph_ command)
44
3. Write *rp = ReplayNeph()*
45
4. Write *rp.start()*
46
5. Now that the replay is running, start CAMS
47
 
48
49
If you want to pause or speed up the replay, you can change the speed of the replay via the set_pacing method. In the interpreted command file, write *rp.set_pacing(<value>)*. (0.1 = normal speed, 0.0 = pause, > 0.1 = speed up).
50
&nbsp;
51
52
You can stop the streaming at any moment using *rp.stop()*