当前位置:网站首页>[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 .
边栏推荐
- A simple understanding of B tree
- Using solrj to add, delete, modify, and query Solr is too simple
- 【ROS入门教程】---- 01 ROS介绍
- 文件“Setup”不存在,怎么办?
- 集线器、交换机与路由器有什么区别?
- About the log traffic monitoring and early warning small project | standardized return of interaction with the database in flask
- DeepStream系列之鱼眼相机测试
- NVIDIA Jetson之PWM风扇自定义控制
- Loop structure statement
- MESI cache consistency protocol for concurrent programming
猜你喜欢

海贼oj#148.字符串反转

About log traffic monitoring and early warning small project | database management tool: migrate

CentOS实战部署redis

About log traffic monitoring and early warning small project | flask

Random points in non overlapping rectangles

On the quality assurance system of youzan search V2021
![[论文阅读] TGANet: Text-guided attention for improved polyp segmentation](/img/e4/a80615e78b819a50886410cc69146d.png)
[论文阅读] TGANet: Text-guided attention for improved polyp segmentation

About the log traffic monitoring and early warning small project | standardized return of interaction with the database in flask

浅谈有赞搜索质量保障体系 v2021

阻塞队列 — DelayedWorkQueue源码分析
随机推荐
SQL audit | "cloud" users can use the SQL audit service with one click
dma_buf_export
What is thread in concurrent programming
MySQL trigger
BlindWaterMar报错No module named cv2
Kwai handled more than 54000 illegal accounts: how to crack down on illegal accounts on the platform
【ROS入门教程】---- 03 单片机、PC主机、ROS通信机制
Random points in non overlapping rectangles
B 树的简单认识
Golang中的深拷贝与浅拷贝
What is the difference between hubs, switches and routers?
Unable to return to the default page after page Jump
How to solve the deep paging problem in large factories (easy to understand)
海贼oj#448.抽奖
Pirate OJ 448 luck draw
How word inserts a guide (dot before page number) into a table of contents
"Past and present" of permission management
The JVM determines whether an object can be recycled
LeetCode 8. 字符串转换整数 (atoi)(中等、字符串)
MESI cache consistency protocol for concurrent programming
