Skip to content

Instantly share code, notes, and snippets.

@lieuzhenghong
Last active September 22, 2020 09:38
Show Gist options
  • Save lieuzhenghong/966e5cc28de599dcf10afc9f25d32a71 to your computer and use it in GitHub Desktop.
Save lieuzhenghong/966e5cc28de599dcf10afc9f25d32a71 to your computer and use it in GitHub Desktop.
# On a new EC2 instance:
# Setup locale
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
# Setup sources
sudo apt update && sudo apt install curl gnupg2 lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
# Add repository to sources list
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
sudo apt update
# Install ros-base
sudo apt install ros-eloquent-ros-base
# Ignition-Gazebo Sources
curl -s http://packages.osrfoundation.org/gazebo.key | sudo apt-key add -
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
# Now installing RMF
# Adding RMF package sources:
curl -s http://rmf.servehttp.com/repos.key | sudo apt-key add -
sudo sh -c 'echo "deb http://rmf.servehttp.com/ubuntu/main/ bionic main" > /etc/apt/sources.list.d/rmf.list'
sudo apt-get update
# "Finally, the following installs a basic set of packages that should get you going with RMF:"
sudo apt-get install ros-eloquent-ament-cmake-catch2 ros-eloquent-building-gazebo-plugins ros-eloquent-building-map-msgs ros-eloquent-building-map-tools ros-eloquent-rmf-cmake-uncrustify ros-eloquent-rmf-dispenser-msgs ros-eloquent-rmf-door-msgs ros-eloquent-rmf-fleet-adapter ros-eloquent-rmf-fleet-msgs ros-eloquent-rmf-lift-msgs ros-eloquent-rmf-task-msgs ros-eloquent-rmf-traffic-msgs ros-eloquent-rmf-traffic-ros2 ros-eloquent-rmf-traffic ros-eloquent-rmf-utils ros-eloquent-traffic-editor
# Source
source /opt/ros/eloquent/setup.bash
# If this doesn't work, make bash the shell: run sudo dpkg-reconfigure dash
# Now installing RMF demos (I think the server can't do this though)
sudo apt-get install ros-eloquent-demos
ros2 run building_map_tools model_downloader rmf_demo_maps -s airport_terminal
ros2 launch demos airport_terminal.launch.xml
ros2 run demos airport_terminal_spawn_robots.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment