ubuntu16.04 Ros and Rviz start

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.