Skip to content

Instantly share code, notes, and snippets.

@sequoiap
Last active January 10, 2020 15:42
Show Gist options
  • Save sequoiap/8e1b00c31a0b02713f64f2ca5e847444 to your computer and use it in GitHub Desktop.
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
# 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
@sequoiap
Copy link
Author

Current branches:

  • metis: pkg-reorg
  • ros_groundstation: visual_improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment