Step 1: What We Need:
This will mainly work on Ubuntu 20.04 OS
Support till 2025 May.
Name of the ROS: Noetic
For the complete installation step-by-step, you can watch the video given below
Step 2: Commands
Here are the commands to be used one after the other.
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt install curl # if you haven't already installed curl
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
The above commands add the ROS to the aptitude manager and we can now install ROS1 with simple commands
$ sudo apt update
$ sudo apt install build-essential autoconf automake libxmu-dev
$ sudo apt install ros-noetic-desktop-full
The above command needs 370MB of software to be downloaded.
So the complete package of ROS installed.
We need some more packages to be installed that can create our own workspaces and manage our own workspaces, here are the following packages.
$ sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool
$ sudo rosdep init
$ rosdep update
Step 3: Set the path information
Now set the path for a bash file.
Open the .bashrc file from the home folder and set the following line
Open the above file using the command
$ cd
$ gedit .bashrc
Go to the end of the file and paste the following line
source /opt/ros/noetic/setup.bash
ROS path setting and logout and login back... or restart the system.
Thats it...
We have installed ROS1 Noetic successfully in Ubuntu 20.04
To check whether it's working or not... run the following commands.
$ rosrun
$ roslaunch
$ rosmsgs
$ rqt_graph
$ rostopic
If these commands are recognised, then ROS is installed successfully.
Comments
Post a Comment