<commit_before>#!/bin/bash

function print_and_run {
	echo $1
	#$1
}

# Some dependencies are in generic
echo "You need to have installed Xcode, brew, pip and Xquartz (cf generic_install)"
read -p "Press [ENTER] once it's done..."

# install ROS (wiki.ros.org/indigo/Installation/OSX/Homebrew/Source)
echo "Installing ros"
# setting up tools
print_and_run 'brew install cmake'
print_and_run 'brew tap ros/deps'
print_and_run 'brew tap osrf/simulation'
print_and_run 'brew tap homebrew/versions'
print_and_run 'brew tap homebrew/science'
print_and_run 'sudo pip install -U wstool rosdep rosinstall rosinstall_generator rospkg catkin-pkg Distribute sphinx'
print_and_run 'sudo rosdep init'
print_and_run 'rosdep update'
# create workspace
print_and_run 'mkdir ~/ros_catkin_ws'
print_and_run 'cd ~/ros_catkin_ws'
# create list of packages
print_and_run 'rosinstall_generator desktop --rosdistro indigo --deps --wet-only --tar > indigo-desktop-wet.rosinstall'
## using hydro version of rviz since indigo version requires ogre1.8+ but not readily available
print_and_run 'rosinstall_generator rviz --rosdistro hydro --wet-only --tar >> indigo-desktop-wet.rosinstall'
# getting source
print_and_run 'wstool init -j8 src indigo-desktop-wet.rosinstall'
# installing dependency
print_and_run 'rosdep install --from-paths src --ignore-src --rosdistro indigo -y'
# prepare compilation
echo "Remove tinyxml in src/image_common/image_transport/CMakeLists.txt"
read -p "Press [ENTER] once it's done..."
echo "Remove log4cxx (two times) in src/robot_state_publisher/CMakeLists.txt"
read -p "Press [ENTER] once it's done..."
echo "You may need to check https://github.com/ros-visualization/rviz/pull/825 for rviz to compile."
read -p "Press [ENTER] once it's done..."
# actual compilation
print_and_run './src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release'
# environment settings
print_and_run 'source ~/.ros_catkin_ws/install_isolated/setup.bash'
echo "Permanent ROS environment settings"
print_and_run 'echo "# ROS setup" >> ~/.profile'
print_and_run 'echo "source ~/ros_catkin_ws/install_isolated/setup.bash" >> ~/.profile'
<commit_msg>preventing issue with rosdep for urdfdom<commit_after>#!/bin/bash

function print_and_run {
	echo $1
	#$1
}

# Some dependencies are in generic
echo "You need to have installed Xcode, brew, pip and Xquartz (cf generic_install)"
read -p "Press [ENTER] once it's done..."

# install ROS (wiki.ros.org/indigo/Installation/OSX/Homebrew/Source)
echo "Installing ros"
# setting up tools
print_and_run 'brew install cmake'
print_and_run 'brew tap ros/deps'
print_and_run 'brew tap osrf/simulation'
print_and_run 'brew tap homebrew/versions'
print_and_run 'brew tap homebrew/science'
print_and_run 'sudo pip install -U wstool rosdep rosinstall rosinstall_generator rospkg catkin-pkg Distribute sphinx'
print_and_run 'sudo rosdep init'
print_and_run 'rosdep update'
# create workspace
print_and_run 'mkdir ~/ros_catkin_ws'
print_and_run 'cd ~/ros_catkin_ws'
# create list of packages
print_and_run 'rosinstall_generator desktop --rosdistro indigo --deps --wet-only --tar > indigo-desktop-wet.rosinstall'
## using hydro version of rviz since indigo version requires ogre1.8+ but not readily available
print_and_run 'rosinstall_generator rviz --rosdistro hydro --wet-only --tar >> indigo-desktop-wet.rosinstall'
# getting source
print_and_run 'wstool init -j8 src indigo-desktop-wet.rosinstall'
# installing dependency
print_and_run 'rosdep install -r --from-paths src --ignore-src --rosdistro indigo -y'
# prepare compilation
echo "Remove tinyxml in src/image_common/image_transport/CMakeLists.txt"
read -p "Press [ENTER] once it's done..."
echo "Remove log4cxx (two times) in src/robot_state_publisher/CMakeLists.txt"
read -p "Press [ENTER] once it's done..."
echo "You may need to check https://github.com/ros-visualization/rviz/pull/825 for rviz to compile."
read -p "Press [ENTER] once it's done..."
# actual compilation
print_and_run './src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release'
# environment settings
print_and_run 'source ~/.ros_catkin_ws/install_isolated/setup.bash'
echo "Permanent ROS environment settings"
print_and_run 'echo "# ROS setup" >> ~/.profile'
print_and_run 'echo "source ~/ros_catkin_ws/install_isolated/setup.bash" >> ~/.profile'

{'fraction_non_alphanumeric': 0.1043498380379454, 'fraction_numerical': 0.0041647385469689956, 'mean_word_length': 5.229106628242075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '863021', 'n_tokens_mistral': 1499, 'n_tokens_neox': 1438, 'n_words': 434}