Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install ROS kinetic in Ubuntu16.04

Shulou Source: shulou.com Published: 2022-06-01 23:22:12 09月27日 Update

This article is about how Ubuntu16.04 installs ROS kinetic. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Configure the repository for Ubuntu:

"restricted", "universe" and "multiverse". In general, there is no need to configure, refer to the red box in the following figure.

If there is no configuration, you can refer to the Ubuntu website: click on the open link

two。 Set the sources.list of Ubuntu

Sudo sh-c 'echo "deb http://packages.ros.org/ros/ubuntu

$(lsb_release-sc) main "> / etc/apt/sources.list.d/ros-latest.list'

3. Set up key

Sudo apt-key adv-keyserver hkp:

If you cannot connect to the above server, you can try hkp://pgp.mit.edu:80 or hkp://keyserver.ubuntu.com:80

4. Update package

Sudo apt-get update

5. Install full version of ROS kinetic

Sudo apt-get install ros-kinetic-desktop-full

After installation, you can view the available package:

Apt-cache search ros-kinetic

6. Initialize rosdep

Rosdep must be initialized before using ROS

7. Configure the environment

Echo "source / opt/ros/kinetic/setup.bash" > > ~ / .bashrc

8. Dependencies for installing building package

Sudo apt-get install python-rosinstall python-rosinstall-generator

Python-wstool build-essential

9. Test ROS installation successfully

1) Open Termial and enter the following command to initialize the ROS environment:

Roscore

2) Open a new Termial and enter the following command to pop up a little tortoise window:

Rosrun turtlesim turtlesim_node

3) Open the new Termial and enter the following command to control the movement of the turtle through the arrow keys in Termial:

Rosrun turtlesim turtle_teleop_key

4) Open a new Termial, enter the following command, and pop up a new window to view the ROS node information:

Rosrun rqt_graph rqt_graph

Thank you for reading! This is the end of this article on "how to install ROS kinetic in Ubuntu16.04". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Commands input configuration reference tortoise content more environment article good practical successful following figure no information situation full page article direction server Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker macOS vpn MySQL Shulou Technology