Changes between Version 1 and Version 2 of simplefleet
- Timestamp:
- Feb 11, 2019, 5:23:52 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
simplefleet
v1 v2 3 3 __NOTE__: For Flair version <= 0.2.1, see [wiki:simplefleet_old this page]. 4 4 5 = Test du simulateur sur une flotte de 2 drones (avecmotion capture) =5 = Testing Flair on a fleet of 2 uavs example (using motion capture) = 6 6 7 Cette page explique comment compiler et tester un programme utilisant Fl-AIR et son simulateur. Celui-ci simule 2 drones x8 se déplaçant dans une salle de motion capture. Les drones effectuent une chorégraphie.7 This page explains how to compile and test a program using Flair. It simulates 2 UAVs moving in a room with motion capture system. Uav are doing a choregraphy. 8 8 9 This demonstration is composed of a unique simulator program, which simulate 2 UAVs. The UAV program is also unique, but it is executed two times (with different command lines argument), one fortime for each UAV. An argument is used by the program to distinguish the UAV id (1 or 2).9 This demonstration is composed of a unique simulator program, which simulates 2 UAVs. The UAV program is also unique, but it is executed two times (with different command lines argument), one time for each UAV. An argument is used by the program to distinguish the UAV id (1 or 2). 10 10 11 11 == Compilation == 12 12 13 Les programmes vont être compilés pour la cible et pour le PC. Pour cela le script ''cmake_codelite.sh'' va faire un projet !CodeLite pour le PC dans le répertoire ''build'' et un projet pour la cible dans le répertoire ''build_arm''.14 * compiler le simulateur15 {{{16 $ cd $FLAIR_ROOT/flair-src/demos/SimpleFleet/simulator17 $ $FLAIR_ROOT/flair-dev/scripts/cmake_codelite.sh18 $ cd build19 $ make -j420 $ cd ../build_arm21 $ make -j422 }}}23 * compiler le programme de commande24 {{{25 $ cd $FLAIR_ROOT/flair-src/demos/SimpleFleet/uav26 $ $FLAIR_ROOT/flair-dev/scripts/cmake_codelite.sh27 $ cd build28 $ make -j429 $ cd ../build_arm30 $ make -j431 }}}32 13 33 __NB__: you can also use the script of this [wiki:compile_all page] to compile the programs. 14 == Execution on a PC == 34 15 35 == Exécution des programmes sur le PC == 36 37 === station sol === 16 === ground control station === 38 17 39 18 {{{ … … 43 22 === simulator === 44 23 45 O uvrir un terminal et exécuter le programme via son script:24 Open a terminal and execute the simulator: 46 25 {{{ 47 $ cd $FLAIR_ROOT/flair- src/demos/SimpleFleet/simulator/build/bin26 $ cd $FLAIR_ROOT/flair-bin/demos/core2-64/SimpleFleet_simulator 48 27 $ ./simulator_x8.sh 49 28 }}} 50 29 51 Ce script permet de lancer le programmes avec un certain nombre d'arguments.30 This script, as for ground control station, launches the program with some arguments. 52 31 53 A noter que ce script détecte également la présence ou non de Xenomai afin de lancer le bon programme (temps réel ou non temps réel).32 Note that the script also detects if the system uses Xenomai or not, in order to launch the corresponding program version (real time or not). 54 33 55 34 === UAVs === 56 35 57 O uvrir deux terminaux et exécuter chacun des programmes via leurscript:36 Open 2 terminals and execute each program through its script: 58 37 {{{ 59 $ cd $FLAIR_ROOT/flair- src/demos/SimpleFleet/uav/build/bin38 $ cd $FLAIR_ROOT/flair-bin/demos/core2-64/SimpleFleet 60 39 $ ./x8_0.sh 61 40 }}} 62 et 41 and 63 42 {{{ 64 $ cd $FLAIR_ROOT/flair- src/demos/SimpleFleet/uav/build/bin43 $ cd $FLAIR_ROOT/flair-bin/demos/core2-64/SimpleFleet 65 44 $ ./x8_1.sh 66 45 }}} 67 Ces scripts, permettent de lancer les programmes avec un certain nombre d'arguments.68 46 69 A noter que ces scripts détectent également la présence ou non de Xenomai afin de lancer le bon programme (temps réel ou non temps réel). 47 These scripts, as for ground control station, launch the programs with some arguments. 48 49 Note that the scripts also detect if the system uses Xenomai or not, in order to launch the corresponding program version (real time or not). 70 50 71 51 === DualShock3 controller (optional) === … … 82 62 }}} 83 63 84 === réglages===64 === setup === 85 65 86 A l’exécution des programmes, la station sol doit se construire et faire apparaître les réglages et les graphes des programmes. 66 When executing the programs, the ground control station should construct itself and show setup and graphs for the programs. 87 67 88 Sur l'onglet x8_0/uav, appuyer sur ''take off'' pour faire décoller les drones. 68 In the tab ''x4_0/uav'' press the ''take off'' button to take off the uavs. 69 70 In the simulator window, you can change the camera (if configured) with ''page up/down'' keys. You can also press ''a'' to change the axis indicator. 89 71 90 72 === Changing 3D environment === 91 73 92 The 3D environment of the simulator is fixed by the launcher script (''simulator_x 4.sh''); to change this environment edit the script and change the prameter ''-s''.74 The 3D environment of the simulator is fixed by the launcher script (''simulator_x8.sh''); to change this environment edit the script and change the prameter ''-s''. 93 75 94 76 For exemple, you can change it from … … 101 83 }}} 102 84 103 == Ex écution des programmes sur la cible==85 == Execution on target == 104 86 105 TODO : à documenter87 TODO