-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.bash
More file actions
executable file
·50 lines (34 loc) · 1.5 KB
/
setup.bash
File metadata and controls
executable file
·50 lines (34 loc) · 1.5 KB
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
#!/bin/bash
#this file fully sets up flexcraft code on an ubuntu 12.04 machine
#it install ros hydro and then installs the code
# IMPORTANT: this code must run from the flexcraft folder (should be folder stored in) to work correctly
#installs ros hydro following the instructions from wiki.ros.org/hydro/Installation/Ubuntu
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install ros-hydro-desktop-full
#These two commands are repeated as it does not seem to install correctly the first time
sudo apt-get update
sudo apt-get -y install ros-hydro-desktop-full
sudo rosdep init
rosdep update
echo "source /opt/ros/hydro/setup.bash" >> ~/.bashrc
source ~/.bashrc
source /opt/ros/hydro/setup.bash
#set up flexcraft code (assumes code already pulled as this file is in repository)
catkin_make
#sources flexcraft file so ros knows of this code
here=$PWD
echo "source $here/devel/setup.bash" >> ~/.bashrc
source $here/devel/setup.bash
#makes this terminal reset
source ~/.bashrc
#install some file dependencies
rosdep -y install axis_camera
rosdep -y install spacenav_node
sudo apt-get -y install ros-hydro-openni-camera
sudo apt-get -y install ros-hydro-openni-launch
# remakes the system so it is good to go. -j1 does it sequentially so not dependency errors
catkin_make -j1
# create desktop files
startup/create_desktop.bash