https://github.com/Choaib-ELMADI/getting-started-with-ros
Learn the Robot Operating System (ROS), including both ROS1 Noetic and ROS2 Humble, installation and essential commands.
https://github.com/Choaib-ELMADI/getting-started-with-ros
cpp debian-linux linux python robot robot-operating-system robotics ros ros1 ros1-noetic ros2 ros2-humble ubuntu
Last synced: 8 months ago
JSON representation
Learn the Robot Operating System (ROS), including both ROS1 Noetic and ROS2 Humble, installation and essential commands.
- Host: GitHub
- URL: https://github.com/Choaib-ELMADI/getting-started-with-ros
- Owner: Choaib-ELMADI
- Created: 2024-07-03T18:25:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-24T15:58:29.000Z (about 1 year ago)
- Last Synced: 2024-10-12T17:42:01.556Z (12 months ago)
- Topics: cpp, debian-linux, linux, python, robot, robot-operating-system, robotics, ros, ros1, ros1-noetic, ros2, ros2-humble, ubuntu
- Language: Makefile
- Homepage:
- Size: 2.45 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://elmadichoaib.vercel.app) 
# ROS: Robot Operating System
ROS is a set of software libraries and tools that help you build robot applications.


## Requirements
- **Operating System**: Debian-based distribution, here I used Ubuntu 20.04.6 LTS.
- **ROS Version**: ROS Noetic, latest version of ROS 1.## ROS Noetic Installation and Setup
### 1. Make sure that your OS is installed correctly.
### 2. Setup your sources.list:
```bash
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
```### 3. Set up your keys:
```bash
sudo apt install curl
``````bash
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
```### 4. Installation:
```bash
sudo apt update
``````bash
sudo apt upgrade
```#### **Desktop-Full Install (Recommended)**:
```bash
sudo apt install ros-noetic-desktop-full
```### 5. Environment setup:
#### In order to run ROS in different terminals, you must source the setup script in every bash terminal you use ROS in. You can do this manually in each terminal, using this command:
```bash
source /opt/ros/noetic/setup.bash
```#### Or you can add the command to your `.bashrc` file so that it is sourced automatically in every new terminal:
```bash
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
```Visit this link for more details: [Ubuntu install of ROS Noetic](https://wiki.ros.org/noetic/Installation/Ubuntu)

## Requirements
- **Operating System**: Debian-based distribution, here I used Ubuntu 20.04.6 LTS.
- **ROS Version**: ROS Foxy Fitzroy, a version of ROS 2.## ROS Foxy Installation and Setup
### 1. Make sure that your OS is installed correctly.
### 2. Set locale:
```bash
locale # check for UTF-8sudo apt update && sudo apt install 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-8locale # verify settings
```### 3. Setup sources:
```bash
sudo apt install software-properties-common
sudo add-apt-repository universe
``````bash
sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
``````bash
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
```### 4. Installation:
```bash
sudo apt update
``````bash
sudo apt upgrade
```#### **Desktop-Full Install (Recommended)**:
```bash
sudo apt install ros-foxy-desktop python3-argcomplete
```#### **Development tools**:
```bash
sudo apt install ros-dev-tools
```### 5. Environment setup:
#### In order to run ROS in different terminals, you must source the setup script in every bash terminal you use ROS in. You can do this manually in each terminal, using this command:
```bash
source /opt/ros/foxy/setup.bash
```#### Or you can add the command to your `.bashrc` file so that it is sourced automatically in every new terminal:
```bash
echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc
```Visit this link for more details: [Ubuntu install of ROS Foxy Fitzroy](https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html)