Installation » History » Version 7
Rafael Bailon-Ruiz, 2020-10-06 15:00
1 | 1 | Rafael Bailon-Ruiz | h1. Installation |
---|---|---|---|
2 | |||
3 | 4 | Rafael Bailon-Ruiz | This is a quick tutorial on how to install CAMS on your computer. Instructions are different depending on your needs: If a you are a regular user proceed with the [[Installation#Regular user installation process|Regular user installation process]]; and if you are a developer, follow the [[Installation#Developer installation process|Developer installation process]]. |
4 | 1 | Rafael Bailon-Ruiz | |
5 | 5 | Rafael Bailon-Ruiz | In any case, CAMS server requires a PC running a recent GNU/Linux operating system, preferably Ubuntu 18.04 or 20.04. Windows and MacOS are not supported. On the contrary, access to the graphical user interface is possible from any device running a modern web browser. |
6 | 1 | Rafael Bailon-Ruiz | |
7 | 5 | Rafael Bailon-Ruiz | {{toc}} |
8 | 1 | Rafael Bailon-Ruiz | |
9 | h2. Regular user installation process |
||
10 | |||
11 | 2 | Rafael Bailon-Ruiz | This guide assumes you are using Ubuntu 18.04. If you are using another operating system make sure that Python 3.5 or later is installed. |
12 | 1 | Rafael Bailon-Ruiz | |
13 | h3. Paparazzi framework |
||
14 | |||
15 | 2 | Rafael Bailon-Ruiz | First, install the Paparazzi framework using the "one-liner installation process":https://wiki.paparazziuav.org/wiki/Installation#Quickstart_for_Ubuntu_users. If you are not an Ubuntu user follow the "OS specific instructions":https://wiki.paparazziuav.org/wiki/Installation#OS_Specific_Instructions. |
16 | 1 | Rafael Bailon-Ruiz | |
17 | 2 | Rafael Bailon-Ruiz | Add the environment variables PAPARAZZI_HOME and PAPARAZZI_SRC to your command line interpreter. The code below should work for most users **if you used the one-liner installation**: |
18 | 1 | Rafael Bailon-Ruiz | |
19 | <pre><code class="shell"> |
||
20 | echo "export PAPARAZZI_HOME=~/paparazzi" >> ~/.bashrc |
||
21 | echo "export PAPARAZZI_SRC=~/paparazzi" >> ~/.bashrc |
||
22 | </code></pre> |
||
23 | |||
24 | 2 | Rafael Bailon-Ruiz | Otherwise, you can find more information "here":https://wiki.paparazziuav.org/wiki/Installation#Environment_Variables. |
25 | 1 | Rafael Bailon-Ruiz | |
26 | 2 | Rafael Bailon-Ruiz | h3. CAMS |
27 | 1 | Rafael Bailon-Ruiz | |
28 | 2 | Rafael Bailon-Ruiz | Make sure that curl is installed: |
29 | <pre><code class="shell"> |
||
30 | 7 | Rafael Bailon-Ruiz | sudo apt install curl |
31 | 2 | Rafael Bailon-Ruiz | </code></pre> |
32 | |||
33 | 1 | Rafael Bailon-Ruiz | Make sure that redis is installed: |
34 | <pre><code class="shell"> |
||
35 | 7 | Rafael Bailon-Ruiz | sudo apt install redis-server |
36 | 6 | Rafael Bailon-Ruiz | </code></pre> |
37 | 1 | Rafael Bailon-Ruiz | |
38 | Install pip3 and update it: |
||
39 | <pre><code class="shell"> |
||
40 | 7 | Rafael Bailon-Ruiz | sudo apt install python3-pip |
41 | 1 | Rafael Bailon-Ruiz | pip3 install --user --upgrade pip |
42 | </code></pre> |
||
43 | |||
44 | If you want to update it for all users: |
||
45 | <pre><code class="shell"> |
||
46 | pip3 install --upgrade pip |
||
47 | </code></pre> |
||
48 | |||
49 | 2 | Rafael Bailon-Ruiz | For now the easiest way to install CAMS is to clone the "git repository of the graphical user interface":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_gui and run its installation script. |
50 | 1 | Rafael Bailon-Ruiz | |
51 | <pre><code class="shell"> |
||
52 | git clone ssh://git@redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_gui.git nephelae_gui |
||
53 | cd nephelae_gui |
||
54 | make install pip_options=--user |
||
55 | </code></pre> |
||
56 | |||
57 | To check the installation, launch the server: |
||
58 | |||
59 | <pre><code class="shell"> |
||
60 | make demo |
||
61 | </code></pre> |
||
62 | |||
63 | This will (hopefully) start the replay of a UAV flight. |
||
64 | |||
65 | 2 | Rafael Bailon-Ruiz | You should now be able connect to the graphical user interface with your web browser on "http://0.0.0.0:8000/":http://0.0.0.0:8000/. |
66 | 1 | Rafael Bailon-Ruiz | |
67 | 2 | Rafael Bailon-Ruiz | h2. Developer installation process |
68 | 1 | Rafael Bailon-Ruiz | |
69 | 2 | Rafael Bailon-Ruiz | h3. System requirements |
70 | |||
71 | The main programming language is **Python 3.5**. "Official support for Python 2.7 ending by the beginning of 2020":https://pythonclock.org/, no development efforts were made to support Python 2.7. |
||
72 | |||
73 | Most of development and testing where made on "Ubuntu 16.04 LTS Xenial Xerus":http://releases.ubuntu.com/16.04/ on which Python 3.5 is the default Python version. |
||
74 | |||
75 | All server side applications should work on a Unix-based system provided it supports Python 3.5 or later. Compatibility with Microsoft Windows has not been tested. |
||
76 | |||
77 | The client side application is web-based and should work on a modern web browser. (Only tested with Mozilla Firefox and Safari). |
||
78 | |||
79 | 1 | Rafael Bailon-Ruiz | h3. Paparazzi framework |
80 | |||
81 | Make sure that curl is installed: |
||
82 | <pre><code class="shell"> |
||
83 | 6 | Rafael Bailon-Ruiz | apt install curl |
84 | 1 | Rafael Bailon-Ruiz | </code></pre> |
85 | |||
86 | h4. System dependencies (for Ubuntu 16.04) |
||
87 | |||
88 | <pre><code class="shell"> |
||
89 | add-apt-repository ppa:team-gcc-arm-embedded/ppa |
||
90 | 6 | Rafael Bailon-Ruiz | apt update |
91 | apt install gcc-arm-linux-gnueabi gcc-arm-none-eabi |
||
92 | 1 | Rafael Bailon-Ruiz | </code></pre> |
93 | |||
94 | <pre><code class="shell"> |
||
95 | add-apt-repository ppa:paparazzi-uav/ppa |
||
96 | 6 | Rafael Bailon-Ruiz | apt update |
97 | apt install paparazzi-dev paparazzi-jsbsim |
||
98 | 1 | Rafael Bailon-Ruiz | </code></pre> |
99 | |||
100 | h4. System dependencies (for Ubuntu 18.04) |
||
101 | |||
102 | <pre><code class="shell"> |
||
103 | 6 | Rafael Bailon-Ruiz | apt install gcc-arm-none-eabi |
104 | 1 | Rafael Bailon-Ruiz | </code></pre> |
105 | |||
106 | <pre><code class="shell"> |
||
107 | add-apt-repository ppa:paparazzi-uav/ppa |
||
108 | 6 | Rafael Bailon-Ruiz | apt update |
109 | apt install paparazzi-dev paparazzi-jsbsim |
||
110 | 1 | Rafael Bailon-Ruiz | </code></pre> |
111 | |||
112 | h4. Repository |
||
113 | <pre><code class="shell"> |
||
114 | git clone -b laas_master https://github.com/pnarvor/paparazzi.git paparazzi |
||
115 | cd paparazzi |
||
116 | make |
||
117 | </code></pre> |
||
118 | |||
119 | 2 | Rafael Bailon-Ruiz | LAAS-Nephelae software needs the environment variables PAPARAZZI_HOME and PAPARAZZI_SRC to be set to the root paparazzi folder (where you cloned it). Add these lines to your .bashrc, replacing "paparazzi_path" to where you cloned paparazzi repository. |
120 | 1 | Rafael Bailon-Ruiz | |
121 | <pre><code class="shell"> |
||
122 | export PAPARAZZI_HOME="paparazzi_path" |
||
123 | export PAPARAZZI_SRC="paparazzi_path" |
||
124 | </code></pre> |
||
125 | |||
126 | 2 | Rafael Bailon-Ruiz | Once Paparazzi installed, launch ./paparazzi. In the paparazzi center, build every aircraft you need to use by selecting an item in the _A/C_ menu and then clicking on the _build_ button. |
127 | 1 | Rafael Bailon-Ruiz | |
128 | 2 | Rafael Bailon-Ruiz | h3. CAMS |
129 | 1 | Rafael Bailon-Ruiz | |
130 | Install pip3 and update it: |
||
131 | <pre><code class="shell"> |
||
132 | 6 | Rafael Bailon-Ruiz | apt install python3-pip |
133 | 1 | Rafael Bailon-Ruiz | pip3 install --user --upgrade pip |
134 | </code></pre> |
||
135 | |||
136 | If you want to update it for all users: |
||
137 | <pre><code class="shell"> |
||
138 | pip3 install --upgrade pip |
||
139 | </code></pre> |
||
140 | |||
141 | Clone and install the 3 core packages (in developer mode with the -e pip3 option): |
||
142 | |||
143 | "nephelae_base":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_base. |
||
144 | <pre><code class="shell"> |
||
145 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_base.git nephelae_base |
||
146 | cd nephelae_base |
||
147 | pip3 install --user -e . |
||
148 | </code></pre> |
||
149 | |||
150 | "nephelae_mesonh":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_mesonh. |
||
151 | <pre><code class="shell"> |
||
152 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_mesonh.git nephelae_mesonh |
||
153 | cd nephelae_mesonh |
||
154 | pip3 install --user -e . |
||
155 | </code></pre> |
||
156 | |||
157 | "nephelae_paparazzi":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_paparazzi. |
||
158 | <pre><code class="shell"> |
||
159 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_paparazzi.git nephelae_paparazzi |
||
160 | cd nephelae_paparazzi |
||
161 | pip3 install --user -e . |
||
162 | </code></pre> |
||
163 | |||
164 | Make sure that redis is installed: |
||
165 | <pre><code class="shell"> |
||
166 | 6 | Rafael Bailon-Ruiz | apt install redis-server |
167 | 1 | Rafael Bailon-Ruiz | </code></pre> |
168 | |||
169 | Clone and install the "nephelae_gui":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_gui package in developer mode: |
||
170 | <pre><code class="shell"> |
||
171 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_gui.git nephelae_gui |
||
172 | cd nephelae_gui |
||
173 | make install pip_options=--user install_mode=dev |
||
174 | </code></pre> |
||
175 | |||
176 | To check the installation, launch the server: |
||
177 | |||
178 | <pre><code class="shell"> |
||
179 | make demo |
||
180 | </code></pre> |
||
181 | |||
182 | This will (hopefully) start the replay of a UAV flight. |
||
183 | |||
184 | 2 | Rafael Bailon-Ruiz | You should now be able connect to the graphical user interface with your web browser on "http://0.0.0.0:8000/":http://0.0.0.0:8000/. |