1. Software Center Configuration
First open the Software and Updates dialog box, open and follow the configuration ( make sure your "restricted", "universe," and "Multiverse." The front is ticked):
2. Add Source
$ sudo sh-c ' echo ' Deb Http://packages.ros.org/ros/ubuntu $ (LSB_RELEASE-SC) main ">/etc/apt/sources.list.d/ros-late St.list '
Set Secret key:
$ sudo apt-key adv--keyserver hkp://ha.pool.sks-keyservers.net:80--recv-key 0xb01fa116
3. Install Ros
First, ensure system software is in the latest version
$ sudo apt-get update
Then we can install ROS, but the problem comes again, there are many versions of Ros Kinetic, such as Industrial Edition, Basic Edition, Premium Edition, deluxe edition, Extreme luxury ...
Now that we want to learn about Ros, install the extreme luxury full-featured version, with the following instructions:
$ sudo apt-get install Ros-kinetic-desktop-full
After the installation is complete, you can use the following command to view the available packages:
$ Apt-cache Search Ros-kinetic
Now, although the installation is over, but can not use Ros, need to do a set:
(1) ROSDEP must be initialized first
$ sudo rosdep init$ rosdep update
(2) Then initialize the environment variable:
$ echo "Source/opt/ros/kinetic/setup.bash" >> ~/.bashrc$ source ~/.BASHRC
The above two sentences are very important, some can not find the package, cannot find node, in many cases is not added source
(3) Finally install a very common plug-in:
$ sudo apt-get install Python-rosinstall
4. Testing Ros
Activating the ROS Environment
$ roscore
See if the started core service is displayed [/rosout] If it's OK, it proves the installation was successful.
5. Start the Rviz step:
(1) Start Roscore
$ roscore
(2) Also open a console to enter the following command:
6. Reference Document:
Https://www.cnblogs.com/liu-fa/p/5779206.html
Http://www.cnblogs.com/liu-fa/p/5761448.html
ubuntu16.04 Ros and Rviz start