{"id":8633,"date":"2021-07-30T08:56:35","date_gmt":"2021-07-30T08:56:35","guid":{"rendered":"https:\/\/linuxways.net\/?p=8633"},"modified":"2021-07-30T08:56:35","modified_gmt":"2021-07-30T08:56:35","slug":"how-to-install-ros-noetic-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-ros-noetic-on-ubuntu-20-04-lts\/","title":{"rendered":"How to Install ROS Noetic on Ubuntu 20.04 LTS"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>ROS (Robot Operating System) is an open-source robotics software framework. It helps design complex software without having a good understanding of the hardware.<\/p>\n<p>Noetic is the new LTS release of ROS compatible with Ubuntu 20.04. It was announced on May 23rd. 2020 and you will get its support up to 2025.<\/p>\n<p>Below is the guide on how to install ROS Noetic on Ubuntu 20.04 LTS.<\/p>\n<h2>Step 1 &#8211; Setup ROS Noetic repo<\/h2>\n<p>Firstly, we need to add Noetic repo to source.list:<\/p>\n<pre>$ echo \"deb http:\/\/packages.ros.org\/ros\/ubuntu focal main\" | sudo tee \/etc\/apt\/sources.list.d\/ros-focal.list<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2008\" height=\"152\" class=\"wp-image-8634\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-629.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-629.png 2008w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-629-300x23.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-629-1024x78.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-629-768x58.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-629-1536x116.png 1536w\" sizes=\"auto, (max-width: 2008px) 100vw, 2008px\" \/><\/p>\n<h2>Step 2 &#8211; Add official ROS keyring<\/h2>\n<p>Run apt-key command:<\/p>\n<pre>$ sudo apt-key adv --keyserver 'hkp:\/\/keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1598\" height=\"292\" class=\"wp-image-8635\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-630.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-630.png 1598w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-630-300x55.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-630-1024x187.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-630-768x140.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-630-1536x281.png 1536w\" sizes=\"auto, (max-width: 1598px) 100vw, 1598px\" \/><\/p>\n<p>You can also use the curl:<\/p>\n<pre>$ curl -sSL 'http:\/\/keyserver.ubuntu.com\/pks\/lookup?op=get&amp;search=0xC1CF6E31E6BADE8868B172B4F42ED6FBAB17C654' | sudo apt-key add -<\/pre>\n<p>Output: <img loading=\"lazy\" decoding=\"async\" width=\"1598\" height=\"146\" class=\"wp-image-8636\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-631.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-631.png 1598w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-631-300x27.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-631-1024x94.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-631-768x70.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-631-1536x140.png 1536w\" sizes=\"auto, (max-width: 1598px) 100vw, 1598px\" \/> If the output appears \u201cOK\u201d, it means you have added the key successfully.<\/p>\n<h2>Step 3 &#8211; Update the ROS package index<\/h2>\n<p>Run apt update:<\/p>\n<pre>$ sudo apt update<\/pre>\n<h2>Step 4 &#8211; Install ROS Noetic package<\/h2>\n<p>The official ROS Noetic has 4 metapackages:<\/p>\n<ul>\n<li>ros-noetic-desktop-full<\/li>\n<li>ros-noetic-desktop<\/li>\n<li>ros-noetic-ros-base<\/li>\n<li>ros-noetic-ros-core<\/li>\n<\/ul>\n<p>We recommend you should use <strong>ros-noetic-desktop-full <\/strong>to get the full experience. Let\u2019s choose a package you want.<\/p>\n<ol>\n<li><strong>To install<\/strong> <strong>ros-noetic-desktop-full <\/strong><\/li>\n<\/ol>\n<p>Run apt command:<\/p>\n<pre>$ sudo apt install ros-noetic-desktop-full<\/pre>\n<ol>\n<li><strong>To install ros-noetic-desktop<\/strong><\/li>\n<\/ol>\n<p><strong>ros-noetic-desktop<\/strong> has 8 packages: vis, angles, common_tutorials, geometry_tutorials, ros_tutorials, roslint, urdf_tutorial and visualization_tutorials.<\/p>\n<pre>$ sudo apt install ros-noetic-desktop<\/pre>\n<ol>\n<li><strong>To install ros-noetic-base<\/strong><\/li>\n<\/ol>\n<pre>$ sudo apt install ros-noetic-base<\/pre>\n<ol>\n<li><strong>To install ros-noetic-core<\/strong><\/li>\n<\/ol>\n<pre>$ sudo apt install ros-noetic-core<\/pre>\n<h2>Step 5 &#8211; Set up ROS Noetic environment<\/h2>\n<p>You need to run the setup.bash file:<\/p>\n<pre>$ source \/opt\/ros\/noetic\/setup.bash<\/pre>\n<p>You should add it in the .bashrc file located in the home directory To avoid run the command above every time:<\/p>\n<pre>$ echo \"source \/opt\/ros\/noetic\/setup.bash\" &gt;&gt; ~\/.bashrc<\/pre>\n<p>Run tail ~\/.bashrc to verify:<\/p>\n<pre>$ tail ~\/.bashrc<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1416\" height=\"434\" class=\"wp-image-8637\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-632.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-632.png 1416w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-632-300x92.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-632-1024x314.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-632-768x235.png 768w\" sizes=\"auto, (max-width: 1416px) 100vw, 1416px\" \/><\/p>\n<p>To make it take effect, run:<\/p>\n<pre>$ source ~\/.bashrc<\/pre>\n<h2>Step 6 &#8211; Verify Noetic installation<\/h2>\n<p>You can run roscd command to check if the installation was successful:<\/p>\n<pre>$ roscd<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1330\" height=\"74\" class=\"wp-image-8638\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-633.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-633.png 1330w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-633-300x17.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-633-1024x57.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-633-768x43.png 768w\" sizes=\"auto, (max-width: 1330px) 100vw, 1330px\" \/><\/p>\n<p>You can see where we have installed noetic in <strong>\/opt\/ros\/noetic<\/strong><\/p>\n<p>You can also use roscore to verify noetic installation:<\/p>\n<pre>$ roscore<\/pre>\n<p>Output:<\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" width=\"1592\" height=\"976\" class=\"wp-image-8639\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-634.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-634.png 1592w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-634-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-634-1024x628.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-634-768x471.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-634-1536x942.png 1536w\" sizes=\"auto, (max-width: 1592px) 100vw, 1592px\" \/><\/h2>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve already gone through the details of how to install ROS Noetic on Ubuntu 20.04 LTS. Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction ROS (Robot Operating System) is an open-source robotics software framework. It helps design complex software without having a good understanding of the hardware. Noetic is the new&hellip;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[441],"class_list":["post-8633","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-ros-noetic"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8633"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8633\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}