px4-firmware/Tools/ros/px4_ros_installation_ubuntu.sh

42 lines
1.2 KiB
Bash
Raw Normal View History

2015-01-07 08:48:20 -04:00
#!/bin/sh
2015-02-01 07:55:15 -04:00
# License: according to LICENSE.md in the root directory of the PX4 Firmware repository
2015-01-07 08:48:20 -04:00
# main ROS Setup
# following http://wiki.ros.org/indigo/Installation/Ubuntu
2015-01-19 02:47:12 -04:00
# also adding drcsim 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'
## 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 -y install ros-indigo-desktop-full
2015-01-07 08:48:20 -04:00
sudo rosdep init
rosdep update
## Setup environment variables
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
2015-01-19 02:47:12 -04:00
. ~/.bashrc
2015-01-07 08:48:20 -04:00
# get rosinstall
sudo apt-get -y install python-rosinstall
2015-01-19 02:47:12 -04:00
# additional dependencies
sudo apt-get -y install ros-indigo-octomap-msgs ros-indigo-joy
2015-01-19 02:47:12 -04:00
## drcsim setup (for models)
### add osrf repository
sudo sh -c 'echo "deb http://packages.osrfoundation.org/drc/ubuntu trusty main" > /etc/apt/sources.list.d/drc-latest.list'
### add key
wget http://packages.osrfoundation.org/drc.key -O - | sudo apt-key add -
### install drcsim
sudo apt-get update
sudo apt-get -y install drcsim