2015-01-07 08:48:20 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# main ROS Setup
|
|
|
|
# following http://wiki.ros.org/indigo/Installation/Ubuntu
|
2015-01-16 13:21:06 -04:00
|
|
|
# also adding dependencies for gazebo http://gazebosim.org/tutorials?tut=drcsim_install
|
2015-01-07 08:48:20 -04:00
|
|
|
# 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'
|
2015-01-16 13:21:06 -04:00
|
|
|
sudo sh -c 'echo "deb http://packages.osrfoundation.org/drc/ubuntu trusty main" > /etc/apt/sources.list.d/drc-latest.list'
|
2015-01-07 08:48:20 -04:00
|
|
|
|
|
|
|
## add key
|
|
|
|
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | \
|
|
|
|
sudo apt-key add -
|
2015-01-16 13:21:06 -04:00
|
|
|
wget http://packages.osrfoundation.org/drc.key -O - | sudo apt-key add -
|
2015-01-07 08:48:20 -04:00
|
|
|
|
|
|
|
## 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
|
2015-01-16 07:10:33 -04:00
|
|
|
|
|
|
|
# additional dependencies necessary
|
|
|
|
sudo apt-get install ros-indigo-octomap-msgs
|
2015-01-16 13:21:06 -04:00
|
|
|
sudo apt-get install drcsim
|
2015-01-16 07:10:33 -04:00
|
|
|
|