From 8f444ae308bc94f0421575acf7082b5bd9ad6862 Mon Sep 17 00:00:00 2001 From: kvmanohar22 Date: Sat, 9 Dec 2017 21:58:33 +0530 Subject: [PATCH 1/2] Adding installation file --- setup.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100644 index 00000000..02fe4041 --- /dev/null +++ b/setup.sh @@ -0,0 +1,50 @@ +#! /bin/bash +set -e +if [ "$#" -ne 1 ]; then + echo "usage: ./install.sh " + 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 From f32b141cd81bc7ab07e8abfbed7dd279a65dc2c7 Mon Sep 17 00:00:00 2001 From: kvmanohar22 Date: Sun, 10 Dec 2017 23:44:46 +0530 Subject: [PATCH 2/2] Adding kill file --- kgpkubs_launch/scripts/kill.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 kgpkubs_launch/scripts/kill.sh diff --git a/kgpkubs_launch/scripts/kill.sh b/kgpkubs_launch/scripts/kill.sh new file mode 100644 index 00000000..cfde29a4 --- /dev/null +++ b/kgpkubs_launch/scripts/kill.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# End all the processes in screens +# +killall -15 screen +killall roscore \ No newline at end of file