Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding installation file #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions kgpkubs_launch/scripts/kill.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# End all the processes in screens
#
killall -15 screen
killall roscore
50 changes: 50 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#! /bin/bash
set -e
if [ "$#" -ne 1 ]; then
echo "usage: ./install.sh <path-to-installation>"
exit
fi

# Install dependencies
workspace_dir=$1

echo "Installing Dependencies"
sudo apt-get -qq --yes --force-yes update
sudo apt-get -qq --yes --force-yes install build-essential
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -qq --yes --force-yes update
sudo apt-get -qq --yes --force-yes install "g++-4.9"
sudo apt-get -qq --yes --force-yes install cmake qt5-default libqt5svg5-dev libprotobuf-dev protobuf-compiler libode-dev screen

mkdir temp_dir && cd temp_dir
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/vartypes/vartypes-0.7.tar.gz
tar xfz vartypes-0.7.tar.gz
cd vartypes-0.7
mkdir build && cd build
cmake ..
make --quiet -j8
sudo make install
cd ../../../
rm -rf temp_dir

# Install latest cmake
echo "Installing latest cmake"
mkdir temp_dir && cd temp_dir
wget https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz
tar xf cmake-3.8.0.tar.gz
cd cmake-3.8.0
./configure
make --quiet -j8
sudo make install
cd ../../
rm -rf temp_dir

# Call the ros-install script here
echo "Installing ROS"
sudo chmod +x ros_install.sh
bash ros_install.sh

cd $workspace_dir
source "/opt/ros/jade/setup.bash"

cd src