当前位置:网站首页>[ROS tutorial] - 02 ROS installation
[ROS tutorial] - 02 ROS installation
2022-06-11 01:01:00 【Life is like Zhaoxu】

List of articles
ROS Installation steps
One 、Ubuntu Environmental Science
1. virtual machine
- virtual machine : The advantage of virtual machine is that there may be some problems due to early learning bug, In order to prevent affecting the learning progress , So you can choose
Installation method :
- choice Ubuntu Version installation image ( The blogger chose 20.04)
- Install virtual machine VMware Workstation, Create a new virtual machine , Select the corresponding iso File as image , The language is English , The rest are selected according to the configuration , Hard disk can be used gparted operation
sudo apt-get install gparted- Open the virtual machine source switch , Enter the language bar and select Chinese , The reason here is to select English as the default file directory to prevent path problems , But the interface language can be Chinese , Easy to understand .
- Install Chinese IME : Visible blog Ubuntu Basic operation
2. Dual system
- Dual system :ROS The system is parasitic on LINUX Under the system , So we can install the corresponding operating system on the computer by ourselves , The version correspondence is as follows :
For this article , The choice is Ubuntu20.04, So corresponding ROS edition Noetic, See the blog for specific installation and follow-up procedures Dual system installation and LINUX Beautification and perfection , In the latter, there is an introduction to the corresponding Chinese input method and source changing operation .
Two 、ROS install
1. Configure software center
- open softwave & update: Ensure that restricted、universe、multiverse Tick ahead , Here's the picture :

2. Change the download source address and configuration
- choice ROS Source : Add the corresponding website to the software warehouse list
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- If necessary , You can also switch to domestic ROS Source , Reference blog Replace domestic sources
- Configure the public key : Ensure system path security , Not immediately clear
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- Update software source :
sudo apt update
3. Install and configure the environment
- Install the corresponding desktop full version :
sudo apt-get install ros-noetic-desktop-full
Be careful , It takes a long time to install the full version , Need to wait with peace of mind
View available packages :
$ apt-cache search ros-kineticConfiguration environment : First, initialize rosdep
sudo rosdep init
rosdep update
- Configure environment variables
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
4. Common installation problems
stay ROS There are many problems during the installation of , Most focus on rosdep in , Here is a brief introduction :
rosdep:command not found
resolvent : Manual installation rosdep:
sudo apt-get install python3-rosdep
- rosdep Initialization timeout failed :
- download rosdistro-master.zip And put it under the path set by yourself , Download address rosdistro
- Modify the native file 20-default.list
sudo gedit /etc/ros/rosdep/sources.list.d/20-default.list
The specific contents shall be revised as follows :
# os-specific listings first
yaml file:/// Own project directory /rosdistro-master/rosdep/osx-homebrew.yaml osx
# generic
yaml file:/// Own project directory /rosdistro-master/rosdep/base.yaml
yaml file:/// Own project directory /rosdistro-master/rosdep/python.yaml
yaml file:/// Own project directory /rosdistro-master/rosdep/ruby.yaml
gbpdistro file:/// Own project directory /rosdistro-master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.y
- Continue to modify the following files , Replace the address with your own project directory :
1. /usr/lib/python3/dist-packages/rosdep2/gbpdistro_support.py
FUERTE_GBPDISTRO_URL = 'file:/// Own project directory /rosdistro-master/releases/fuerte.yaml'
2. /usr/lib/python3/dist-packages/rosdep2/rep3.py
REP3_TARGETS_URL = 'file:/// Own project directory /rosdistro-master/releases/targets.yaml'
3. /usr/lib/python3/dist-packages/rosdep2/sources_list.py
DEFAULT_SOURCES_LIST_URL = 'file:/// Own project directory /rosdistro-master/rosdep/sources.list.d/20-default.list'
4. /usr/lib/python3/dist-packages/rosdistro/__init__.py
DEFAULT_INDEX_URL = 'file:/// Own project directory /rosdistro-master/index-v4.yaml'
- ERROR: cannot download default sources list from: 20-default.list. Website may be down.
resolvent :
- Switch networks , For example, using hot spots ;
- modify hosts file :
First , Inquire about raw.githubusercontent.com Of ip Address , website Search address
Enter the command to modify :sudo gedit /etc/hosts
Add at the end :199.232.68.133 raw.githubusercontent.com( Corresponding address )
3、 ... and 、ROS verification
- Start the node manager ROS Master:
roscore

- New terminal , Start turtle routine :
rosrun turtlesim turtlesim_node

- Start keyboard control node
rosrun turtlesim turtle_teleop_key

summary
About ROS The installation process has many tutorials on the network ,ROS Wiki The Chinese tutorial on is enough to deal with the simple installation process , The main purpose of this blog is to review and summarize ROS Installation steps , For their own ROS Learn to make records , In the future, we will continue to launch about ROS What to learn , Coming soon .
边栏推荐
- The mystery of number idempotent and perfect square
- pytorch分类问题总结
- 【NVIDIA驱动的顽固问题】---- /dev/sdax:clean,xxx/xxx files,xxx/xxx blocks ---- 最全解决方法
- 嵌入式学习资料和项目汇总
- Complete uninstallation of MySQL under Linux
- STM32下载代码后出现无法再次下载的问题
- Kubernetes入门介绍与基础搭建
- LeetCode 8. 字符串转换整数 (atoi)(中等、字符串)
- Ts+fetch to upload selected files
- 增额终身寿险产品都有哪些优势?门槛高吗?
猜你喜欢

Wechat applet to realize OCR scanning recognition

Complete collection of MySQL exercises (with answers) - you will know everything after practice

Block queue - delayedworkqueue Source Analysis

Objects as points personal summary

Loop structure statement

Synchronized keyword for concurrent programming

compiler explorer

阻塞隊列 — DelayedWorkQueue源碼分析

Unable to return to the default page after page Jump

Logback log framework
随机推荐
WPF basic animation
Kubernetes入门介绍与基础搭建
Wechat applet to realize OCR scanning recognition
项目连接不到远程虚拟机The driver has not received any packets from the server.
Room first use
Logback log framework
UUID quick explanation
Dictionary sort of array
Serrures dans SQLSERVER
LeetCode 8. 字符串转换整数 (atoi)(中等、字符串)
招聘 | 南京 | TRIOSTUDIO 三厘社 – 室内设计师 / 施工图深化设计师 / 装置/产品设计师 / 实习生等
table_exists_action=append和table_exists_action=truncate
【原】expdp参数CONTENT
"Past and present" of permission management
C语言实现设置桌面壁纸
QT thread and interface
QT program plug-in reports an error plugin xcb
时间相关-格式、运算、比较、转换
Blocking queue - delayedworkqueue source code analysis
Josephus problem_ Unidirectional circular linked list_ code implementation
