Last active
January 10, 2020 15:42
-
-
Save sequoiap/8e1b00c31a0b02713f64f2ca5e847444 to your computer and use it in GitHub Desktop.
A script for setting up the ros workspace for the BYU UAS team
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Ubuntu 18.04 Melodic | |
# INSTALL ROS | |
# Setup your sources.list | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
# Set up your keys | |
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | |
# Installation | |
sudo apt update | |
sudo apt install ros-melodic-desktop-full | |
# Initialize rosdep | |
sudo rosdep init | |
rosdep update | |
# Environment setup | |
source /opt/ros/melodic/setup.bash | |
# Dependencies for building packages | |
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential | |
# Install git | |
sudo apt install git | |
# Install python3 with some packages | |
sudo apt install python3 python3-pip | |
pip3 install numpy matplotlib | |
# Create the UAS workspace | |
cd ~ | |
mkdir -p ros/uas_ws/src | |
cd ros/uas_ws | |
catkin_make | |
cd src | |
# Clone the necessary repositories | |
git clone https://github.com/inertialsense/inertial_sense_ros.git | |
cd inertial_sense_ros | |
git submodule update --init --recursive | |
cd ../ | |
git clone https://github.com/BYU-AUVSI/metis.git | |
git clone https://github.com/BYU-AUVSI/rosflight.git | |
git clone https://github.com/byu-magicc/rosflight_plugins.git | |
git clone https://github.com/BYU-AUVSI/ros_groundstation.git | |
sudo apt-get install python-pip | |
pip install geographiclib | |
git clone https://github.com/BYU-AUVSI/rosplane.git | |
git clone https://github.com/BYU-AUVSI/uav_msgs.git | |
git clone https://github.com/BYU-AUVSI/interop_pkg.git | |
# You may also need to install eigen-stl-containers | |
sudo apt install ros-melodic-eigen-stl-containers | |
# Make the workspace | |
cd ../ | |
catkin_make | |
source devel/setup.bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current branches: