Skip to content

Instructions for installing ROS Noetic on Ubuntu 22.04

Notifications You must be signed in to change notification settings

lesaf92/ros_noetic_ubuntu22

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

ROS Noetic on Ubuntu 22.04

Instructions for installing ROS Noetic on Ubuntu 22.04

Install

  1. Install utils
sudo apt-get install htop python3-pip net-tools curl
  1. Install mamba
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge-$(uname)-$(uname -m).sh
  1. Install and configure robostack
mamba create -n ros_env python=3.9 -c conda-forge
mamba activate ros_env
conda config --env --add channels conda-forge
conda config --env --add channels robostack-staging
# remove the defaults channel just in case, this might return an error if it is not in the list which is ok
conda config --env --remove channels defaults
mamba install ros-noetic-desktop-full
mamba install catkin_tools
mamba install rosdep
rosdep init
rosdep update
  1. Put at the end of your bashrc file
conda deactivate
conda activate ros_env
  1. Open a new terminal and test roscore, if everything went fine ROS should be installed successfully
  2. Always do the following steps in the ros_env environment
  3. Install the necessary ROS packages using conda install -c robostack <package>, eventually it will ask for installing additional packages, just confirm and carry on
conda install -c robostack ros-noetic-gmapping
conda install -c robostack ros-noetic-amcl
conda install -c robostack ros-noetic-move-base
conda install -c robostack ros-noetic-map-server
conda install -c robostack ros-noetic-turtlebot3-teleop

... (still updating)

Creating catkin workspace

After ROS and all packages are installed, create a catkin workspace to enable local custom packages

  1. Create the folder and initialization
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws
catkin_make
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
  1. In a new terminal, download or clone to catkin_ws/src the folder rmp_2023 in this repository
  2. Go back to catkin_ws and run catkin_make
  3. Launch the rmp_test file to start a Gazebo simulation. You should see the Pioneer2DX robot in the "shapes" environment (see image below)
roslaunch rmp_2023 rmp_test.launch

Alt text

The installation is now complete

Disabling env (in case ROS is not needed anymore)

To prevent loading the env for every new terminal session, comment the section below in your bashrc

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/luiz/mambaforge/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/luiz/mambaforge/etc/profile.d/conda.sh" ]; then
        . "/home/luiz/mambaforge/etc/profile.d/conda.sh"
    else
        export PATH="/home/luiz/mambaforge/bin:$PATH"
    fi
fi
unset __conda_setup

if [ -f "/home/luiz/mambaforge/etc/profile.d/mamba.sh" ]; then
    . "/home/luiz/mambaforge/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
conda deactivate
conda activate ros_env

Uninstall

Follow instructions here

About

Instructions for installing ROS Noetic on Ubuntu 22.04

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published