diff options
Diffstat (limited to 'Tools/ros/px4_ros_installation_ubuntu.sh')
-rwxr-xr-x | Tools/ros/px4_ros_installation_ubuntu.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Tools/ros/px4_ros_installation_ubuntu.sh b/Tools/ros/px4_ros_installation_ubuntu.sh new file mode 100755 index 000000000..c6f27653c --- /dev/null +++ b/Tools/ros/px4_ros_installation_ubuntu.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# main ROS Setup +# following http://wiki.ros.org/indigo/Installation/Ubuntu +# run this file with . ./px4_ros_setup_ubuntu.sh + +## add ROS repository +sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list' + +## add key +wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | \ + sudo apt-key add - + +## Install main ROS pacakges +sudo apt-get update +sudo apt-get install ros-indigo-desktop-full +sudo rosdep init +rosdep update + +## Setup environment variables +echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc +source ~/.bashrc + +# get rosinstall +sudo apt-get install python-rosinstall + +# Hector packages +sudo apt-get install ros-indigo-hector-quadrotor \ + ros-indigo-octomap-msgs \ + ros-indigo-hector-gazebo + |