Installation » History » Version 1
Rafael Bailon-Ruiz, 2020-08-28 16:15
1 | 1 | Rafael Bailon-Ruiz | h1. Installation |
---|---|---|---|
2 | |||
3 | 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 %{background:yellow}Who is a regular user? Background%, follow the [[Installation#Regular user installation process]]; and if you are a developer, follow the[[Installation#Developer installation process]] |
||
4 | |||
5 | h2. System requirements |
||
6 | |||
7 | CAMS has been developed and tested in Ubuntu 16.04, 18. |
||
8 | |||
9 | 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. |
||
10 | |||
11 | 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. |
||
12 | |||
13 | 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. |
||
14 | |||
15 | The client side application is web-based and should work on a modern web browser. (Only tested with Mozilla Firefox and Safari). |
||
16 | |||
17 | |||
18 | h2. Regular user installation process |
||
19 | |||
20 | h3. System requirements |
||
21 | |||
22 | CAMS has been developed and tested in Ubuntu 16.04, 18. |
||
23 | |||
24 | 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. |
||
25 | |||
26 | 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. |
||
27 | |||
28 | 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. |
||
29 | |||
30 | The client side application is web-based and should work on a modern web browser. (Only tested with Mozilla Firefox and Safari). |
||
31 | |||
32 | h3. Paparazzi framework |
||
33 | |||
34 | Right-now the LAAS-Nephelae software is strongly tied to ENAC's Paparazzi framework and won't work at all without it being installed. Installation instructions be found "here":https://wiki.paparazziuav.org/wiki/Installation#Quickstart_for_Ubuntu_users. |
||
35 | |||
36 | We recommend the one-liner installation for Ubuntu users (if you are not an Ubuntu user, follow the "OS specific instructions":https://wiki.paparazziuav.org/wiki/Installation#OS_Specific_Instructions). |
||
37 | |||
38 | LAAS-Nephelae software needs the environment variable PAPARAZZI_HOME and PAPARAZZI_SRC to be set. Executing this line should work for most users **if you used the one-liner installation**: |
||
39 | |||
40 | <pre><code class="shell"> |
||
41 | echo "export PAPARAZZI_HOME=~/paparazzi" >> ~/.bashrc |
||
42 | echo "export PAPARAZZI_SRC=~/paparazzi" >> ~/.bashrc |
||
43 | </code></pre> |
||
44 | |||
45 | If you don't trust any line of code you find on the internet (if you do you probably shouldn't) you can find more information "here":https://wiki.paparazziuav.org/wiki/Installation#Environment_Variables. |
||
46 | |||
47 | h3. LAAS-Nephelae software |
||
48 | |||
49 | Make sure that redis is installed: |
||
50 | <pre><code class="shell"> |
||
51 | apt-get install redis-server |
||
52 | </code></pre> |
||
53 | |||
54 | Make sure that curl is installed: |
||
55 | <pre><code class="shell"> |
||
56 | apt-get install curl |
||
57 | </code></pre> |
||
58 | |||
59 | |||
60 | Install pip3 and update it: |
||
61 | <pre><code class="shell"> |
||
62 | apt-get install python3-pip |
||
63 | pip3 install --user --upgrade pip |
||
64 | </code></pre> |
||
65 | |||
66 | If you want to update it for all users: |
||
67 | <pre><code class="shell"> |
||
68 | pip3 install --upgrade pip |
||
69 | </code></pre> |
||
70 | |||
71 | For now the easiest way to install LAAS-Nephelae software 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. |
||
72 | |||
73 | <pre><code class="shell"> |
||
74 | git clone ssh://git@redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_gui.git nephelae_gui |
||
75 | cd nephelae_gui |
||
76 | make install pip_options=--user |
||
77 | </code></pre> |
||
78 | |||
79 | To check the installation, launch the server: |
||
80 | |||
81 | <pre><code class="shell"> |
||
82 | make demo |
||
83 | </code></pre> |
||
84 | |||
85 | This will (hopefully) start the replay of a UAV flight. |
||
86 | |||
87 | You should be able connect to the graphical user interface "here":http://0.0.0.0:8000/. |
||
88 | |||
89 | h1. Developer installation process |
||
90 | |||
91 | h3. Paparazzi framework |
||
92 | |||
93 | Make sure that curl is installed: |
||
94 | <pre><code class="shell"> |
||
95 | apt-get install curl |
||
96 | </code></pre> |
||
97 | |||
98 | h4. System dependencies (for Ubuntu 16.04) |
||
99 | |||
100 | <pre><code class="shell"> |
||
101 | add-apt-repository ppa:team-gcc-arm-embedded/ppa |
||
102 | apt-get update |
||
103 | apt-get install gcc-arm-linux-gnueabi gcc-arm-none-eabi |
||
104 | </code></pre> |
||
105 | |||
106 | <pre><code class="shell"> |
||
107 | add-apt-repository ppa:paparazzi-uav/ppa |
||
108 | apt-get update |
||
109 | apt-get install paparazzi-dev paparazzi-jsbsim |
||
110 | </code></pre> |
||
111 | |||
112 | h4. System dependencies (for Ubuntu 18.04) |
||
113 | |||
114 | <pre><code class="shell"> |
||
115 | apt-get install gcc-arm-none-eabi |
||
116 | </code></pre> |
||
117 | |||
118 | <pre><code class="shell"> |
||
119 | add-apt-repository ppa:paparazzi-uav/ppa |
||
120 | apt-get update |
||
121 | apt-get install paparazzi-dev paparazzi-jsbsim |
||
122 | </code></pre> |
||
123 | |||
124 | h4. Repository |
||
125 | <pre><code class="shell"> |
||
126 | git clone -b laas_master https://github.com/pnarvor/paparazzi.git paparazzi |
||
127 | cd paparazzi |
||
128 | make |
||
129 | </code></pre> |
||
130 | |||
131 | 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, relacing "paparazzi_path" to where you cloned paparazzi repository. |
||
132 | |||
133 | <pre><code class="shell"> |
||
134 | export PAPARAZZI_HOME="paparazzi_path" |
||
135 | export PAPARAZZI_SRC="paparazzi_path" |
||
136 | </code></pre> |
||
137 | |||
138 | Once Paparazzi installed, launch ./paparazzi. In the paparazzi center, build every aircrafts you need to use by selecting an item in the A/C menu and then clicking on the build button. |
||
139 | |||
140 | h3. LAAS-Nephelae software |
||
141 | |||
142 | Install pip3 and update it: |
||
143 | <pre><code class="shell"> |
||
144 | apt-get install python3-pip |
||
145 | pip3 install --user --upgrade pip |
||
146 | </code></pre> |
||
147 | |||
148 | If you want to update it for all users: |
||
149 | <pre><code class="shell"> |
||
150 | pip3 install --upgrade pip |
||
151 | </code></pre> |
||
152 | |||
153 | Clone and install the 3 core packages (in developer mode with the -e pip3 option): |
||
154 | |||
155 | "nephelae_base":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_base. |
||
156 | <pre><code class="shell"> |
||
157 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_base.git nephelae_base |
||
158 | cd nephelae_base |
||
159 | pip3 install --user -e . |
||
160 | </code></pre> |
||
161 | |||
162 | "nephelae_mesonh":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_mesonh. |
||
163 | <pre><code class="shell"> |
||
164 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_mesonh.git nephelae_mesonh |
||
165 | cd nephelae_mesonh |
||
166 | pip3 install --user -e . |
||
167 | </code></pre> |
||
168 | |||
169 | "nephelae_paparazzi":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_paparazzi. |
||
170 | <pre><code class="shell"> |
||
171 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_paparazzi.git nephelae_paparazzi |
||
172 | cd nephelae_paparazzi |
||
173 | pip3 install --user -e . |
||
174 | </code></pre> |
||
175 | |||
176 | Make sure that redis is installed: |
||
177 | <pre><code class="shell"> |
||
178 | apt-get install redis-server |
||
179 | </code></pre> |
||
180 | |||
181 | Clone and install the "nephelae_gui":https://redmine.laas.fr/projects/nephelae-devel/repository/nephelae_gui package in developer mode: |
||
182 | <pre><code class="shell"> |
||
183 | git clone git://redmine.laas.fr/laas/users/simon/nephelae/nephelae-devel/nephelae_gui.git nephelae_gui |
||
184 | cd nephelae_gui |
||
185 | make install pip_options=--user install_mode=dev |
||
186 | </code></pre> |
||
187 | |||
188 | To check the installation, launch the server: |
||
189 | |||
190 | <pre><code class="shell"> |
||
191 | make demo |
||
192 | </code></pre> |
||
193 | |||
194 | This will (hopefully) start the replay of a UAV flight. |
||
195 | |||
196 | You should be able connect to the graphical user interface "here":http://0.0.0.0:8000/. |