Skip to content

Commit

Permalink
Added colcon to installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
Icyadam14 committed Oct 27, 2024
1 parent 2c8d62d commit 29ed7bc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ fi
echo "Installing ROS 2 - Humble"

# Set the locale
sudo apt update && sudo apt install locales
sudo apt update && sudo apt install -y locales
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

# Ensure Ubuntu Universe repository is enabled
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt install -y software-properties-common
sudo add-apt-repository -y universe

# Add the ROS 2 GPG key
sudo apt update && sudo apt install curl -y
sudo apt update && sudo apt install -y curl
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

# Add the repository to the sources list
Expand All @@ -46,7 +46,7 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-a
# Install ROS 2 Packages
sudo apt update
sudo apt upgrade -y
sudo apt install ros-humble-desktop -y
sudo apt install -y ros-humble-desktop
echo "ROS 2 - Humble successfully installed"

#### INSTALL PYTHON DEPENDENCIES ####
Expand All @@ -58,6 +58,9 @@ sudo apt install python3.10 python3.10-dev python3.10-venv -y
# Install pip
sudo apt -y install python3-pip

# Install colcon
sudo apt install python3-colcon-common-extensions -y

# Install python packages
sudo pip3 install -r requirements.txt
echo "Python dependencies successfully installed"
Expand Down

0 comments on commit 29ed7bc

Please sign in to comment.