Ubuntu installation Ros Tutorial 1, configuring Ubuntu software source
Configuring Ubuntu requires a software source that accepts restricted, universe, and multiverse, which can be configured according to the following link:
Https://help.ubuntu.com/community/Repositories/Ubuntu
Configured as shown, these configurations are, in general, default.
2. Add software Source to Sources.list
The code for setting up the software source is as follows:
' echo "Deb Http://packages.ros.org/ros/ubuntu trusty main" >/etc/apt/sources.list.d/ros-latest.list '
Once the correct software source is added, the operating system knows where to download the program and automatically installs the software according to the command.
3. Set the key
$ wget http:///packages.ros.org/ros.key-o-| sudo apt-key add-
4. Installation
First verify that your Debian package index is up-to-date. The Debian program is a cooperative organization dedicated to creating a free operating system. The operating system that we created is named Debian. The Debian system currently uses the Linux kernel or the FreeBSD kernel.
$ sudo apt-get update
There are many different function libraries and tools in Ros, which are recommended to be fully installed or installed separately according to your requirements. Fully installed tools include Ros, RQT, visual environment Rviz, General Robotics Library Robot-generic libraries, 2D (e.g. stage) and 3D (e.g. gazebo) simulation environment 2d/3d simulators, The navigation Feature Pack sets navigation and 2d/3d (move, position, map drawing, robotic arm control), perceptual library perception (such as vision, LiDAR, rgb-d camera, etc.).
$ sudo apt-get Install Ros-indigo-desktop-full
5. Initialize ROSDEP
ROSDEP not only makes it easier for you to install some system-dependent packages, but some of the main components of ROS also need to be ROSDEP.
$ sudo rosdep init$ rosdep update
6, Installation Rosinstall
The Rosinstall command is a very frequent command that allows you to easily download many Ros packages using this command.
$ sudo apt-get Install Python-rosinstall
7. Setting up the environment
Add ROS environment variables so that when you open your new shell, your bash session will automatically add environment variables.
" Source/opt/ros/indigo/setup.bash " >> ~/~/.BASHRC
Ubuntu14.04 Installing and configuring Ros Indigo