forked from baptistelabat/robokite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·119 lines (102 loc) · 4.32 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Download python dependencies for ground station
sudo pip install cython
# Library to insure serial communication with arduino
sudo pip install pyserial
# Gamepad/joystick user interface library
sudo apt-get install python-pygame
# Optional library needed to make some recording for post-analysis
sudo apt-get install libhdf5-dev
sudo pip install h5py
# Tornado server is needed to get a graphical user interface in a modern web browser
sudo pip install tornado
# Mavlink
git clone git://github.com/mavlink/mavlink.git
cd mavlink/pymavlink
sudo python setup.py install
cd ..
# Select repertory message_definitions/v1.0/ardupilotmega.xml
sudo python mavgenerate.py -o mavlinkv10.py message_definitions/v1.0/common.xml
# At this point, you will have to close the gui
cd ..
# Download arduino dependencies for ground station
# Sabertooth library
wget www.dimensionengineering.com/software/SabertoothArduinoLibraries.zip
unzip SabertoothArduinoLibraries.zip
mv Sabertooth ~/sketchbook/libraries
mv SyRenSimplified ~/sketchbook/libraries
mv USBSabertooth ~/sketchbook/libraries
mv SabertoothSimplified ~/sketchbook/libraries
rm SabertoothArduinoLibraries.zip
rm install.txt
# Interrupt library
git clone https://github.com/GreyGnome/PinChangeInt.git ~/sketchbook/libraries/PinChangeInt
# NMEA library
git clone https://github.com/mikalhart/TinyGPSPlus.git ~/sketchbook/libraries/TinyGPSPlus
# PID library
git clone https://github.com/br3ttb/Arduino-PID-Library.git
mv Arduino-PID-Library/PID_v1 ~/sketchbook/libraries
sudo rm -R Arduino-PID-Library
# Modified software serial library
mv Arduino/libraries/mySoftwareSerial ~/sketchbook/libraries
# Download arduino dependencies for embedded board
# MPU9150 and I2C libraries
git clone https://github.com/sparkfun/MPU-9150_Breakout.git
mv MPU-9150_Breakout/firmware/I2Cdev ~/sketchbook/libraries
mv MPU-9150_Breakout/firmware/MPU6050 ~/sketchbook/libraries
sudo rm -R MPU-9150_Breakout/
# MS5611 library
git clone https://github.com/Fabio-Varesano-Association/freeimu.git
mv freeimu/libraries/MS561101BA/ ~/sketchbook/libraries/
sudo rm -R freeimu
# Mavlink library
mv Arduino/libraries/MavlinkForArduino ~/sketchbook/libraries
git clone https://github.com/mavlink/c_library.git ~/sketchbook/libraries/MavlinkForArduino
# Download dependencies needed to visualize, modify 3D models
# Openscad
sudo apt-get install openscad
# Kokopelli
sudo apt-get install python python-dev python-pip gcc g++ libpng12-dev make bash cmake
sudo pip install numpy PyOpenGL PyOpenGL_accelerate
git clone https://github.com/mkeeter/kokopelli.git
cd kokopelli
make
sudo make install
cd util
./install_wxpython3.0.sh
cd ..
cd ..
# Openscam
# 32 bit http://openscam.org/releases/beta/release/openscam/debian-testing-32bit/v0.2/openscam_0.2.5_i386.deb
wget http://openscam.org/releases/beta/release/openscam/debian-testing-64bit/v0.2/openscam_0.2.5_amd64.deb
sudo dpkg -i openscam_0.2.5_amd64.deb
# Inkscape
sudo apt-get install inkscape
# Meshlab
sudo apt-get install meshlab
# Laser en graver
git clone https://git.gitorious.org/laserengraver_smoothie/laserengraver_smoothie.git
cp laserengraver_smoothie/src/* ~/.config/inkscape/extensions
#dxf2gcode
wget http://sourceforge.net/projects/dxf2gcode/files/2015-02-04-DXF2GCODE_PyQt4_beta_source.zip/download
unzip 2015-02-04-DXF2GCODE_PyQt4_beta_source.zip
# Download dependencies needed for software tests, post-treatment analysis, or new/old features development
sudo apt-get install youtube-dl
# Download samples video
chmod 777 Recording/Videos/downloadTestVideos.sh
.robokite/Recording/Videos/downloadTestVideos.sh
# SimpleCV
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
sudo apt-get install ipython python-opencv python-scipy python-numpy python-pygame python-setuptools python-pip
sudo pip install python-dev
sudo pip install svgwrite
sudo pip install https://github.com/sightmachine/SimpleCV/zipball/develop
# Basemap
sudo apt-get install python-mpltoolkits.basemap
git clone https://github.com/PaulStoffregen/RadioHead.git ~/sketchbook/libraries/RadioHead
# Qgroundcontrol
wget http://latestfiasco.com/ftp/QGroundControl-Stable-V2.2.1.tar.bz2
mkdir QGroundControl
tar xvjf QGroundControl-Stable-V2.2.1.tar.bz2 -C QGroundControl
# Geda (Circuits drawing)
# Library
git clone https://github.com/freespace/geda-symbols.git