<commit_before>#!/bin/bash
#
# This script downloads and installs all the dependencies of packages in auv repo.
#
ROS_DISTRO=$'indigo'

STR=$'This script does not install ros
Please refer to https://github.com/AUV-IITK/AUVWiki/wiki for recommended version of ros'
echo "$STR"

echo "installing required packages"
sudo apt-get update
sudo apt-get install -y python-catkin-pkg python-rosdep ros-$ROS_DISTRO-catkin
# installing for syntax check
sudo apt-get install python-pip
sudo pip install autopep8
sudo apt-get install clang-format-3.6
source /opt/ros/$ROS_DISTRO/setup.bash
# Prepare rosdep to install dependencies.
cd ~/catkin_ws/src
rosdep update
wstool init
if [[ -f $ROSINSTALL_FILE ]] ; then wstool merge $ROSINSTALL_FILE ; fi
wstool up

echo "Installing dependencies"
sudo apt-get install -y \
ros-$ROS_DISTRO-vision-opencv \
libopencv-dev \
ros-$ROS_DISTRO-rosbash \
ros-$ROS_DISTRO-rosserial-arduino \
ros-$ROS_DISTRO-rosserial \
ros-$ROS_DISTRO-convex-decomposition \
ros-$ROS_DISTRO-pr2-description \
ros-$ROS_DISTRO-actionlib \
ros-$ROS_DISTRO-dynamic-reconfigure \
ros-$ROS_DISTRO-image-transport \
ros-$ROS_DISTRO-gazebo-ros \
ros-$ROS_DISTRO-roslint
source /opt/ros/$ROS_DISTRO/setup.bash

# package depdencies: install using rosdep.
cd ~/catkin_ws
rosdep install -y --from-paths src --ig nore-src --rosdistro $ROS_DISTRO

# setup rosserial arduino
source /opt/ros/$ROS_DISTRO/setup.bash
echo "setting up rosserial_arduino"
mkdir -p ~/sketchbook/libraries
cd ~/sketchbook/libraries
rm -rf ros_lib
rosrun rosserial_arduino make_libraries.py .

# suggest to setup environment variables
echo "Please add these to your ~/.bashrc file"
echo "source /opt/ros/kinetic/setup.sh"
echo "source /usr/share/gazebo-7/setup.sh"
echo "export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH/home/$USER/catkin_ws/src/:/home/$USER/catkin_ws/src/auv/debug_layer/varun_gazebo/models/:"<commit_msg>add gazebo specific instructions in setup.sh<commit_after>#!/bin/bash
#
# This script downloads and installs all the dependencies of packages in auv repo.
#
ROS_DISTRO=$'indigo'

STR=$'This script does not install ros
Please refer to https://github.com/AUV-IITK/AUVWiki/wiki for recommended version of ros'
echo "$STR"

echo "installing required packages"
sudo apt-get update
sudo apt-get install -y python-catkin-pkg python-rosdep ros-$ROS_DISTRO-catkin
# installing for syntax check
sudo apt-get install python-pip
sudo pip install autopep8
sudo apt-get install clang-format-3.6
source /opt/ros/$ROS_DISTRO/setup.bash
# Prepare rosdep to install dependencies.
cd ~/catkin_ws/src
rosdep update
wstool init
if [[ -f $ROSINSTALL_FILE ]] ; then wstool merge $ROSINSTALL_FILE ; fi
wstool up

echo "Installing dependencies"
sudo apt-get install -y \
ros-$ROS_DISTRO-vision-opencv \
libopencv-dev \
ros-$ROS_DISTRO-rosbash \
ros-$ROS_DISTRO-rosserial-arduino \
ros-$ROS_DISTRO-rosserial \
ros-$ROS_DISTRO-convex-decomposition \
ros-$ROS_DISTRO-pr2-description \
ros-$ROS_DISTRO-actionlib \
ros-$ROS_DISTRO-dynamic-reconfigure \
ros-$ROS_DISTRO-image-transport \
ros-$ROS_DISTRO-gazebo-ros \
ros-$ROS_DISTRO-roslint
source /opt/ros/$ROS_DISTRO/setup.bash

# package depdencies: install using rosdep.
cd ~/catkin_ws
rosdep install -y --from-paths src --ig nore-src --rosdistro $ROS_DISTRO

# setup rosserial arduino
source /opt/ros/$ROS_DISTRO/setup.bash
echo "setting up rosserial_arduino"
mkdir -p ~/sketchbook/libraries
cd ~/sketchbook/libraries
rm -rf ros_lib
rosrun rosserial_arduino make_libraries.py .

# suggest to setup environment variables
echo "Please add these to your ~/.bashrc file"
echo "source /opt/ros/kinetic/setup.sh"
echo "source /usr/share/gazebo-7/setup.sh"
echo "For using gazebosim on your system plz install and configure these settings"
echo "export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH/home/$USER/catkin_ws/src/:/home/$USER/catkin_ws/src/auv/debug_layer/varun_gazebo/models/:"
echo "Please download camera model from http://models.gazebosim.org/camera/ and place in ~/.gazebo/models directory"
{'fraction_non_alphanumeric': 0.10808106079559669, 'fraction_numerical': 0.002501876407305479, 'mean_word_length': 4.752517985611511, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7080017', 'n_tokens_mistral': 1541, 'n_tokens_neox': 1420, 'n_words': 357}