Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:ros:installation [2020/03/23 08:52] tomykalmen:ros:installation [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
 ====== Installation and Configuration ====== ====== Installation and Configuration ======
 +There are many different versions of ROS. The latest version long term support(LTS) is currently ROS Noetic Ninjemys. For choosing the distribution or version you should consider your application. you can find useful information about choosing the right version on this page: http://wiki.ros.org/Distributions. 
 +===== Installing ROS =====
 +Based on our application which is the autonomous vehicle we opt for ROS Melodic. Most versions of the packages work on this version, so this version is also used in this tutorial. ROS Melodic is primarily designed to run on the [[https://releases.ubuntu.com/18.04/|Ubuntu 18.04 LTS]] operating system. ROS can also be run in a separate [[https://www.docker.com/|Docker]] container. This allows ROS to run on many different operating systems and simplifies the management and development of robot software.
  
-{{:et:ros:introducing-the-new-ros-integrated-segway-rmp-line1-731x265.jpg?300|}}+The development of ROS2 is already underway. You can read more about it at the official sitehttps://index.ros.org/doc/ros2/.
  
-====== Install ROS ====== +To make ROS easier to install on Ubuntu 18.04, an automated installation script has been created, which will run automatically to install all required packages. To run the installation script, use the following command on the terminal: 
-The first step is to install the ROS system on your computer according to the [[http://wiki.ros.org/kinetic/Installation/Ubuntu| instructions] on the ROS homepage.+  $ sudo apt update 
 +  $ sudo apt upgrade 
 +  $ wget https://raw.githubusercontent.com/ROBOTIS-GIT/robotis_tools/master/install_ros_melodic.sh 
 +  $ chmod 755 ./install_ros_melodic.sh  
 +  $ bash ./install_ros_melodic.sh''
  
-There are many different versions of ROS. The latest version is currently ROS Melodic Morenia. Long Term Support (LTS) is version [[http://wiki.ros.org/kinetic|ROS Kinetic Kame]]. Most versions of the packages work on this version, so this version is also used in this tutorial. ROS Kinetic is primarily designed to run on the [[http://releases.ubuntu.com/16.04/|Ubuntu 16.04 LTS]] operating system. ROS can also be run in a separate [[https://www.docker.com/|Docker]] container. This allows ROS to run on many different operating systems and simplifies the management and development of robot software. 
  
-The development of ROS2 is already underwayYou can read more about it [[https://index.ros.org/doc/ros2/|here]].+===== Working Environment ===== 
 +One of the important working elements is the ROS working environmentIt defines the context for the current workspace and you can also overlay different environments. Default workspace loaded with: 
 +  $ source /opt/ros/melodic/setup.bash
  
-To make ROS easier to install on Ubuntu 16.04, an automated installation script has been created, which will run automatically to install all required packages. 
  
-To run the installation script, use the following command on the terminal:+To create a new working environment; Create a folder named // catkin_ws//. If you used an automatic install script, you can skip creating a folder:
  
-   wget https://raw.githubusercontent.com/oroca/oroca-ros-pkg/master/ros_install.sh && sudo chmod 755 ./ros_install.sh && ./ros_install.sh catkin_ws kinetic +   $ mkdir -p ~/catkin_ws/src # Create folders ~/catkin_ws/src
- +
-====== Create a new working environment ====== +
- +
-Create a folder named // catkin_ws //. If you used an automatic install script, you can skip creating a folder: +
- +
-   $ mkdir -p ~/catkin_ws/src #Create folders ~/catkin_ws/src+
  
 Compile //catkin// workspace: Compile //catkin// workspace:
-   $ cd ~/catkin_ws/ #Go to folder ~/catkin_ws/ +   $ cd ~/catkin_ws/ # Go to folder ~/catkin_ws/ 
-   $ catkin_make #compile the computing environment+   $ catkin_make # compile the computing environment
  
-command //catkin_make// is a handy tool for managing catkin workspaces. When you run this command, //CMakeLists.txt// is created and linked to the //src// folder. The //build// and //devel// folders are also created. +command //catkin_make// is a handy tool for managing catkin workspaces. When you run this command, //CMakeLists.txt// is created and linked to the //src// folder. The //build// and //devel// folders are also created. Looking at the //devel// folder, you see that there are some *.sh files (//shell script//) in the folder:
- +
-looking at the //devel// folder, you see that there are some *.sh files (//shell script//) in the folder:+
  
    $ ls -l devel    $ ls -l devel
Line 34: Line 33:
 When extracting these files (//source//), the workspace variables are used. After that, packages in the workspace can be launched. When extracting these files (//source//), the workspace variables are used. After that, packages in the workspace can be launched.
  
-Use the work environment you created earlier:+From the work environment you created earlier (catkin_ws) run this command:
  
    $ source devel/setup.bash    $ source devel/setup.bash
Line 41: Line 40:
  
    $ echo $ROS_PACKAGE_PATH    $ echo $ROS_PACKAGE_PATH
-   /home/youruser/catkin_ws/src:/opt/ros/kinetic/share+   /home/youruser/catkin_ws/src:/opt/ros/melodic/share
  
 Since multiple terminal windows are usually required to use ROS, and it would be tedious to use the workspace every time we add a //.baschrc// line that automatically takes our workspace when we open a new terminal window: Since multiple terminal windows are usually required to use ROS, and it would be tedious to use the workspace every time we add a //.baschrc// line that automatically takes our workspace when we open a new terminal window:
  
-   echo 'source ~/catkin_ws/devel/setup.bash' >> ~/.bashrc+   echo 'source ~/catkin_ws/devel/setup.bash' >> ~/.bashrc
  
 Your ROS environment is now configured and will be deployed automatically. Next, explore the ROS file system. Your ROS environment is now configured and will be deployed automatically. Next, explore the ROS file system.
 +===== Useful Tools =====
 +There are a bunch of programming tools and software that really facilitate working with ROS and programming. Here we suggest Terminator as an alternative to the default ubuntu Terminal and Visual Studio Code as a good IDE (Integrated Development Environment).
 +
 +==== Terminator ====
 +Terminator is an alternative terminal for Linux that comes with a few additional features and functionality that you won't find in the default terminal application. For instance, in Terminator you can split your terminal screen both horizontally and vertically as you wish. The user can also have multiple terminals in one window and use custom key bindings to switch between them.
 +
 +{{ :en:ros:terminator.png?500 |}}
 +
 +for installing the Terminator, run these commands in the terminal.
 +  $ sudo add-apt-repository ppa:gnome-terminator
 +  $ sudo apt-get update
 +  $ sudo apt-get install terminator
 +Now you can open a new Terminal by "Ctrl + Alt + T" and for splitting the terminal screen right-click on the terminal and use split.
 +
 +==== Visual Studio Code ====
 +Visual Studio Code is a freeware source-code editor made by Microsoft for Windows, Linux, and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.
 +
 +{{ :en:ros:opengraph-home.png?500 |}}
 +
 +For installing the VSCode you can follow the instruction on the Doc page:
 +
 +  https://code.visualstudio.com/docs/setup/linux
 +
 +
 +
 +
en/ros/installation.1584953549.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0