Repository navigation
Installation
angeloszacharia edited this page Sep 13, 2026
·
2 revisions
mkdir ~/omniplanner_dev_envIf you intend to use the Gazebo simulator, you will need to install the Gazebo Garden from source on Ubuntu 20.04 using the following instructions. The instructions have been taken from the original documentation here.
sudo apt install python3-pip lsb-release gnupg curl git
pip3 install vcstool
pip3 install -U colcon-common-extensionscd ~/omniplanner_dev_env
mkdir -p gazebo_garden_ws/src
cd gazebo_garden_ws/srccurl -O https://raw.githubusercontent.com/ntnu-arl/gz-sim/refs/heads/fix/position_control/collection-garden.yaml
vcs import < collection-garden.yamlsudo curl https://packages.osrfoundation.org/gazebo.gpg --output /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
sudo apt-get update
cd ~/omniplanner_dev_env/gazebo_garden_ws/src
sudo apt -y install \
$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/gz\|sdf/d' | tr '\n' ' ')NOTE: Replace the files of the
gz-simfolder with the files from this and switchgz-commonto 82a649e1 commit.
cd ~/omniplanner_dev_env/gazebo_garden_ws
colcon graph
colcon build --cmake-args -DBUILD_TESTING=OFF --merge-installsource ~/omniplanner_dev_env/gazebo_garden_ws/install/setup.bashcd ~/omniplanner_dev_env
mkdir -p ros_gz_bridge_ws/src
cd ros_gz_bridge_ws/srcgit clone git@github.com:ntnu-arl/ros_gz.git -b garden_noetic
cd ~/ros_gz_bridge_ws
catkin config --install
catkin buildNOTE: Make sure
ros_gz_bridge_wsextends~/omniplanner_dev_env/gazebo_garden_ws/installand/opt/ros/noetic.
source ~/omniplanner_dev_env/ros_gz_bridge_ws/install/setup.bashsudo apt install python3-catkin-tools \
libgoogle-glog-dev \
ros-noetic-joy \
ros-noetic-twist-mux \
ros-noetic-interactive-marker-twist-server \
ros-noetic-octomap-msgs \
ros-noetic-octomap-ros \
git-lfsmkdir -p ~/omniplanner_dev_env/omniplanner_ws/src/exploration
cd ~/omniplanner_dev_env/omniplanner_ws/src/explorationgit clone git@github.com:ntnu-arl/gbplanner_ros.gitcd ~/omniplanner_dev_env/omniplanner_ws/
vcs import < ./src/exploration/gbplanner_ros/vcstool/packages.repos
cd src/sim/subt_cave_sim
git lfs pullcatkin config -DCMAKE_BUILD_TYPE=Release
catkin buildNOTE: Make sure
omniplanner_wsextends~/omniplanner_dev_env/gazebo_garden_ws/install,~/omniplanner_dev_env/ros_gz_bridge_ws/installand/opt/ros/noetic.
source ~/omniplanner_dev_env/omniplanner_ws/devel/setup.sh