ROS installation (domestic sources)

1. Add the source (source USTC)

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'

Such as the implementation problems, then:

sudo sh -c 'echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

2. Add the private key

wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -

If you can not add, then:

sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116

3. Update software list

sudo apt-get update

Note: This command is generally upgrade without using sudo apt-get, will locally installed software, and the software's list just downloaded the corresponding software comparison, if we find the installed software version is too low, you will be prompted to update. The sudo apt-get update command, but access to the source list of each URL read the software list, and then stored in the local computer.

4. Installation ROS

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

note:

  1. Used on demand or full base, base no graphical interface, suitable for mounting on the robot;
  2. According to choose Ubuntu version ROS version, kinetic version suitable for Ubuntu 16.04, Ubuntu other versions have their respective versions of ROS is not recommended mix.
  3. After installation, the following command can be used to view the package
    apt-cache search ros-kinetic

5. Initialize

sudo rosdep init
rosdep update

6. Environment Configuration

echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
source ~/.bashrc

7. Install rosinstall

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

8. Test whether the installation is successful

roscore

If the display is as follows:

started core service [/rosout]

It represents the installation was successful.

9. Installation IDE

RoboWare Studio is a ROS of IDE, but its function and more powerful, making development faster and easier. This software is suitable for entry rookie, because a lot of configuration are automatically generated directly.

Direct access to its official website noon, http://cn.roboware.me/#/home , download the deb package can be installed.

roboware-studio

Enter the above command, used to open the IDE.

Guess you like

Origin www.cnblogs.com/letisl/p/11815191.html