Created
May 22, 2024 04:05
-
-
Save bugparty/2c98a7b1dcadcfb9d9052abc193fb9c9 to your computer and use it in GitHub Desktop.
script to install ros1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Exit immediately if a command exits with a non-zero status | |
set -e | |
# Setup sources.list | |
echo "Setting up 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' | |
# Setup your keys | |
echo "Setting up keys" | |
sudo apt install -y curl | |
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - | |
# Update package index | |
echo "Updating package index" | |
sudo apt-get update | |
# Install ROS desktop full | |
echo "Installing ROS Noetic desktop full" | |
sudo apt-get install -y ros-noetic-desktop-full | |
# Environment setup | |
echo "Setting up environment" | |
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc | |
source ~/.bashrc | |
# Install more dependencies and install rosdep | |
echo "Installing additional dependencies and rosdep" | |
sudo apt install -y python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential | |
# Initialize rosdep | |
echo "Initializing rosdep" | |
sudo apt install -y python3-rosdep | |
sudo rosdep init | |
rosdep update | |
echo "ROS Noetic installation completed successfully!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment